Advertisements

Really Quick Exchange Server 2003 self signed certificate and how to deploy to windows device recipe

Find this post interesting? Do you like interesting things? Maybe you would like my invention, a connectible candle called a WickBrick!

Get one here http://wickbrick.etsy.com/

WickBrick

So certificates are lame, and who wants to pay for them. So what if you want to create a self signed certificate and then use it on a mobile device. Here are the steps.

Download the IIS 6.0 Resource Kit Tools.

Run the Selfssl.exe program with something like selfssl /T /N:CN=yourserver.com/V:9999

(Note yourserver.com should be the external server address that your mobile clients connect to)

(/V:9999 = 9,999 days before experation)

For my purposes I didn’t want to switch to full ssl right now so I didn’t go and select the exchange server setting to always require ssl.

To test point your browser using ssl point to https://yourserver.com/exchange

You should get a warning that you have an untrusted cert there. Click view certificate and then click install certificate (this will useful for setting up the mobile)

Ok, now on to the mobile. This post explains it very well http://www.amset.info/pocketpc/certificates3.asp

But I will summarize.

Create basic xml file with

<wap-provisioningdoc>
<characteristic type=”CertificateStore”>
<characteristic type=”ROOT”>
<characteristic type=”thumbprint of certificate”>
<parm name=”EncodedCertificate” value=”certificate hash”/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>

Open up internet explorer, tools, internet options, content, certificates, trusted root certificates authorities tab. Find your cert (it will be the server name you assigned above)

Double click it, goto details tab, scroll down to thumbprint. Copy the thumbprint and replace the thumbprint of certificate in the above xml file removing all spaces.

Hit OK, and then on the trusted root certification authorities tab select your cert and then click export. Choose Base-64 encoded X.509 (.CER)

Open up a new copy of notepad and drag the exported .cer file into it.

Copy everything between the
—–BEGIN CERTIFICATE—–
and
—–END CERTIFICATE—–
and paste it in to the file created in part one, in to the line with Encoded Certificate, replacing the entry “certificate hash.

Save your xml file as _setup.xml (IT MUST BE _setup.xml) or no worky

drop to the command prompt (windows xp) and run the command makecab _setup.xml file.cab

(you can now rename file.cab to something easier to type or remember)

copy file.cab to some external webserver.

Now to install on your mobile device have them browse to http://yourserver.com/file.cab

For an iphone use the previous export command to get a .cer and copy it to some externally accessible webserver and then have your iphone users point their device to http://yourserver.com/cert.crt and install it when asked.

NOTE: Rename the .cer to .crt so that safari will recognize it as a certificate.

Tada

If this post was useful please vote for my Kronos Video So I can win 10K thanks 🙂

http://videocontest.kronos.com/kickapps/_Kronsters-Inc/video/258026/34016.html

Advertisements

3 Responses

  1. Hi

    Could you provide more clarity about what steps to follow for an iphone?

    do you create a cab?

    thx

  2. No you don’t have to create a .cab instead

    Open up internet explorer, tools, internet options, content, certificates, trusted root certificates authorities tab. Find your cert (it will be the server name you assigned above)

    Hit OK, and then on the trusted root certification authorities tab select your cert and then click export. Choose Base-64 encoded X.509 (.CER)

    Rename the .cer to .crt so that safari will recognize it as a certificate.

    Copy it to some externally accessible webserver and then have your iphone users point their device to http://yourserver.com/cert.crt and install it when asked.

  3. […] to.  Now, as my default certificate expired, I had to remake our certificate using SelfSSL ( https://michaelellerbeck.com/2008/07/17/really-quick-exchange-server-2003-self-signed-certificate-and… ).  If you’ve…paid for one, then you can use that without any problems I believe. But […]

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: