Skip to content

Simple ASP.NET Core application with custom self-signed certificate

License

Notifications You must be signed in to change notification settings

MorenoGentili/AspNetCoreCertDemo

Repository files navigation

Cert Demo with ASP.NET Core 3

Simple HTTPS ASP.NET Core application with custom self-signed certificate.

install.gif

About the certificate

In case you're curious, the certificate localhost.pfx was generated with these two Openssl for Windows commands.

openssl req -x509 -sha256 -nodes -days 3650 -newkey rsa:2048 -keyout localhost.key -out localhost.crt -subj "/C=IT/ST=Provincia/L=Comune/O=Organization/OU=IT Department/CN=localhost/" -addext "subjectAltName=DNS:localhost"

openssl pkcs12 -export -out localhost.pfx -inkey localhost.key -in localhost.crt 

You might also want to check this helpful article by humankode.

https://www.humankode.com/asp-net-core/develop-locally-with-https-self-signed-certificates-and-asp-net-core

About

Simple ASP.NET Core application with custom self-signed certificate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published