public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tomas Mraz <tmraz@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/openssl] rebase_40beta: renew-dummy-cert: Fix long serial number renewal problem.
Date: Tue, 09 Jun 2026 12:44:10 GMT [thread overview]
Message-ID: <178100905047.1.877935433466677645.rpms-openssl-73ef78780329@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-09 12:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178100905047.1.877935433466677645.rpms-openssl-73ef78780329@fedoraproject.org \
--to=tmraz@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox