5.3. Converting an external certificate in the IdM web UI for loading into an IdM user account
You can convert an external certificate to PEM format and add it to an IdM user account in the IdM web UI.
Procedure
Using the
CLI, convert the certificate to thePEMformat:-
If your certificate is in the
DERformat:
$ openssl x509 -in cert.crt -inform der -outform pem -out cert.pemIf your file is in the
PKCS #12format, whose common filename extensions are.pfxand.p12, and contains a certificate, a private key, and possibly other data, extract the certificate using theopenssl pkcs12utility. When prompted, enter the password protecting the private key stored in the file:$ openssl pkcs12 -in cert_and_key.p12 -clcerts -nokeys -out cert.pem Enter Import Password:
-
If your certificate is in the
-
Open the certificate in an editor and copy the contents. You can include the "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----" header and footer lines but you do not have to, as both the
PEMandbase64formats are accepted by the IdM web UI. - In the IdM web UI, log in as security officer.
-
Go to Identity
Users <user_name>. - Click Add next to Certificates.
- Paste the PEM-formatted contents of the certificate into the window that opens.
Click Add.
If the certificate was accepted by the system, you can see it listed among the Certificates in the user profile.