16.6. Configuring an IdM client to enable authenticating to the CLI using a certificate
To make certificate authentication work for an IdM user in the Command Line Interface (CLI) of your IdM client, import the IdM user’s certificate and the private key to the IdM client. For details on creating and transferring the user certificate, see Requesting a new user certificate and exporting it to the client.
Procedure
Log into the IdM client and have the .p12 file containing the user’s certificate and the private key ready. To obtain and cache the Kerberos ticket granting ticket (TGT), run the
kinitcommand with the user’s principal, using the-Xoption with theX509_username:/path/to/file.p12attribute to specify where to find the user’s X509 identity information. For example, to obtain the TGT foridm_userusing the user’s identity information stored in the~/idm_user.p12file:$ kinit -X X509_idm_user='PKCS12:~/idm_user.p12' idm_user참고The command also supports the .pem file format: kinit -X X509_username='FILE:/path/to/cert.pem,/path/to/key' user_principal