RSS

exchange07 多主机名申请命令

28 Dec

[PS] C:\>New-ExchangeCertificate -PrivateKeyExportable $true -GenerateRequest -S
ubjectName "dc=com,dc=vv,o=dc01,cn=dc01.vv.com" -DomainName exchange,mail.vv.com
,dc01.vv.com,autodiscover.vv.com -path c:\cas01.txt

Thumbprint  Services  Subject
———-  ——–  ——-
2486BBB924CC2EA6483580FB2E7FFFB04C841730  …..  DC=com, DC=vv, O=dc01, …

[PS] C:\>Import-ExchangeCertificate -path D:\certnew.cer -friendlyname "vv.com"
| Enable-ExchangeCertificate -services "iis,pop,imap,smtp"

Confirm
Overwrite existing default SMTP certificate,
‘8E4AE970411E85A458F5E5DC5FF030958BEA3880’ (expires 7/20/2009 2:55:12 PM), with
certificate ‘9E0E27A3C8309EE9E8BB4A17290AAB918E3C2B16’ (expires 7/20/2010
9:06:09 PM)?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):y
[PS] C:\>Get-ExchangeCertificate | fl *

AccessRules  : {System.Security.AccessControl.CryptoKeyAccessRule, Syst
em.Security.AccessControl.CryptoKeyAccessRule, System.Se
curity.AccessControl.CryptoKeyAccessRule}
CertificateDomains  : {dc01.vv.com, exchange, mail.vv.com, autodiscover.vv.com
}
CertificateRequest  :
IisServices  : {IIS://dc01/W3SVC/1}
IsSelfSigned  : False
KeyIdentifier  : 36AF7F91BB0515589D9A0134A346460EC5AA306E
RootCAType  : Registry
Services  : IMAP, POP, IIS, SMTP
Status  : Valid
PrivateKeyExportable : True
Archived  : False
Extensions  : {System.Security.Cryptography.Oid, System.Security.Crypt
ography.Oid, System.Security.Cryptography.Oid, System.Se
curity.Cryptography.Oid, System.Security.Cryptography.Oi
d, System.Security.Cryptography.Oid, System.Security.Cry
ptography.Oid, System.Security.Cryptography.Oid}
FriendlyName  : vv.com
IssuerName  : System.Security.Cryptography.X509Certificates.X500Distin
guishedName
NotAfter  : 7/20/2010 9:06:09 PM
NotBefore  : 7/20/2008 9:06:09 PM

到这里就ok了

Advertisements
 
Leave a comment

Posted by on December 28, 2008 in Exchange Server

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: