filmov
tv
How to create self-signed certificate in windows
Показать описание
In this video, we will see how to create a self-signed certificate in windows.
Below are the commands:
1. Create certificate in local machine
New-SelfSignedCertificate -Type Custom -Subject "CN=Technical Voice" -KeyUsage DigitalSignature -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.2") -KeySpec KeyExchange -KeyAlgorithm RSA -KeyLength 2048 -Provider "Microsoft Enhanced RSA and AES Cryptographic Provider" -NotAfter (Get-Date).AddMonths(6)
---------------------------------------------------------------------
2. Create password
$pwd = ConvertTo-SecureString -String ABC123abc -Force -AsPlainText
-------------------------------------------------------------------------
Export the certificate
You need to put this certificate in the trusted root if you want to authorize in your machine.
Below are the commands:
1. Create certificate in local machine
New-SelfSignedCertificate -Type Custom -Subject "CN=Technical Voice" -KeyUsage DigitalSignature -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.2") -KeySpec KeyExchange -KeyAlgorithm RSA -KeyLength 2048 -Provider "Microsoft Enhanced RSA and AES Cryptographic Provider" -NotAfter (Get-Date).AddMonths(6)
---------------------------------------------------------------------
2. Create password
$pwd = ConvertTo-SecureString -String ABC123abc -Force -AsPlainText
-------------------------------------------------------------------------
Export the certificate
You need to put this certificate in the trusted root if you want to authorize in your machine.