Create SSL Certificate (Self Signed)2024/12/02 |
Create Self Signed SSL Certificate. |
|
[1] | Run PowerShell with Admin Privilege. |
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. # confirm the certificates stored PATH PS C:\Users\Administrator> Get-PSDrive | Format-Table -AutoSize -Wrap Name Used (GB) Free (GB) Provider Root CurrentLocation ---- --------- --------- -------- ---- --------------- Alias Alias C 14.36 104.91 FileSystem C:\ Users\Administrator Cert Certificate \ D FileSystem D:\ Env Environment Function Function HKCU Registry HKEY_CURRENT_USER HKLM Registry HKEY_LOCAL_MACHINE Variable Variable WSMan WSMan # create self signed certificate # -DnsName (DNS name) # -KeyAlgorithm (RSA | ECDSA_nistP256 | ECDSA_nistP384 | ECDSA_nistP521) # -KeyLength (Key Length for RSA) # -CertStoreLocation (certificate store PATH) # -NotAfter (valid term : the example below is 10 years) PS C:\Users\Administrator> New-SelfSignedCertificate ` -DnsName "rx-7.srv.world" ` -KeyAlgorithm "ECDSA_nistP384" ` -CertStoreLocation "Cert:\LocalMachine\My" ` -NotAfter (Get-Date).AddYears(10) PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\My Thumbprint Subject ---------- ------- D3C8A1AA62DC52BF21C910EC98BBDD370298FDF4 CN=rx-7.srv.world |
[2] | If you'd like to see the your self signed certificate on GUI, run [Run] and input [certlm.msc]. |
[3] | If you created self signed certificate like this example [Cert:\LocalMachine\My], it is stored under [Personal] - [Certificate]. |
|