To configure Nginx to use Utimaco Keys for SSL follow these steps.
1. Open the /usr/local/nginx/nginx.conf file and make the following changes.
|
›_ Console |
|---|
|
Below is the sample working configuration file for NGINX for SSL.
|
›_ Console |
|---|
|
Here:
-
/root/nginx/RSA.certis the signed certificate. -
engine:pkcs11:slot_4-id_45is for slot no. 4 on the HSM and 45 is theCKA_IDof the private key on Utimaco HSM.
-
Restart NGINX service.
|
›_ Console |
|---|
|
Provide slot PIN when prompted.
-
Open https://<nginx_server_ip> in any browser and verify that you can see nginx welcome page.
Nginx Welcome Page with Https