There are several ways to create a Digital Certificate for SSL communications.
- Use the gen_cert Utility. If you use the gen_ca_cert utility to create a new CA certificate, you may want to follow that by using the gen_cert utility to create the SSL certificate.
- Automatically Generate the Certificate on the Controller. You use the Authentication Settings dialog box to associate a certificate with a scenario in the Controller. While setting this, you can instruct the dialog box to automatically generate an SSL digital certificate for you.
- Use the Network and Security Manager Command Line. If you are using the Network and Security Manager command line options to automate your certificate setup process, there is also a command for creating a new digital certificate.
After you choose the method you want to use to create the digital certificate, follow the relevant instructions below:
Note: If working on Windows, use the gen_cert.exe utility. If you are working on a Linux platform, use the gen_cert utility.
To create a digital certificate using the gen_cert utility, perform the following steps:
Run the gen_cert utility from the <LoadRunner root folder>\bin folder.
Run the gen_cert command with at least one of the following options:
The CA Certificate and the CA Private Key files are necessary for the creation of the certificate. By default, it is assumed that they are in the current folder, and are named cacert.cer and capvk.cer respectively. In any other case, use the -CA_cert_file_name and -CA_pk_file_name options to give the correct files and locations.
The certificate file is created in the folder from which the utility was run. By default, the file name is cert.cer. To provide a different name, use the -cert_file_name option.
- You can also run the gen_cert utility with the -install option to install the certificate that you create.
It is important to note the following:
Select the Generate a certificate automatically option in the Authentication Settings Dialog Box