9.3. Copying certificates from Active Directory using sftp
To be able to use smart card authentication, you need to copy the following certificate files:
-
A root CA certificate in the
CERformat:adcs-winserver-ca.ceron your IdM server. -
A user certificate with a private key in the
PFXformat:aduser1.pfxon an IdM client.
This procedure expects SSH access is allowed. If SSH is unavailable the user must copy the file from the AD Server to the IdM server and client.
Procedure
Connect from the IdM server and copy the
adcs-winserver-ca.cerroot certificate to the IdM server:root@idmserver ~]# sftp Administrator@winserver.ad.example.com Administrator@winserver.ad.example.com's password: Connected to Administrator@winserver.ad.example.com. sftp> cd _<path_to_certificates>_ sftp> ls adcs-winserver-ca.cer aduser1.pfx sftp> sftp> get adcs-winserver-ca.cer Fetching _<path_to_certificates>_/adcs-winserver-ca.cer to adcs-winserver-ca.cer _<path_to_certificates>_/adcs-winserver-ca.cer 100% 1254 15KB/s 00:00 sftp quitConnect from the IdM client and copy the
aduser1.pfxuser certificate to the client:[root@client1 ~]# sftp Administrator@winserver.ad.example.com Administrator@winserver.ad.example.com's password: Connected to Administrator@winserver.ad.example.com. sftp> cd /_<path_to_certificates>_ sftp> get aduser1.pfx Fetching _<path_to_certificates>_/aduser1.pfx to aduser1.pfx _<path_to_certificates>_/aduser1.pfx 100% 1254 15KB/s 00:00 sftp quitNow the CA certificate is stored in the IdM server and the user certificates is stored on the client machine.