Do you have a hole in the shape of pfx, and the only thing you have is pfx? Tough luck.

How to verify a private key matches a x509 (.cer) certificate?

This post explains how to verify a private key (possibly a .key file) you somehow got your hands on matches a certificate file (.cer) you also somehow are in possession of. Don’t ask me where I got mine, but I had to figure out how to make sure a key and a certificate matched before I uploaded mine to AKS (Azure Kubernetes Service). Problem This is yet another article where…Continue reading How to verify a private key matches a x509 (.cer) certificate?

Backwards compatibility is a hell of a drug

How to recover the private key of a (.pfx) certificate?

Recently, I ran into a problem that I definitely caused myself. I had a certificate, that was created to authenticate an app against Azure AD. The encryption key for the .pfx file was, however, lost. I could just create a new certificate, configure the app service to use that, and replace the old certificate… But that’s manual labor and where’s the fun in that? I prefer a solution that included…Continue reading How to recover the private key of a (.pfx) certificate?