Ce contenu n'est pas disponible dans la langue sélectionnée.
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:
$ ipa user-add-cert user --certificate=MIQTPrajQAwg...
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
:
$ ipa user-add-cert user --certificate="$(openssl x509 -outform der -in user_cert.pem | base64 -w 0)"
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 Certificates entry., next to the
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.
- Clickto 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 thenext to the certificate to delete, and select .
- Clickto store the changes.