Commit b82bac0
test: improve https_renew_cert.sh script
- To avoid unnecessarily large diffs, only generate a new private key
if necessary. Otherwise, reuse the existing private key and only
issue a new certificate.
- Remove an unnecessary conversion step using openssl rsa and the
intermediate rsa.pem and csr.pem files.
- Extend the certificate validity from 1 year to 10 years.
- Show a text representation of the issued certificate upon completion
such that the user can verify the validity.
- Make the script executable.
- Use "#!/usr/bin/env bash" instead of "#!/bin/bash".
- Allow the script to be called from any directory.
Refs: #42342
Refs: #37990
PR-URL: #42343
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>1 parent a5e42f0 commit b82bac0Copy full SHA for b82bac0
File tree
Expand file treeCollapse file tree
2 files changed
+22
-15
lines changedOpen diff view settings
Filter options
- test/fixtures/keys/selfsigned-no-keycertsign
Expand file treeCollapse file tree
2 files changed
+22
-15
lines changedOpen diff view settings
Collapse file
test/fixtures/keys/selfsigned-no-keycertsign/cert.pem
Copy file name to clipboard+10-10Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
4 | | - |
| 2 | + |
| 3 | + |
| 4 | + |
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
19 | 19 | |
Collapse file
test/fixtures/keys/selfsigned-no-keycertsign/https_renew_cert.sh
Copy file name to clipboard100644100755+12-5Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
| 1 | + |
| 2 | + |
| 3 | + |
6 | 4 | |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
0 commit comments