OpenSSL x509 version changed to v3 (#456)
This commit is contained in:
@@ -14,6 +14,8 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
generate_crypto_materials () {
|
generate_crypto_materials () {
|
||||||
|
# OpenSSL ext file location
|
||||||
|
local openssl_ext_file=tools/openssl.ext
|
||||||
# OpenSK AAGUID
|
# OpenSK AAGUID
|
||||||
local aaguid_file=crypto_data/aaguid.txt
|
local aaguid_file=crypto_data/aaguid.txt
|
||||||
|
|
||||||
@@ -80,12 +82,13 @@ generate_crypto_materials () {
|
|||||||
-new \
|
-new \
|
||||||
-key "${opensk_key}" \
|
-key "${opensk_key}" \
|
||||||
-out "${opensk_cert_name}.csr" \
|
-out "${opensk_cert_name}.csr" \
|
||||||
-subj "/CN=OpenSK Hacker Edition"
|
-subj "/C=US/O=OpenSK/OU=Authenticator Attestation/CN=OpenSK Hacker Edition"
|
||||||
"${openssl}" x509 \
|
"${openssl}" x509 \
|
||||||
-req \
|
-req \
|
||||||
-days 3652 \
|
-days 3652 \
|
||||||
-in "${opensk_cert_name}.csr" \
|
-in "${opensk_cert_name}.csr" \
|
||||||
-CA "${ca_cert_name}.pem" \
|
-CA "${ca_cert_name}.pem" \
|
||||||
|
-extfile "${openssl_ext_file}" \
|
||||||
-CAkey "${ca_priv_key}" \
|
-CAkey "${ca_priv_key}" \
|
||||||
-CAcreateserial \
|
-CAcreateserial \
|
||||||
-outform pem \
|
-outform pem \
|
||||||
|
|||||||
1
tools/openssl.ext
Normal file
1
tools/openssl.ext
Normal file
@@ -0,0 +1 @@
|
|||||||
|
basicConstraints=CA:FALSE
|
||||||
Reference in New Issue
Block a user