×

Wildcard certificate request

Wildcard certificate request

These examples create certificate request files for wildcard certificates with the following properties:

  • SubjectName: *.contoso.com in the United States, which requires the value C=US,CN=*.contoso.com.
  • RequestFile\\FileServer01\Data\Contoso Wildcard Cert.<cer or pfx>
  • FriendlyName: Contoso.com Wildcard Cert

To create a Base64 encoded request file for the wildcard certificate, run the following command:

$txtrequest = New-ExchangeCertificate -PrivateKeyExportable $True -GenerateRequest -FriendlyName "Contoso.com Wildcard Cert" -SubjectName "C=US,CN=*.contoso.com"

Import-ExchangeCertificate -FileData ([System.IO.File]::ReadAllBytes('\FileServer01\Data\Contoso Cert.cer')) -Password (Read-Host "Enter password" -AsSecureString)

Enable-ExchangeCertificate -Thumbprint 434AC224C8459924B26521298CE8834C514856AB -Services POP,IMAP,IIS,SMTP

Get-ExchangeCertificate | Format-List FriendlyName,Subject,CertificateDomains,Thumbprint,Services

Kayak: https://learn.microsoft.com/

Yorum gönder

You May Have Missed