@manhng

Welcome to my blog!

HTTPS + SSL + Certificates + Security + Architecture + Patterns in .NET

April 26, 2018 18:15

HTTPS + SSL + Certificates + Security + Architecture + Patterns in .NET

Certificates in .NET & SSL (HTTPS)

https://dotnetcodr.com/2015/09/18/how-to-enable-ssl-for-a-net-project-in-visual-studio/

https://dotnetcodr.com/2015/05/28/https-and-x509-certificates-in-net-part-1-introduction/

Security & Cryptography

https://dotnetcodr.com/security-and-cryptography/

Architecture & Patterns

https://dotnetcodr.com/architecture-and-patterns/

Certificates

Create Root Certificate
-------------------------------
makecert.exe -r -n "CN=RootCert" -pe -sv "D:\Certificates\RootCert.pvk" -a sha1 -len 2048 -b 01/01/2015 -e 01/01/2030 -cy authority "D:\Certificates\RootCert.cer"
Password: Pass@Word
pvk2pfx.exe -pvk "D:\Certificates\RootCert.pvk" -spc "D:\Certificates\RootCert.cer" -pfx "D:\Certificates\RootCert.pfx"

Create a child certificate to mylocalsite.local:
------------------------------------------------------------
makecert.exe -ic "D:\Certificates\RootCert.cer" -iv "D:\Certificates\RootCert.pvk" -pe -sv "D:\Certificates\mylocalsite.local.pvk" -a sha1 -n "CN=mylocalsite.local" -len 2048 -b 01/01/2015 -e 01/01/2030 -sky exchange "D:\Certificates\mylocalsite.local.cer" -eku 1.3.6.1.5.5.7.3.1
Password: Pass@Word
pvk2pfx.exe -pvk "D:\Certificates\mylocalsite.local.pvk" -spc "D:\Certificates\mylocalsite.local.cer" -pfx "D:\Certificates\mylocalsite.local.pfx"

Create new website mylocalsite.local:
-------------------------------------------------

C:\inetpub\wwwroot\mylocalsite.local


notepad C:\Windows\System32\drivers\etc\hosts

Categories

Recent posts