public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openssl] rebase_40beta: renew-dummy-cert: Fix long serial number renewal problem.
@ 2026-06-09 12:44 Tomas Mraz
0 siblings, 0 replies; only message in thread
From: Tomas Mraz @ 2026-06-09 12:44 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/openssl
Branch : rebase_40beta
Commit : 73ef787803293111272bf2851e7f6baca9c9b0ca
Author : Tomas Mraz <tmraz@fedoraproject.org>
Date : 2018-05-04T09:17:27+02:00
Stats : +1/-4 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/openssl/c/73ef787803293111272bf2851e7f6baca9c9b0ca?branch=rebase_40beta
Log:
renew-dummy-cert: Fix long serial number renewal problem.
Do not try to increment the serial number, use long random one instead.
---
diff --git a/renew-dummy-cert b/renew-dummy-cert
index 50f9931..92e271c 100755
--- a/renew-dummy-cert
+++ b/renew-dummy-cert
@@ -18,16 +18,13 @@ if [ ! -f $PEM ]; then
exit 1
fi
-let -a SERIAL=0x$(openssl x509 -in $PEM -noout -serial | cut -d= -f2)
-let SERIAL++
-
umask 077
OWNER=`ls -l $PEM | awk '{ printf "%s.%s", $3, $4; }'`
openssl rsa -inform pem -in $PEM -out $KEY
openssl x509 -x509toreq -in $PEM -signkey $KEY -out $REQ
-openssl x509 -req -in $REQ -signkey $KEY -set_serial $SERIAL -days 365 \
+openssl x509 -req -in $REQ -signkey $KEY -days 365 \
-extfile /etc/pki/tls/openssl.cnf -extensions v3_ca -out $CRT
(cat $KEY ; echo "" ; cat $CRT) > $NEW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-09 12:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 12:44 [rpms/openssl] rebase_40beta: renew-dummy-cert: Fix long serial number renewal problem Tomas Mraz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox