Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The recent discovery of the heartbleed vulnerability has prompted certificate authorities to re-issue certificates.

I have two certificates that were generated before the heartbleed vulnerability was discovered. After the SSL issuer told me to regenerate the certificate I have updated both my servers/domains with the new certificates.

If my understanding is correct then the old certificates should have been revoked by the CA and should have made it to the CRL (Certificate revocation List) or the OCSP database (Online Certificate Status Protocol) otherwise it is technically possible for someone to perform a "man in the middle attack" by regenerating the certificates from information picked up from compromised certificates.

Is there a way to check if my old certificates have made it to CRL and OCSP. If they haven't is there a way to get them included?

UPDATE : The situation is that I have already replaced my certificates all I have is the .crt files of the old certificates so using the url to check is not really possible.

share|improve this question
    
You can check using certutil I believe. Have a read here –  MichelZ Apr 22 at 9:28
1  
I use Ubuntu as my desktop and Centos on my server –  sridhar pandurangiah Apr 22 at 9:55
    
Then I encourage you to tag your question as such –  MichelZ Apr 22 at 9:59
    
I recommend a read of this for *nix –  MichelZ Apr 22 at 11:22
    
@MichelZ - i have tagged the question with Ubuntu –  sridhar pandurangiah Apr 22 at 11:49

3 Answers 3

You can use certutil on Windows:

If you have a certificate and want to verify its validity, perform the following command:

certutil -f –urlfetch -verify [FilenameOfCertificate]

For example, use

certutil -f –urlfetch -verify mycertificatefile.cer

Source / More info: TechNet

Additionally, be sure to check with your CA. Just because you rekey the cert / get a new one, does not mean they automatically revoke it!

share|improve this answer
1  
To install certutil on Ubuntu server use the command sudo apt-get install libnss3-tools. This is not obvious as searching the apt-get cache returns no results for the string certutil . I know that the OP's server is CentOS, but it is possible that other Ubuntu Server admins will find this question helpful as well. –  dotancohen Apr 22 at 11:25
    
My answer was purely Windows based. I don't know of any *nix implementation of this. See here for a possible *nix solution –  MichelZ Apr 22 at 11:31
    
Thanks Michel!‏ –  dotancohen Apr 22 at 11:45

You can use this SSLLabs service to test SSL certificates, but you need them to be accessible from web. Moreover you can find out some more information, cause this service provide some audit.

share|improve this answer
    
This requires that the server runs with the old certificate. But having regenerated my certificates all I have is the .crt file of the old certificate. –  sridhar pandurangiah Apr 29 at 10:54

If you have revoked the certificates through the CA that generated them then they would have made it to OCSP and CRLs. If you would like to make sure that that is the case, then please extract the ocsp url from the certificate and then construct a ocsp request to that url including the certificate serial number, the ca issuer cert and retrieve the ocsp response and then one could parse it to check and confirm that it is indeed revoked.

More details at this useful page: http://backreference.org/2010/05/09/ocsp-verification-with-openssl/

Note: this requires usage of openssl library.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.