4.3. Removing a certificate issued by an external CA from an IdM user, host, or service account by using the IdM CLI
As an Identity Management (IdM) administrator, you can remove an externally signed certificate from the account of an IdM user, host, or service by using the Identity Management (IdM) CLI .
Prerequisites
- You have obtained the ticket-granting ticket of an administrative user.
Procedure
To remove a certificate from an IdM user, enter:
$ ipa user-remove-cert user --certificate=MIQTPrajQAwg...Alternatively, you can run the
ipa user-remove-certcommand interactively by executing it without adding any options.Specify the following information:
- The name of the user
- The Base64-encoded DER certificate
注記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 remove the
user_cert.pemcertificate fromuser, enter:+
$ ipa user-remove-cert user --certificate="$(openssl x509 -outform der -in user_cert.pem | base64 -w 0)"To remove a certificate from an IdM host, enter:
-
ipa host-remove-cert
-
To remove a certificate from an IdM service, enter:
-
ipa service-remove-cert
-