Skip to content

Commit

Permalink
Merge pull request #92 from satta/doc-sed-robustness
Browse files Browse the repository at this point in the history
make openssl output munging more robust
  • Loading branch information
vruello authored Jan 26, 2024
2 parents d60d611 + 937a84c commit 3816111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ openssl req -x509 -nodes -key ca-key.pem -out ca-cert.pem -batch -subj "$SUBJ" -

# Server certificate
SERVERNAME="$2"
ISSUERCA=`openssl x509 -in ca-cert.pem -noout -sha1 -fingerprint |sed s/^SHA1\ Fingerprint=//|sed s/://g`
ISSUERCA=`openssl x509 -in ca-cert.pem -noout -sha1 -fingerprint |sed s/^SHA1\ Fingerprint=//i|sed s/://g`
SERVERSUBJ="/CN=$SERVERNAME/O=example.local/C=HU/ST=state/L=location"
CERTDIR=.
openssl ecparam -out server-key.pem -name $CURVE -genkey
Expand Down Expand Up @@ -122,4 +122,4 @@ type = "Tls"
ca_certificate = "/etc/ca-cert.pem"
server_certificate = "/etc/server-cert.pem"
server_private_key = "/etc/server-key.pem"
```
```

0 comments on commit 3816111

Please sign in to comment.