Certificates in BizTalk 2013 Part 1: How To Install SSL Certificates in the Certificate store
This is the first part in a series on how to use SSL Certificates in your BizTalk Application to secure your data transfer when connecting to third party (web) services. In this post I’m going to explain how to install the certificates in the BizTalk servers certificate store.
This series contains the following posts:
- Certificates in BizTalk 2013 Part 1: How To Install SSL Certificates in the Certificate store (this post).
- Certificates in BizTalk 2013 Part 2: How To Configure the BizTalk WCF Adapter to use the SSL Certificates.
SSL certificates contain a private (.pfx) and a public key (.cer) which will need to be installed in the appropriate certification stores. (For more information on SSL Certificates you can read the following article: http://www.tldp.org/HOWTO/SSL-Certificates-HOWTO/x64.html.)
For test scenarios you can create your own certificate using the Makecert.exe tool which is part of the .Net Framework. (For production environments SSL certificates need to be purchased from a Certificate Authority (CA).
But in the case of using SSL certificates in a BizTalk application, the certificates are probibly provided by the third party to which the application connects to. In that case you can skip the next part and go to the part where the certificates are installed in the appropriate stores.
Creating SSL Certificates
for this demo I’ve used the following article for creating my SSL certificate: http://www.jayway.com/2014/09/03/creating-self-signed-certificates-with-makecert-exe-for-development/http://www.jayway.com/2014/09/03/creating-self-signed-certificates-with-makecert-exe-for-development/
I’ve made some minor changes to the input parameters for the Makecert tool. My cmd file consists of the following parameters:
-a sha512 ^
-len 4096 ^
-cy authority ^
-sv SjoukjeZaal.pvk ^
-pvk SjoukjeZaal.pvk ^
-spc SjoukjeZaal.cer ^
-pfx SjoukjeZaal.pfx ^
After following the steps from the article the below certificates are created:
|sjoukjezaal.pfx||Client certificate with private key. (the password for this file is “Test123″).|
Installing the certificates in the appropriate certificate stores
Next, is installing the certificates.
- Click Start, click Run and select exe to open the Microsoft Management Console.
- Click the File Menu and select Add/Remove Snap-in.
- Select Certificates and click the Add
- Now you have to make a selection in which store you want to install the certificates.
The below table shows in which store to install the SSL certificates so BizTalk can use it to encrypt the messages:
The In-Process Host account described in the table below can be obtained by opening the BizTalk Administration Console -> Host Instances and then check under which account the Host-Instance is running. For installing the certificate, log on to the server with the BizTalk Service account, open MMC and choose My User Account.
In this article I explained how to install SSL certificates which can be used in your BizTalk Application to make a secure call to a third party (web) service. In the second part of this series I will explain how you can configure the BizTalk Send Port to use the certificates to create a secured channel using the WCF Adapter.