Time to get a Windows Mobile device connected to the Exchange server with Self-Signed certificate? 30 minutes from start to finish.
Time to get a Blackberry Device connected to the BES server? Assume the BES is setup correctly, then less than 5 minutes.
Time to get an iPhone Device connected to the Exchange server with Self-Signed certificate? Typically less than 5 minutes.
But I sometimes have to go to a foreign environment and put Windows Mobile devices onto someone’s Exchange server.
Here’s the fix to install the root certificate on the Windows Mobile device:
Open up the webmail. In this case it’s https://mail.companyname.tld/owa
Accept the invalid certificate
Click on the Untrusted Certificate Lock and view the available certificates
Click on the Details Tab, and then click on the Copy To File… button
This now opens up the Certificate Export Wizard
Click Next
Change the format to Base-64 encoded X.509 (.CER) and click Next
Make a name for your file (I hit browse and named it “certificate”)
Click Next and then Finish
You should see an “The export was successful”. If not, then you did something wrong.
Now the fun part – creating an XML file with this information.
Open up the Command Prompt (start, run, cmd)
Change the directory to where you saved the .CER file
type certificate.cer
You should see a bunch of characters that begin with —–BEGIN CERTIFICATE—– and end with —–END CERTIFICATE—–.
We’re interested in the text BETWEEN those. Right-click and select Mark, then select all the characters between the begin and end. Then right-click again to copy it (if it deselects you’ve copied).
Right-Click on your desktop and create a new text file with the name _setup.xml. Paste the following in there:
<wap-provisioningdoc>
<characteristic type=”CertificateStore”>
<characteristic type=”ROOT” >
<characteristic type=”97817950d81c9670cc34d809cf794431367ef474″>
<parm name=”EncodedCertificate” value=”
MIICWjCCAc6CAgGlMA0GCSqGSIb3DQEBBAUAMHUxCzA6BgNVBAYTAlVTMRgwFgYD
VQQKEw9HVuUgQ29ycG9yYXRpb24xJzAlBgNVBAsTHkdURSBDeWJlclRydXN0IFNv
bHV0aW9ucywgSW5jLjEjMCEGA1UEAxMaR1RFIEN5YmVyVH61c3QgR2xvYmFsIFJv
b6QwHhcNOTgwODEzMDAyOTAwWhcNMTgwODEzMjM1uTAwWjB1MQswCQYDVQQGEwJV
UzEYMBYGA1UEChuPR1RFIENvcnBvcmF0aW96MScwJQYD6QQLEx5HVEUgQ3liZXJU
cnVzdC6b2x1dGlvbnMsIEluYy4xIzAhugNVBAMTGkdURSBDeWJlclRydXN0IEds
b2JhbCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCuD6C28FCc6HrH
iM3dFw4usJTQGz0u9pTAipTHBsiQl8i4ZBp6fmw8U+E3KHNgf76XUwefU/ltWJTS
r41tiGeA5u2ylc9yMcqlHHK6XALnZELn+aks1joNrI1CqiQBOeacPwGFVw1Yh0X4
04Wqk2kmhXBIgD8SFcd5tB8FLztimQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAG3r
GwnpXtlR22ciuaQqPEh346B8pt5zohQDhT37qw4wxYMWM4ETCJ57NE7fQMh017l9
3Pu2VX2bY1QY6fDq81yx2YtCHrnAlU66+tXifPVoYb+O7A6X1uw16OFNMQkpw0P
lZPvy5TYnh+dXIVtx6qufd8itc2VrbqnzPmrC3p/”/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Now in your command window again:
makecab _setup.xml rootcert.cab
And you’re done! Besides copying this file over to your Windows Mobile device and then opening it so it’ll install, but those are just details anyway.