Question : issues about Exchange 2007 Certificate

I plan to deloy Outlook anywhere function with our Exchange 2007 server via 3rd party certificate.
We have already deploied Active Sync function via the certificate provided by Exchange server itself, and it run well.
Therefore, i try to merge the outlook anywhere and active sync function in one 3rd party certificate.
The problem is, when i try to create a new certificate application via Exchange 2007 command shell, i got an error message as below:
New-ExchangeCertificate : Cannot bind parameter 'SubjectName'. Cannot convert value "NameDC=com, DC=geiccsha, O=geiccsha corp, CN=mail.dulwich-management.com"  to type "System.Security.Cryptography.X509Certificates.X500DistinguishedName".  Error: "The string contains an invalid X500 name attribute key, oid, value or delimiter."

At line:1 char:54

+ New-ExchangeCertificate -GenerateRequest -SubjectName  <<<< "NameDC=com, DC=geiccsha, O=geiccsha corp, CN=mail.dulwich-management.com" -DomainName roh.dulwich-management.com,autodiscover.dulwich-management.com, dcmmail01,DCMmail01.geiccsha.com,mail.dulwich-management.com,autodiscover.dulwich-management.com -FriendlyName "dcm CA For dcmmail01" -PrivateKeyExportable:$true -Path c:\certrequest1.txt

Could anyone help me to check if my command grammar is all right and help me to complete the  command to enable both outlook anywhere and active sync?
Please describe the operation steps as detail as you can if you want me to do some troubleshooting myself.
thanks in advance!
Code Snippet:
1:
New-ExchangeCertificate -GenerateRequest -SubjectName C=CN, L=SH, S=SH, NameDC=com, DC=geicc, O=geiccsha corp, CN=mail.dulwich-management.com" -DomainName roh.dulwich-management.com, autodiscover.dulwich-management.com, dcmmail01,DCMmail01.geiccsha.com,mail.dulwich-management.com,autodiscover.dulwich-management.com -FriendlyName "dcm CA For dcmmail01" -PrivateKeyExportable:$true -Path c:\certrequest1.txt
Open in New Window Select All

Answer : issues about Exchange 2007 Certificate

you can use the below example code for your reference.

hope it can help you.

1:
New-ExchangeCertificate -GenerateRequest -Path c:\mail_dulwich-management_com.csr -KeySize 2048 -SubjectName "c=CN, s=SH, l=SH, o=DCM, cn=mail.dulwich-management.com" -DomainName autodiscover.geiccsha.com -PrivateKeyExportable $True
Open in New Window Select All
Random Solutions  
 
programming4us programming4us