-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Private CA | ||
|
||
The "pbench in a can" build of the Pbench Server relies on a private | ||
Certificate Authority cert called `pbench_CA.crt`. This expires at 5 | ||
year intervals and needs to be periodically regenerated: | ||
|
||
``` | ||
openssl req -x509 -new -nodes \ | ||
-key server/pbenchinacan/etc/pki/tls/private/pbench_CA.key \ | ||
-sha256 -days 1826 \ | ||
-out server/pbenchinacan/etc/pki/tls/certs/pbench_CA.crt \ | ||
-subj '/CN=pbench.redhat.com/C=US/L=Westford, MA' | ||
``` | ||
|
||
Note that the private key file doesn't need to be regenerated. | ||
|
||
You can view the current certificate with | ||
|
||
``` | ||
openssl x509 -text \ | ||
-in server/pbenchinacan/etc/pki/tls/private/certs/pbench_CA.crt | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters