This task describes how to set up a a script to load test an environment with an nCipher HSM (Hardware Security Module).
Generate the client certificate file (client_cert.pem) with the private key (client_key.pem) pointing to the private keys stored in the HSM. Make sure that you can connect to your Web server (A.com) with a generated CA file (ca-certs.pem). The successful Openssl command should have the following form:openssl s_client –connect A.com:443 –CAfile ca-certs.pem –cert client_cert.pem –certform PEM –key client_key.pem – keyform PEM –engine CHIL
Set up the PATH environment variable
Add the nfhwcrhk.dll file, usually located in c:\Program Files (x86)\nCipher\nfast\toolkits\hwcrhk, to the PATH environment variable. Restart VuGen in order for the change to take affect.
Edit the Vuser script
Add the following content to the vuser_init section of your Vuser script.
"KeyFilePath= <full_path_to_client_private_key_file> /client_key.pem",