MachinePrivateCertWithEL7
What has changed with EL7
With EL7 comes the new ipa client tools release 4, that brings the following changes :
- the path of nssdb is /etc/ipa/nssdb (and not /etc/pki/nssdb);
- unless explicitly asked for, the certificate generation and installation is not done anymore.
Enrollment
Don't forget to add the '--request-cert' option in the 'ipa-client-install' command, otherwise certificate won't be generated.
How to retrieve the cert and the key
- To get the hostcert :
certutil -L -d /etc/ipa/nssdb/ -a -n 'Local IPA host' > hostcert.pem
- To get the private key :
pk12util -o keys.p12 -n 'Local IPA host' -d /etc/ipa/nssdb -W '' -k /etc/ipa/nssdb/pwdfile.txt openssl pkcs12 -in keys.p12 -out hostkey.pem -nodes -password pass:''