Hands-on task
TLS for the metrics service
The internal metrics page from /srv/metrics-site must open over HTTPS only. Issue a self-signed certificate for metrics.internal: the name must be both in the CN and in the SAN (DNS:metrics.internal); put the key and the certificate into /etc/ssl/metrics/. Set nginx up to serve this site over HTTPS on port 9443 with that certificate.
- openssl req -x509
- subjectAltName
- self-signed
- nginx ssl
- https