Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for self-signed certificates #324

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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