24.2. Managing Certificates Issued by External CAs
24.2. Managing Certificates Issued by External CAs 24.2.1. Command Line: Adding and Removing Certificates Issued by External CAs To add a certificate to a user, host, or service: ipa user-add-cert ipa host-add-cert ipa service-add-cert To remove a certificate from a user, host, or service: ipa user-remove-cert ipa host-remove-cert ipa service-remove-cert A certificate issued by an external CA is not revoked after you remove it from IdM. This is because the certificate does not exist in the IdM CA database. You can only revoke these certificates manually from the external CA side. The commands require you to specify the following information: the name of the user, host, or service the Base64-encoded DER certificate To run the commands interactively, execute them without adding any options. To provide the required information directly with the command, use command-line arguments and options: Note Instead of copying and pasting the certificate contents into the command line, you can convert the certificate to the DER format and then re-encode it to base64. For example, to add the user_cert.pem certificate to user : 24.2.2. Web UI: Adding and Removing Certificates Issued by External CAs To add a certificate to a user, host, or service: Open the Identity tab, and select the Users , Hosts , or Services subtab. Click on the name of the user, host, or service to open its configuration page. Click Add , to the Certificates entry. Figure 24.4. Adding a Certificate to a User Account Paste the certificate in Base64 or PEM encoded format into the text field, and click Add . Click Save to store the changes. To remove a certificate from a user, host, or service: Open the Identity tab, and select the Users , Hosts , or Services subtab. Click on the name of the user, host, or service to open its configuration page. Click the Actions to the certificate to delete, and select Delete . Click Save to store the changes.
ipa user-add-cert user --certificate= MIQTPrajQAwg ipa user-add-cert user --certificate="USD(openssl x509 -outform der -in user_cert.pem | base64 -w 0)"