security add-trusted-cert: Unknown format in import

Running the latest 10.13 Beta (DP2, UPD1) and attempting to import a certificate to the System keychain (our Organizational CA).


bash-3.2# security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" RootCert.pem
SecCertificateCreateFromData: Unknown format in import.
Error reading file RootCert.pem


This works perfectly fine in macOS 10.11 through to 10.12.5.


Converting to a DER format also results in the same error. Permissions are rwx-r--r-- on the file in question, error occurs when command is run as root.

Anyone else experiencing this issue? If so, any solutions?

I am having the same problem. Have you solved this?

change name of certificat to lowercase
security add-trusted-cert: Unknown format in import
 
 
Q