Skip to content

Conversation

shwill
Copy link

@shwill shwill commented Jul 14, 2022

Issue

If you are using self-signed certificates with a custom CA in your organisation, you need to supply the trusted root files to the trusted root CA store within alpine linux in order to make an SSL-encrypted connection.

Disabling certificate verification with VSPHERE_IGNORE_SSL=TRUE is not viable in production environments.

Solution

Add the trusted root certificates to the alpine linux trusted root store.

Changes

  • Added a certs directory, containing all required certificates of the chain split into individual files in PEM format
  • Added documentation to certs/README.md to not push an empty directory. Added this readme to the .dockerignore file
  • Updated Dockerfile to COPY all files within the certs-folder to /usr/local/share/ca-certificates/
  • Updated Dockerfile to install the certificates by executing update-ca-certificates

If you are using self-signed certificates with a custom CA in your organisation, you need to supply the trusted root files to the trusted root CA store within alpine linux in order to make an SSL-encrypted connection. 

Disabling certificate verification with `VSPHERE_IGNORE_SSL=TRUE` is not viable in production environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant