-
Couldn't load subscription status.
- Fork 1k
Closed
Description
Hi,
I have configured my daemon.json as per below snippet.
"tlscacert": "/var/lib/docker/certs/ca.pem",
"tlscert": "/var/lib/docker/certs/server-cert.pem",
"tlskey": "/var/lib/docker/certs/server-key.pem",
When I run a scan on the base host, my log shows the below.
{"id": "3.9", "desc": "Ensure that TLS CA certificate file ownership is set to root:root", "result": "INFO", "details": "No TLS CA certificate found"},
{"id": "3.10", "desc": "Ensure that TLS CA certificate file permissions are set to 444 or more restrictive", "result": "INFO", "details": "No TLS CA certificate found"},
{"id": "3.11", "desc": "Ensure that Docker server certificate file ownership is set to root:root", "result": "INFO", "details": "No TLS Server certificate found"},
{"id": "3.12", "desc": "Ensure that Docker server certificate file permissions are set to 444 or more restrictive", "result": "INFO", "details": "No TLS Server certificate found"},
{"id": "3.13", "desc": "Ensure that Docker server certificate key file ownership is set to root:root", "result": "INFO", "details": "No TLS Key found"},
{"id": "3.14", "desc": "Ensure that Docker server certificate key file permissions are set to 400", "result": "INFO", "details": "No TLS Key found"},
I did an echo of $tlscacert and got the below.
# echo $tlscacert
tlscacert:/var/lib/docker/certs/ca.pem
In 3_docker_daemon_configuration_files.sh, line 263 if [ -f "$tlscacert" ]; then will definitely fail since it is checking for the full string of tlscacert:/var/lib/docker/certs/ca.pem instead of just /var/lib/docker/certs/ca.pem.
Thanks.
Metadata
Metadata
Assignees
Labels
No labels