This document provides information on how to configure the Nginx publishing profile to make it possible to install and publish certificates on it.
Requirements
- A device registered in the Segura® Platform with Nginx installed and configured. More information in How to configure a device.
- If you are publishing a certificate with a password, you must create a file with the password in it and declare it in the configuration file through the Nginx
ssl_password_file. More information in Module ngx_http_ssl_module.
Configure Nginx
To configure Nginx, see the following steps:
- On Segura® Platform, in the navigation bar, hover over the Products menu and select Certificate Manager.
- In the side menu, select Publishing > Publishing profiles.
- In the actions button, select Nginx.
- In the Settings tab, enter the following information:
- In the Profile name *, enter the profile’s name.
- In the Credencial username, enter the name of the credential used to access Nginx server.
- Optional: Check the Use a registered credential to access all devices option and, in the Access credential registered in the system, select the access credential registered in Segura® Platform to be used to access Nginx server.
- Click Continue.
- In the Nginx tab, enter the following fields:
- Optional: In the Site field, enter the site where the certificate will be published. If the site is unavailable or no value is entered, the certificate will be published in Nginx default site.
- In the Configuration file path field, enter the configuration file path in the Nginx server. For example:
etc/nginx/sites-available/example.conf. - In the Port field, enter the port used in this site. The default port is 443.
- In the Delete password file after publication (if the file exists) field, select Yes to delete the password file after the certificate is published.
- Optional: In the Use sudo? field, check to use the
sudocommand to publish the certificate. If Nginx is executed with elevated privileges,sudois not required.
- Click Continue.
- In the Devices tab, select the device where Nginx is installed.
- In the Review tab, review all information entered previously, and click Save.
After configuring Nginx, it will be displayed in the Publishing profiles report. Now, you can publish certificates in your Nginx server. More information on how to publish certificates in How to publish a certificate.