Generate certificates for Headless Browser setup for Linux
-
- UpdatedJan 30, 2025
- 3 minutes to read
- Yokohama
- Automated Test Framework
Generate TLS/SSL certificates to secure the Docker REST API and authenticate HTTP requests.
Before you begin
Complete the prerequisites listed in the Headless Browser setup for Linux topic.
Role required: admin on your ServiceNow instance and local administrator on the host machine.
About this task
By default when exposing the Docker API, requests are not authenticated, which can leave your host machine vulnerable to attack. Docker API, however, does support TLS authentication where requests are verified against public private keys provided in the HTTPS encryption. In this step you create those keys for the server and the client.
export PASSWORD="<password to generate the certificates with>"
export SERVERIP="<this server's IP address>"
export HOSTNAME="<hostname of this server>"
Procedure