I am trying to import the Certificates to iOS Simulator from Keychain app. When I drag and drop the certificate in the Simulator. It shows this popup.
When I drag and drop a Root certificate it is imported successfully but when I try the same thing with Standard certificate , it fails to do that.
Blue certificates are: standard certificates
Golden certificates are: root certificate
This is likely caused by the errSecParam
from the Security
framework. Either your certificate contains items the Keychain doesn't support, or the format is something the Keychain cannot decode.
You could try to transform your certificate from PEM/NET to DER and attempt the import again. The OpenSSL command to do so is:
openssl x509 -inform PEM -outform DER -in <cert_file> -out <cert_out_file>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.