Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Handle '\n' line breaks in PEM-encoded SSL/TLS certificates #92

Closed
wants to merge 1 commit into from
Closed

Handle '\n' line breaks in PEM-encoded SSL/TLS certificates #92

wants to merge 1 commit into from

Conversation

robert-scheck
Copy link
Contributor

For example Podman, handling OCI containers, does not seem to have a way to pass multi-line strings via env files (and Docker seems to have the same issue at least outside of docker-compose). Thus this change allows LDAP_CA_CERT to handle a string with \n, because currently only 0x0A aka LF might work. An example for additionally supported format:

LDAP_CA_CERT=-----BEGIN CERTIFICATE-----\n...\n...\n...\n-----END CERTIFICATE-----

See also: #91

For example Podman, handling OCI containers, does not seem to have
a way to pass multi-line strings via env files (and Docker seems to
have the same issue at least outside of docker-compose). Thus this
change allows 'LDAP_CA_CERT' to handle a string with '\n', because
currently only 0x0A aka LF might work. An example for additionally
supported format:

LDAP_CA_CERT=-----BEGIN CERTIFICATE-----\n...\n...\n...\n-----END CERTIFICATE-----

See also: #91
@robert-scheck
Copy link
Contributor Author

Closing because upstream code has been moved (and there wekan/wekan#3485 as clone has been merged).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant