Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Celoxocis/dcaa9b9316c2497430afb4fef1e35b52 to your computer and use it in GitHub Desktop.
Save Celoxocis/dcaa9b9316c2497430afb4fef1e35b52 to your computer and use it in GitHub Desktop.
Set-Content -path "\\exchange-server\C$\mail_yourdomain_com.req" -Value (New-ExchangeCertificate -Server exchange-server -GenerateRequest –FriendlyName mail.yourdomain.com -KeySize 4096 -SubjectName "c=US, s=NY, l=New York City, o=Your Company Name, ou=Information Technology, cn=mail.yourdomain.com" -DomainName mail.yourdomain.com, autodiscover.yourdomain.com, yourdomain.com -PrivateKeyExportable $True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment