Skip to content

Commit 614c90d

Browse files
committed
Add option to set ca_ttl
1 parent a646c1a commit 614c90d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ The following environment variables are supported:
8989
| __OPENVOXSERVER_PORT__ | The port of the openvoxserver<br><br>`8140` |
9090
| __AUTOSIGN__ | Whether or not to enable autosigning on the openvoxserver instance. Valid values are `true`, `false`, and `/path/to/autosign.conf`.<br><br>Defaults to `true`. |
9191
| __CA_ENABLED__ | Whether or not this openvoxserver instance has a running CA (Certificate Authority)<br><br>`true` |
92+
| __CA_TTL__ | CA expire date (in seconds or with suffix `s`, `m`, `h`, `d`, `y`)<br><br>`157680000` |
9293
| __CA_HOSTNAME__ | The DNS hostname for the openvoxserver running the CA. Does nothing unless `CA_ENABLED=false`<br><br>`puppet` |
9394
| __CA_PORT__ | The listening port of the CA. Does nothing unless `CA_ENABLED=false`<br><br>`8140` |
9495
| __CA_ALLOW_SUBJECT_ALT_NAMES__ | Whether or not SSL certificates containing Subject Alternative Names should be signed by the CA. Does nothing unless `CA_ENABLED=true`.<br><br>`false` |

openvoxserver/Containerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ ENV OPENVOXSERVER_JAVA_ARGS="-Xms1024m -Xmx1024m" \
4848
OPENVOXSERVER_MAX_ACTIVE_INSTANCES=1 \
4949
OPENVOXSERVER_MAX_REQUESTS_PER_INSTANCE=0 \
5050
CA_ENABLED=true \
51+
CA_TTL=157680000 \
5152
CA_HOSTNAME=puppet \
5253
CA_PORT=8140 \
5354
CA_ALLOW_SUBJECT_ALT_NAMES=false \

openvoxserver/docker-entrypoint.d/90-ca.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ EOF
4242
fi
4343
else
4444
# we are the CA
45+
puppet config set --section server ca_ttl "${CA_TTL}"
4546
hocon -f /etc/puppetlabs/puppetserver/conf.d/ca.conf \
4647
set certificate-authority.allow-subject-alt-names "${CA_ALLOW_SUBJECT_ALT_NAMES}"
4748

0 commit comments

Comments
 (0)