Skip to content
This repository was archived by the owner on Jan 3, 2025. It is now read-only.

Update 30-keygen #51

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion root/etc/cont-init.d/30-keygen
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/with-contenv bash

# generate key
if [ ! -f /config/quasselCert.pem ]; then openssl req -x509 -nodes -days 365 \
if [ ! -f /config/quasselCert.pem ] || ! openssl x509 -noout -checkend 2592000 \
-in /config/quasselCert.pem ; then openssl req -x509 -nodes -days 365 \
-newkey rsa:4096 -keyout /config/quasselCert.pem -out /config/quasselCert.pem \
-subj "/CN=Quassel-core" ; fi

Expand Down