Create a certificate for names "MYSERVER1.mycompany.local" and "MYSERVER1" valid for 10 years:
New-SelfSignedCertificate -DnsName MYSERVER1.mycompany.local, MYSERVER1 -CertStoreLocation cert:\LocalMachine\My -NotBefore (Get-Date).AddMonths(-1) -NotAfter (Get-Date).AddYears(10)
No comments:
Post a Comment