Skip to content

Commit

Permalink
Merge branch 'main' of github.com:JanHoefelmeyer/csaf_distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHoefelmeyer committed Aug 8, 2024
2 parents 02705b4 + 95d972d commit 97ee23e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions docs/development-ca.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ which is suitable for testing in development setups.
<!-- MARKDOWN-AUTO-DOCS:START (CODE:src=../docs/scripts/createRootCAForITest.sh&lines=13-50) -->
<!-- The below code snippet is automatically added from ../docs/scripts/createRootCAForITest.sh -->
```sh
echo "ROOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOT"

sudo mkdir -p ~/${FOLDERNAME}
cd ~/${FOLDERNAME}

Expand Down
7 changes: 4 additions & 3 deletions docs/development-client-certs.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ then signing it.)
<!-- MARKDOWN-AUTO-DOCS:START (CODE:src=../docs/scripts/createCCForITest.sh&lines=15-35) -->
<!-- The below code snippet is automatically added from ../docs/scripts/createCCForITest.sh -->
```sh
sudo mkdir -p ~/${FOLDERNAME}
cd ~/${FOLDERNAME}

sudo certtool --generate-privkey --outfile testclient1-key.pem
Expand All @@ -32,6 +31,8 @@ expiration_days = 50
' | sudo tee -a gnutls-certtool.testclient1.template

sudo certtool --generate-certificate --load-privkey testclient1-key.pem --outfile testclient1.crt --load-ca-certificate rootca-cert.pem --load-ca-privkey rootca-key.pem --template gnutls-certtool.testclient1.template --stdout | head -1

sudo certtool --load-ca-certificate rootca-cert.pem --load-certificate testclient1.crt --load-privkey testclient1-key.pem --to-p12 --p12-name "Test Client 1" --null-password --outder --outfile testclient1.p12
```
<!-- MARKDOWN-AUTO-DOCS:END -->

Expand All @@ -40,8 +41,6 @@ and we do a second one with shorter expiration day:
<!-- MARKDOWN-AUTO-DOCS:START (CODE:src=../docs/scripts/createCCForITest.sh&lines=34-53) -->
<!-- The below code snippet is automatically added from ../docs/scripts/createCCForITest.sh -->
```sh
sudo certtool --generate-certificate --load-privkey testclient1-key.pem --outfile testclient1.crt --load-ca-certificate rootca-cert.pem --load-ca-privkey rootca-key.pem --template gnutls-certtool.testclient1.template --stdout | head -1

sudo certtool --load-ca-certificate rootca-cert.pem --load-certificate testclient1.crt --load-privkey testclient1-key.pem --to-p12 --p12-name "Test Client 1" --null-password --outder --outfile testclient1.p12

sudo certtool --generate-privkey --outfile testclient2-key.pem
Expand All @@ -60,6 +59,8 @@ expiration_days = 1
' | sudo tee -a gnutls-certtool.testclient2.template

sudo certtool --generate-certificate --load-privkey testclient2-key.pem --outfile testclient2.crt --load-ca-certificate rootca-cert.pem --load-ca-privkey rootca-key.pem --template gnutls-certtool.testclient2.template --stdout | head -1

sudo certtool --load-ca-certificate rootca-cert.pem --load-certificate testclient2.crt --load-privkey testclient2-key.pem --to-p12 --p12-name "Test Client 2" --null-password --outder --outfile testclient2.p12
```
<!-- MARKDOWN-AUTO-DOCS:END -->

Expand Down

0 comments on commit 97ee23e

Please sign in to comment.