It can be done using
openssl. You must be logged in the server as root. The RSA private key and certificate text need to be saved to a text file, the same as using the
certmng utility (explained above). The certificate can be tested running openssl using the following syntax:
# openssl rsa -modulus -noout -in /path/to/private.key.file | openssl md5
# openssl x509 -modulus -noout -in /path/to/certificate.file | openssl md5
The first command tests the RSA private key and the second command tests the certficate. The outputs of the both commands must be the same.
# openssl rsa -in key.pem -noout -modulus | openssl md5
# openssl x509 -in cert.pem -noout -modulus | openssl md5