How to Fix ERR_SSL_VERSION_OR_CIPHER_MISMATCH for Your NuGet Feeds on Azure DevOps

We run into a strange error last week when we no longer could install NuGet packages from our Azure DevOps feed. Visual Studio only gave us a basic error message about SSL connections, but to get some details we needed to run dotnet restore: error : The SSL connection could not be established, see inner …

Read more

How to Bypass NET::ERR_CERT_INVALID in Chrome for Your Local Development

With new versions of Chrome come new security checks. An especially annoying new “feature” I found yesterday in the NDC Oslo workshop. A not fully configured Angular application had a problem that showed up in Chrome as a NET::ERR_CERT_INVALID error. So far, on the SSL error page of Chrome we could click on the Advanced …

Read more

How to Reset Your Admin Credentials in Seq

A few days back I lost my admin credentials to the Seq server on my development machine. Luckily, there is an easy way to reset those credentials and keep all your data. Open a terminal window as an administrator and enter these 3 commands:

This will stop Seq, reset the admin password to ADMINADMIN …

Read more

How to Allow Redirects in NWebsec

In one old web application I had to add a redirect form one endpoint to the address of the new application. Everything compiled without a problem, but as soon as I accessed the old address, I got this exception: NWebsec.Core.Exceptions.RedirectValidationException: A potentially dangerous redirect was detected. Add the destination to the whitelist in configuration if …

Read more

How to Fix the PKIX Certificate Error After Upgrading SonarQube

After I updated SonarQube to version 9.7, I got this strange entry in the logs: Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Should you run into the same error, append a ;encrypt=false to the connection string to your SQL Server database:

I saw a …

Read more

What to Do if OpenSSL Does Not Find Your Private Key

As we were trying to combine a private key with a certificate into a pkcs12 file, we got this OpenSSL error:

unable to load private key 11528:error:0909006C:PEM routines:get_name:no start line:crypto\pem\pem_lib.c:745:Expecting: ANY PRIVATE KEY The file for the private key contained a private key, but OpenSSL could somehow not find it. As it turns out, …

Read more