Generate certificates for Headless Browser setup for Microsoft Windows
Generate TLS/SSL certificates to secure the Docker REST API and authenticate HTTP requests.
Avant de commencer
Role required: admin on your ServiceNow instance and local administrator on the host machine.
Avertissement :
The only version of Microsoft
Windows that ServiceNow supports as a host is Windows Server 2019 v10.0.17763.737. No other versions are supported. If you are unable to meet these requirements, a Linux host is recommended.
- Complete the prerequisites listed in the Headless Browser setup for Microsoft Windows topic. Make sure that the following programs are installed on your Windows server:
- Docker: Docker application for Windows
- Java keytool: Chocolatey tool for javaruntime
- OpenSSL: Chocolatey tool for openssl
Note the following requirements:
- Two-way communication Avertissement :Be sure to get certificate authority keys from a trusted certificate authority.
- There must be two-way communication between the instance URL and your server.
- Find the IP address of your server and get your hostname. You can use one or both of them, but you need at least one.Remarque :If you don't have a hostname and are connecting via the IP address, you can enter the IP address and put "localhost" in the Hostname environment variable.
Conseil :To make remembering these easier, set the following environment variables:export PASSWORD="<password to generate the certificates with>"export SERVERIP="<this server's IP address>"export HOSTNAME="<hostname of this server>"
- Port: Use Port 2376 or your own default port for this procedure. Remarque :Make sure your firewall rules allow inbound requests on this port
- To learn more, see Use TLS (HTTPS) to protect the Docker daemon socket.
Pourquoi et quand exécuter cette tâche
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.