Contoh self signed certificate dengan powershell

Ketika sedang dalam proses development terkadang ingin membutuhkan certificate dengan cepat maka bisa memakai self signed terlebih dahulu, berikut adalah contoh membuat self signed certificate dengan powershell:

New-SelfSignedCertificate -certstorelocation cert:\localmachine\my -dnsname company.co.nz, mycompany.co.nz, minecompany.co.nz -notafter $extended_date -KeyLength 4096

berikut untuk cara export ke pfx, untuk kemudian bisa di import ke pc/server lain

$pwd = ConvertTo-SecureString -String ‘password1234’ -Force -AsPlainText

$path = ‘cert:\localMachine\my\’ + $cert.thumbprint

Export-PfxCertificate -cert $path -FilePath c:\junk\certificate\powershellcert.pfx -Password $pwd

Selengkapnya bisa dilihat di 

Komentar

Nasohi Ciptandani mengatakan…
This is how to import

PS C:\> $mypwd = ConvertTo-SecureString -String "1234" -Force –AsPlainText

PS C:\> Import-PfxCertificate –FilePath C:\mypfx.pfx cert:\localMachine\my -Password $mypwd
Nasohi Ciptandani mengatakan…
Path location
cert:\localMachine\my is Personal
cert:\localMachine\root is Trusted root certification Authorities

Postingan populer dari blog ini

Cara memahami dan menghafal model OSI dengan analogi

Pembahasan IT Network Systems Administration Module A DNS (Forward Zone, Reverse Zone, CNAME, MX, Split View)

Table of Contents