Generate certificates for Headless Browser setup for Linux
Generate TLS/SSL certificates to secure the Docker REST API and authenticate HTTP requests.
始める前に
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.
このタスクについて
警告:
Get certificate authority keys from a trusted certificate authority.
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.
ヒント:
To learn more, see Use TLS (HTTPS) to protect the Docker daemon socket.To make remembering these easier, enter the following commands in your Linux terminal. Note: Do not add these environment variables to your terminal profile. For security reasons, they should
only exist for the duration of the current session.
export PASSWORD="<password to generate the certificates with>"export SERVERIP="<this server's IP address>"export HOSTNAME="<hostname of this server>"