forked from google/OpenSK
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change PKI so that attestation certs are fully compliant. (google#668)
* Change PKI so that attestation certs are fully compliant. Initially we generated the smallest certificate possible. Unfortunately sometimes attestation certificates are thoroughly checked and the FIDO x509v3 extensions must be present. This PR now creates a PKI (root CA and signing CA) with corresponding CRLs and also allows to create multiple batch certificates for the keys instead of a single one. The latest generated batch cert/key is automatically symlinked so that the previous documentation still holds. * Change openssl options to support older versions * OSX doesn't support long options --------- Co-authored-by: kaczmarczyck <[email protected]>
- Loading branch information
1 parent
5fdc6e0
commit 6b8aa3a
Showing
6 changed files
with
386 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
oid_section = OIDS | ||
|
||
[ OIDS ] | ||
fido_attestation = 1.3.6.1.4.1.45724.2.1.1 | ||
fido_aaguid = 1.3.6.1.4.1.45724.1.1.4 | ||
|
||
[ req ] | ||
encrypt_key = no | ||
default_md = sha256 | ||
utf8 = yes | ||
string_mask = utf8only | ||
prompt = no | ||
distinguished_name = fido_dn | ||
req_extensions = fido_reqext | ||
|
||
[ fido_dn ] | ||
countryName = "US" | ||
organizationName = "OpenSK" | ||
organizationalUnitName = "Authenticator Attestation" | ||
commonName = "OpenSK Hacker Edition" | ||
|
||
[ fido_reqext ] | ||
keyUsage = critical,digitalSignature | ||
subjectKeyIdentifier = hash | ||
fido_attestation = ASN1:FORMAT:BITLIST,BITSTRING:${ENV::OPENSK_TRANSPORT} | ||
fido_aaguid = ASN1:FORMAT:HEX,OCTETSTRING:${ENV::OPENSK_AAGUID} |
Oops, something went wrong.