Keys lost and found: How to recover certificate lost private keys

For whatever reason, certificate private keys keep getting lost. This is annoying specially to grumpy devs. The symptoms are clear: when you open certml.msc (machine) or certmgr.msc (user): Fortunately the answer is in certutil.exe. Here are the steps: Localize the certificate in Powershell in admin mode. Do “cd cert:” and then recursively traverse your certificates…

0

Certificate authentication into Azure Key Vault

If you haven’t, you should better Get started with Azure Key Vault first. Azure Key Vault is amazing for keeping secrets and cryptographic keys. But I don’t understand why authentication via application secret (a string) is offered as an option. Having Azure Key Vault accessed via a secret string in your application settings is as good…

0

Handling certificates for testing without storing them (and with private key!)

Just a reminder to myself and you… I do most of my unit testing involving certificates using Bouncy Castle, which is amazing. Sometimes I just want to keep my tests simpler and when I’m not working on very complex requirements I use regular self-signed certificates. I have a couple dummy ones and I like handling…

0

Getting more logs when troubleshooting assembly bindings

When having runtime assembly binding issues, in most cases the FusionLog property of the exception thrown is more than enough. However, to get more insight about the binding process to troubleshoot assembly loading exceptions or even more subtle errors such as grabbing an unexpected version of the assembly, you can use the Fusion Log Viewer:  …

0

How to get an assembly's public Token, with capital "T"

Sometimes I forget this simple fact and drives me crazy (and for those who are learning to do this for the first time). The parameters of the SN.exe (Strong Name Utility) tool, are CASE SENSITIVE, so… For getting the Public key token of a Strongly named assembly: sn -T “Microsoft.IdentityModel.Clients.ActiveDirectory.dll” With the T as capitalized as…

0

Versioning 2.0

I still like our classic versioning systems, I’m an old-fashioned developer who was raised in the world of Software Products. However, a new Grumpy Dev’s rant is coming up. We are not in a world of packed software anymore, with big product factories which were self-involved in their developments, and in which versioning was only…

1