How does one inspect a digital certificate?
Hi folks,
I've got the need to programmatically inspect a digital certificate for certain things (has it been revoked, has it expired, who is the issuer, etc.), but I don't know how to get a handle on the certificate in order to check these things.
I've been googling and trying various things for a couple of days now, but I'm not really getting anywhere. The best I've come up with is that I may need to use classes in java.security.cert, but I don't know how to use them. I've looked up the docs on them, but they're not helping too much. It kinda seems to me like java.security.cert classes are meant to create a digital certificate, and not to download one from a remote server so that I can inspect it.
Has anyone ever had to do this? How does one go about downloading a digital certificate in order to inspect it?
I kinda thought that if I did a cfhttp GET request, that I might get the certificate back to verify amongst the variables returned by cfhttp, but that didn't appear to be the case.
Please help! I'm really, really stuck and could use any help I can get. ![]()
I'm running ColdFusion 8 Standard Edition if that makes any difference.
Thanks,
Chris
