Skip to content

Commit

Permalink
HACK: Hack create_ca.sh for libressl
Browse files Browse the repository at this point in the history
LibreSSL 3.7.x doesn't have 'openssl x509 -force_pubkey'.
  • Loading branch information
orbea committed Apr 14, 2023
1 parent bdc3485 commit 0d5fd80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/ekca/create_ca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ openssl req -new -nodes -newkey rsa:2048 -passin file:pass.txt -out ../intermed-
pushd ../intermed-ca
export OPENSSL_CONF=./intermed-ca.cnf

openssl x509 -req -in certreqs/nonsense.csr.pem -force_pubkey certreqs/ek.pub.pem -out certs/ek.cert.der \
openssl x509 -req -in certreqs/nonsense.csr.pem -out certs/ek.cert.der \
-outform DER -extfile ../ek/ek.cnf -extensions ek_ext -set_serial 12345 \
-CA intermed-ca.cert.pem -CAkey private/intermed-ca.key.pem -passin file:pass.txt

Expand Down Expand Up @@ -195,7 +195,7 @@ openssl req -new -nodes -newkey rsa:2048 -passin file:pass.txt -out ../intermed-
pushd ../intermed-ca
export OPENSSL_CONF=./intermed-ca.cnf

openssl x509 -req -in certreqs/nonsense.csr.pem -force_pubkey certreqs/ekecc.pub.pem -out certs/ekecc.cert.der \
openssl x509 -req -in certreqs/nonsense.csr.pem -out certs/ekecc.cert.der \
-outform DER -extfile ../ek/ek.cnf -extensions ek_ext -set_serial 12345 \
-CA intermed-ca.cert.pem -CAkey private/intermed-ca.key.pem -passin file:pass.txt

Expand Down

0 comments on commit 0d5fd80

Please sign in to comment.