Skip to content

Commit

Permalink
certs: include MS bitlocker EKUs as well as EFS in key-mgmt template …
Browse files Browse the repository at this point in the history
…with ad_upn
  • Loading branch information
arekinath committed Mar 13, 2024
1 parent 6e2fcd2 commit 9e5b8b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions piv-certs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,8 @@ populate_user_key_mgmt(struct cert_var_scope *cs, X509 *cert)

err = scope_eval(cs, "ad_upn", &upn);
if (err == ERRF_OK) {
eku = "1.3.6.1.4.1.311.10.3.4";
eku = "1.3.6.1.4.1.311.10.3.4,1.3.6.1.4.1.311.10.3.4.1,"
"1.3.6.1.4.1.311.67.1.1,1.3.6.1.4.1.311.67.1.2";
} else {
errf_free(err);
upn = NULL;
Expand Down Expand Up @@ -2223,7 +2224,8 @@ rpopulate_user_key_mgmt(struct cert_var_scope *cs, X509_REQ *req)

err = scope_eval(cs, "ad_upn", &upn);
if (err == ERRF_OK) {
eku = "1.3.6.1.4.1.311.10.3.4";
eku = "1.3.6.1.4.1.311.10.3.4,1.3.6.1.4.1.311.10.3.4.1,"
"1.3.6.1.4.1.311.67.1.1,1.3.6.1.4.1.311.67.1.2";
} else {
errf_free(err);
upn = NULL;
Expand Down

0 comments on commit 9e5b8b5

Please sign in to comment.