Introduction
Whilst looking for a free SSL certificate to do some testing against the self signed cert's that SBS2008 generate I bumped into https://www.startssl.com/ who will give you for free at no cost, a basic domain verified cert that last's for 1 year. This means your users no longer have to click ok, to accept the self signed cert anymore.The reason I was looking is because the SBS remote access portal showed the following error when users were attempting to RDP to their desktops.
"This computer can't verify the identity of the RD Gateway 'your.domain.name'. it's not safe to connect to servers that can't be identified. Contact your network administrator for assitance."
RDP error |
SSL certificate error page |
Certificate Details |
Step by step guide
Generate CSR: IIS 7 Microsoft Windows Server 2008
Follow these instructions to generate a certificate request (CSR).- Open the Internet Information Services (IIS) Manager. From the Start button select Programs > Administrative Tools > Internet Information Services Manager.
- In the IIS Manager, select the server node on the top left under Connections
Signing up and processing startssl CSR
Signup- Firstly browse to http://startssl.com click on sign up and fill in the mandortary details.
- You will sent an verification code to the email address you registered with. copy and paste this over and click continue.
- They will verify your address etc and send another code, copy and paste this over after opening their link, click continue.
- you'll be asked to generate a private key leave it as medium grade, click continue.
- you'll be prompted to install the certificate to your browser, click yes (I was using internet explorer). This cert is to log you onto your control panel. you may need to click the install button on their website again.
- Now I suggest you export the private key to a secure backed up place, open internet options > content tab > click certificates. highlight cert just installed and click export. Click next, select 'yes, export private key' and click next, tick 'include all certificates in the certificate path if possible' and 'export all extended properties' then click next, type in a password and click next, browse to where you want to save the file name it etc and click next, click finish.
- back on the website click continue.
- you may need to refresh the page to show the control panel wizard tabs, first we need to run through a validation wizard to add a new domain.
- From the type field select domain name validation and click continue.
- fill out the domain name and click continue.
- they will want to verify by email so choose the address that will get through and you can access, I used postmaster@mydomain, click continue.
- Check your email copy and paste the verification code back over to the website and click continue and then finish.
- Now you can sign a CSR for that domain. click on the certificates wizard,
- change certificate target to 'web server ssl/tls certificate' and click continue, click skip since we will copy and paste the contents of the CSR over and click continue.
- click continue again, select the correct domain and click continue.
- enter www for the subdomain and click continue and then continue again.
- You should normally see a page displaying the signed certificate contents from which you can copy and paste to your server, but on this occassion my request had to be manually checked!
Import Certificate Windows 2008
There are some general steps below to import a certificate:- Import the SSL certificate into IIS. Run IIS Manager, select the ServerName (left side Connections).
- Under the IIS Features view (middle section), open Server Certificates, import the SSL certificate here (right side actions).
- Select the Web site (left side Connections), open Bindings (on the right side Actions) and associate/bind the wildcard cert with the appropriate https,host,port(443).
- Remote Desktop Session Host Configuration, If you want to change the certifcate, open properties on 'RDP-Tcp' at the bottom of the 'General' tab click select and choose the certifcate needed, if you want to change back to the self signed cert click default.