PowerShell ile Sertifika Yönetimi

Local Sertifika Dosyalarının Listelenmesi

SET-LOCATION CERT:

GET-CHILDITEM –RECURSE

Kaynak <https://blogs.technet.microsoft.com/scotts-it-blog/2014/12/30/working-with-certificates-in-powershell/>

Yüklü Sertifikaları listelemek

Set-Location Cert:\localMachine\

Dir

Set-Location Cert:\localMachine\my

Get-ChildItem | Format-Table Subject, FriendlyName, Thumbprint -AutoSize

Local Sertifika Oluşturmak

New-SelfSignedCertificate -certstorelocation cert:\localmachine\my -dnsname orin.windowsitpro.internal

$pwd = ConvertExport-PfxCertificate -cert cert:\localMachine\my\CE0976529B02DE058C9CB2C0E64AD79DAFB18CF4 -FilePath e:\temp\cert.pfx -Password $pwdTo-SecureString -String “1234” -Force -AsPlainText

Paylaşım