MachinePrivateCertWithEL7: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 8: | Line 8: | ||
== How to retrieve the cert and the key == | == How to retrieve the cert and the key == | ||
* To | * To get the hostcert : | ||
<pre> | <pre> | ||
certutil -L -d /etc/ipa/nssdb/ -a -n 'Local IPA host' | certutil -L -d /etc/ipa/nssdb/ -a -n 'Local IPA host' > hostcert.pem | ||
</pre> | |||
* To get the private key : | |||
<pre> | |||
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:'' | |||
</pre> | </pre> |
Revision as of 12:28, 1 March 2017
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:''