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?

Stage failing in Azure DevOps pipeline

How to avoid global.json version conflicts in Azure DevOps

Sometimes in Azure DevOps, you have a project that’s being built with certain .NET version. It’ll require that particular SDK version, and most typically that is defined in global.json file. However, if you also need to install a certain .NET tool, running dotnet tool install MyBuildTool will fail. And it’ll fail before it actually tries to install the version of the tool you wanted to! This article explains how to…Continue reading How to avoid global.json version conflicts in Azure DevOps

Variable reference is not valid. ':' was not followed by a valid variable name character. Consider using ${} to delimit the name

How to fix Azure DevOps “Variable reference is not valid. ‘:’ was not followed by a valid variable name character. Consider using ${} to delimit the name”

This article explains one possible reason why you might run into an error like “Variable reference is not valid. ‘:’ was not followed by a valid variable name character. Consider using ${} to delimit the name” when using a PowerShell task in an Azure DevOps pipeline. Confusingly, the offending line might be this: Write-Host (‘##vso[task.debug]$LASTEXITCODE: {0}’ -f $LASTEXITCOD … Not something you even have in your script! What gives? Problem…Continue reading How to fix Azure DevOps “Variable reference is not valid. ‘:’ was not followed by a valid variable name character. Consider using ${} to delimit the name”

Hacktoberfest 2022

… And that’s a wrap! This year, again, I had the chance and the privilege to participate in the month-long celebration for open-source, Hacktoberfest. And unlike last year, now I took the time to write about the experience again! And for someone like me, who doesn’t really do much open-source stuff, it is a bit of an experience. And the event itself has come a long way! 2022: Hacktoberfest has…Continue reading Hacktoberfest 2022