Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $certPassword = Read-Host "Certificate password"
- $fullCertBytes = <certificate>
- $fullCert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
- $fullCert.Import($fullCertBytes, $certPassword, 0)
- $encrypted = [Convert]::FromBase64String((Read-Host "Encrypted password"))
- [System.Text.Encoding]::UTF8.GetString(($fullCert.PrivateKey.Decrypt($encrypted, $true)))
Add Comment
Please, Sign In to add comment