From: Santiago Vila Date: Fri, 25 Oct 2024 09:44:03 +0000 (+0300) Subject: create SSL certificates with a more realistic expiration date X-Git-Tag: archive/raspbian/5.15.15-2+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c3f8c0e10baa5e5e7283d2c5fbd1b2ca552052f7;p=qtremoteobjects-everywhere-src.git create SSL certificates with a more realistic expiration date Forwarded: not-needed Last-Update: 2023-12-09 Gbp-Pq: Name extend-expiration-time-for-ssl-certs.patch --- diff --git a/tests/auto/external_IODevice/cert/generate.sh b/tests/auto/external_IODevice/cert/generate.sh index b79c862..2de1651 100644 --- a/tests/auto/external_IODevice/cert/generate.sh +++ b/tests/auto/external_IODevice/cert/generate.sh @@ -30,7 +30,7 @@ # Generate the CA key openssl genrsa -out rootCA.key 2048 # Generate the CA cert -openssl req -x509 -key rootCA.key -out rootCA.pem -sha256 -nodes -subj "/CN=QtRO CA" -days 836 +openssl req -x509 -key rootCA.key -out rootCA.pem -sha256 -nodes -subj "/CN=QtRO CA" -days 3651 # genFiles stem [extra args to signing] genFiles () { @@ -42,7 +42,7 @@ genFiles () { openssl req -new -key $stem.key -out $stem.csr -subj "/CN=127.0.0.1" # Generate and sign the certificate openssl x509 -req -in $stem.csr -out $stem.crt \ - -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -days 825 -sha256 "$@" + -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -days 3650 -sha256 "$@" # Delete the signing request, no longer needed rm $stem.csr }