This commit is contained in:
Kochetkov S 2026-04-15 15:07:38 +03:00
parent 5e13209afa
commit 02f1bdce6e

View File

@ -19,17 +19,17 @@ spec:
sed -i '/^ssl\.keystore\.certificate\.chain=/d' /config/server.properties
sed -i '/^ssl\.truststore\.certificates=/d' /config/server.properties
openssl pkcs8 -topk8 -nocrypt -in /certs/tls.key -out /tmp/tls.key.pk8
openssl pkcs8 -topk8 -nocrypt -in /mounted-certs/tls.key -out /tmp/tls.key.pk8
{
printf '\nssl.keystore.key='
awk '{ sub(/\r$/, ""); printf "%s\\n", $0 }' /tmp/tls.key.pk8
awk '{ sub(/\r$/, ""); printf "%s\\\\n", $0 }' /tmp/tls.key.pk8
printf '\n'
printf 'ssl.keystore.certificate.chain='
awk '{ sub(/\r$/, ""); printf "%s\\n", $0 }' /certs/tls.crt
awk '{ sub(/\r$/, ""); printf "%s\\\\n", $0 }' /mounted-certs/tls.crt
printf '\n'
printf 'ssl.truststore.certificates='
awk '{ sub(/\r$/, ""); printf "%s\\n", $0 }' /certs/ca.crt
awk '{ sub(/\r$/, ""); printf "%s\\\\n", $0 }' /mounted-certs/ca.crt
printf '\n'
} >> /config/server.properties
global: