File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
1010
1111For a steady stream of TILs, [ sign up for my newsletter] ( https://tinyletter.com/jbranchaud ) .
1212
13- _ 1052 TILs and counting..._
13+ _ 1053 TILs and counting..._
1414
1515---
1616
@@ -990,6 +990,7 @@ _1052 TILs and counting..._
990990- [ Find Newer Files] ( unix/find-newer-files.md )
991991- [ Fix Unlinked Node Binaries With asdf] ( unix/fix-unlinked-node-binaries-with-asdf.md )
992992- [ Forward Multiple Ports Over SSH] ( unix/forward-multiple-ports-over-ssh.md )
993+ - [ Generate A SAML Key And Certificate Pair] ( unix/generate-a-saml-key-and-certificate-pair.md )
993994- [ Get Matching Filenames As Output From Grep] ( unix/get-matching-filenames-as-output-from-grep.md )
994995- [ Get The Unix Timestamp] ( unix/get-the-unix-timestamp.md )
995996- [ Global Substitution On The Previous Command] ( unix/global-substitution-on-the-previous-command.md )
Original file line number Diff line number Diff line change 1+ # Generate A SAML Key And Certificate Pair
2+
3+ The ` openssl ` utility can be used to generate a SAML (Security Assertion Markup
4+ Language) key pair which consists of a public certificate and a private key.
5+
6+ ``` bash
7+ openssl req -new -x509 -days 365 -nodes -sha256 \
8+ -out saml.crt \
9+ -keyout saml.key
10+ ```
11+
12+ > The req command primarily creates and processes certificate requests in
13+ > PKCS #10 format. It can additionally create self-signed certificates, for use
14+ > as root CAs, for example.
15+
16+ The flags to ` req ` are as follows:
17+ - ` -new ` for a new certificate (cert) request
18+ - ` -x509 ` to output a self-signed cert instead of a cert request
19+ - ` -days 365 ` for a year-long cert
20+ - ` -nodes ` to not encrypt the private key
21+ - ` -sha256 ` is the digest algorithm for signing the cert
22+ - ` -out saml.crt ` specifies the certificate output file
23+ - ` -keyout saml.key ` specifies the private key output file
24+
25+ See ` man openssl ` and search for ` openssl req ` for more details.
26+
27+ [ source] ( https://www.lightsaml.com/LightSAML-Core/Cookbook/How-to-generate-key-pair/ )
You can’t perform that action at this time.
0 commit comments