- 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
Cert Management
        rvan-dev edited this page Jun 24, 2024 
        ·
        5 revisions
      
    openssl pkcs12 -export -certpbe PBE-SHA1-3DES -keypbe PBE-SHA1-3DES -nomac -inkey privatekey.key -in certificate.crt -out domain.name.pfx
For dumb devices like Cisco ASA ...
openssl pkcs12 -export -inkey privatekey.key -in certificate.crt -out domain.name.pfx
Import-ExchangeCertificate -FileData ([Byte[]]$(Get-Content -Path C:\<PATH> \<Filename> .pfx -Encoding byte -ReadCount 0)) -Password (convertto-securestring -string "<PASSWORT>" -asplaintext -force) 
Enable-ExchangeCertificate -Thumbprint <THUMBPRINT> -Services SMTP,POP,IMAP,IIS
Get-ExchangeCertificate | select Thumbprint, Services, NotAfter, Subject, CertificateDomains | where {$_.Services -match "SMTP"} | fl