Cannot get SecKeyRef from .der file was MD5 signature

269 Views Asked by At

I am trying to get SecKeyRef from a given .der file, I have researched and found some useful code, but SecCertificateCreateWithData method always return nil, and I guess that the root cause is the .der file was MD5 signature, because I have tried to create a new key using openssl without MD5 or SHA signature then I could import the key into KeyChain and get SecKeyRef successfully.

So anyone has experience on this please help me how to solve this, thanks in advance.

0

There are 0 best solutions below