My life, My work, Its always an Adventure

Private and Work related Posts will be here. So just use the Tags (And please give a comment :) )

Exchange and Certificates - You can hate it or love it smile

, , , ,

It is really annoying how to create a Real good Exchange Certificate. There are so many tutorials out there but .... I like to have it here, so I can find it faster bigsmile

So this is what I use to create a exchange certificate and how to avoid a few problems:

If you are using SBS, then it would be an advantage if you also put some more domainnames into the Option -domainname. For Example: Sites,remote.domain.local,remote.domain.de,domainname.local,domainname.de and so on

New-Exchangecertificate -generaterequest:$true -domainname netbios,internal_FQDN,external_FQDN,autodiscover.external_FQDN,autodiscover.internal_FQDN -Friendlyname external_FQDN -path c:\certrequest.txt -privatekeyexportable:$true

If your RootCA does not accept this because there are values missing, then you should look at this site: http://technet.microsoft.com/en-us/library/aa998840.aspx. There you find out which subjectnames you can insert to the above commandline.

Now you have to go to your Root CA and request this certrequest.txt and accept it. If you get an error, that there is no template (or something like this) then try this:

certreq -attrib “CertificateTemplate:WebServer” C:\certrequest.txt

Then you can save the accepted Certificate as c:\cert.cer

Import-exchangecertificate –path c:\cert.cer

If you are having problems with the certificate that f.e. the privatekey is missing and/or in the MMC-Certificates you will notice the certificate does not have the golden key, then you should try this:

1) get the serial number from the imported cert
2) run the following command certutil -repairstore my “serial number
3) go back into certstore and hit refresh

(copy the Thumbprint)

Enable-exchangecertificate –services "IIS,SMTP" –thumbprint PASTE_Thumbprint

iisreset

This should do it smile

Cool Gadget Part 2How to kill a Process (And who can help me with really hard processes?)

Comments

Unregistered user Thursday, August 6, 2009 6:01:03 AM

Stroker writes: Hi Dude, these steps were very helpfull. All the other website, which describe also ... how can I create a new certificate ..., but there are to much information and sometimes you dont know what should you choose. This article is very short, but these are the information you need to have a functional certificate. Go ahead like that. thx

Write a comment

New comments have been disabled for this post.

June 2012
M T W T F S S
May 2012July 2012
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30