-
Notifications
You must be signed in to change notification settings - Fork 936
standardize ca-config #7217
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
base: main
Are you sure you want to change the base?
standardize ca-config #7217
Conversation
Signed-off-by: Simon L. <[email protected]>
| echo "" >> "$CERTIFICATE_BUNDLE" | ||
|
|
||
| # Check if variable is a simple switch. For example used by postgres and mysql tls connections | ||
| if [ "${!certificate}" != "yes" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should grep foe begin and end certificate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably grep for BEGIN CERTIFICATE and END CERTIFICATE
| fi | ||
| } | ||
|
|
||
| create_global_root_cert() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the certs should only be written out once at container start if possible and not multiple times
|
|
||
| # Default vars | ||
| CERTIFICATES_ROOT_DIR="/var/www/html/data/certificates" | ||
| CERTIFICATE_BUNDLE="/var/www/html/resources/config/ca-bundle.crt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should use a different path now that we can specify one
Add the directive: Add the TLS_CACERT directive pointing to your certificate file: