|
SSL Certificates in VMware View - Creating a certificate signing request file |
|
|
|
|
Written by Tom Hirt
|
|
Monday, 02 March 2009 15:19 |
|
Page 4 of 6
Creating a certificate signing request file
A certificate signing request or CSR, is a file created by a web server that is sent to a certificate authority (CA) to enroll for a SSL certificate. We will use a public key infrastructure (PKI) to generate a key pair that will store the private part of our key within View's keystore. We will then provide the public key to our CA so that it may provide a SSL certificate (that has been digitally signed using the private key of the CA) that can then be configured with View.
Before we can generate a CSR file, we must first create a keystore to store our certificate. We will use the keytool to create this keystore:
- Open the command prompt on your View server:
Start >> Run >> CMD
- Change directory to:
'C:\Program Files\VMware\VMware View\Server\sslgateway\conf'
Microsoft Windows [Version 5.2.3790] (C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\Administrator>cd \
C:\>cd "C:\Program Files\VMware\VMware View\Server\sslgateway\conf"
C:\Program Files\VMware\VMware View\Server\sslgateway\conf> |
- Run the following command:
'keytool -genkey -keyalg "RSA" -keystore keys.p12 -storetype pkcs12 -validity 360'
| C:\Program Files\VMware\VMware View\Server\sslgateway\conf>keytool -genkey -keyalg "RSA" -keystore keys.p12 -storetype pkcs12 -validity 360 |
- You will be asked to enter a keystore password. It is important this password never be lost. If you loose this password, you will loose the ability to manage your keystore which will eventually require that you recreate a new keystore and certificate.
| Enter keystore password: MY_PASSWORD |
- When asked for your first and last name, enter the fully qualified domain name FQDN of your View server. DO NOT enter your name or the certificate you create will be invalid:
| What is your first and last name?[Unknown]: view.tcpdump.com |
- Answer the remaining questions to complete the creation of the keystore
What is the name of your organizational unit?[Unknown]: IT What is the name of your organization?[Unknown]: TCPDump What is the name of your City or Locality?[Unknown]: Phoenixville What is the name of your State or Province?[Unknown]: PA What is the two-letter country code for this unit?[Unknown]: US
Is CN=view.tcpdump.com, OU=IT, O=TCPDump, L=Phoenixville, ST=PA, C=US correct?[no]: yes Enter key password for (RETURN if same as keystore password): |
Creating the Certificate Signing Request
We are now ready to create the certificate signing request. We will continue with the use of the keytool:
- From the command prompt, enter the following:
'keytool -certreq -keyalg "RSA" -file certificate.csr -keystore keys.p12 -storetype pkcs12'
C:\Program Files\VMware\VMware View\Server\sslgateway\conf>keytool -certreq -keyalg "RSA" -file certificate.csr -keystore keys.p12 -storetype pkcs12 Enter keystore password: MY_PASSWORD |
- This will create a file called 'certificate.csr' in your working directory. You may now submit the 'certificate.csr' to a CA in accordance with their enrollment process requesting a certificate in PKCS7 format.
If you would like to tryout a temporary certificate from a untrusted root, both Thawte and Verisign offer free trials where you can try before you buy: Thawte - https://www.thawte.com/cgi/server/try.exe VeriSign - https://www.verisign.com/cgi-bin/clearsales_cgi/leadgen.htm?form_id=5191
|
|
Last Updated on Tuesday, 02 June 2009 11:16 |