-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PFX support for providing certificates
* Also set the start date of the credentials we generate to 00:00 so that users don't run into a situation where they can't sign an executable because the credentials are not valid yet. * Also re-instate 'Microsoft Windows Production PCA 2011' DB installation since KB5025885 is a complete mess and, even with the 2024.08 refresh, Microsoft still has not defaulted to use UEFI bootloaders that are signed with the new 2023 creds.
- Loading branch information
Showing
8 changed files
with
298 additions
and
483 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
From 326d5527828d10a36388c9cc85f93d6b8e7dfbfc Mon Sep 17 00:00:00 2001 | ||
From 8ca01c378d047e5a11c0ca1e62929d7b03c39360 Mon Sep 17 00:00:00 2001 | ||
From: Pete Batard <[email protected]> | ||
Date: Tue, 25 Jun 2024 20:25:48 +0100 | ||
Date: Wed, 18 Sep 2024 14:09:00 +0100 | ||
Subject: [PATCH] Add extra PKCS encoding and decoding to OpensslLibFull | ||
|
||
--- | ||
.../Library/OpensslLib/OpensslLibFull.inf | 31 ++++++++++++++++--- | ||
.../Library/OpensslLib/OpensslLibFull.inf | 32 ++++++++++++++++--- | ||
.../Library/OpensslLib/OpensslStub/uefiprov.c | 10 ++++++ | ||
2 files changed, 37 insertions(+), 4 deletions(-) | ||
2 files changed, 38 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibFull.inf b/CryptoPkg/Library/OpensslLib/OpensslLibFull.inf | ||
index 55c6342904..fbcb0dc430 100644 | ||
index 55c6342904..eb488dc07c 100644 | ||
--- a/CryptoPkg/Library/OpensslLib/OpensslLibFull.inf | ||
+++ b/CryptoPkg/Library/OpensslLib/OpensslLibFull.inf | ||
@@ -1,6 +1,6 @@ | ||
|
@@ -32,7 +32,7 @@ index 55c6342904..fbcb0dc430 100644 | |
$(OPENSSL_PATH)/crypto/encode_decode/decoder_err.c | ||
$(OPENSSL_PATH)/crypto/encode_decode/decoder_lib.c | ||
$(OPENSSL_PATH)/crypto/encode_decode/decoder_meth.c | ||
@@ -427,6 +431,21 @@ | ||
@@ -427,6 +431,22 @@ | ||
$(OPENSSL_PATH)/crypto/pkcs7/pk7_mime.c | ||
$(OPENSSL_PATH)/crypto/pkcs7/pk7_smime.c | ||
$(OPENSSL_PATH)/crypto/pkcs7/pkcs7err.c | ||
|
@@ -44,6 +44,7 @@ index 55c6342904..fbcb0dc430 100644 | |
+ $(OPENSSL_PATH)/crypto/pkcs12/p12_decr.c | ||
+ $(OPENSSL_PATH)/crypto/pkcs12/p12_init.c | ||
+ $(OPENSSL_PATH)/crypto/pkcs12/p12_key.c | ||
+ $(OPENSSL_PATH)/crypto/pkcs12/p12_kiss.c | ||
+ $(OPENSSL_PATH)/crypto/pkcs12/p12_mutl.c | ||
+ $(OPENSSL_PATH)/crypto/pkcs12/p12_npas.c | ||
+ $(OPENSSL_PATH)/crypto/pkcs12/p12_p8d.c | ||
|
@@ -54,7 +55,7 @@ index 55c6342904..fbcb0dc430 100644 | |
$(OPENSSL_PATH)/crypto/property/defn_cache.c | ||
$(OPENSSL_PATH)/crypto/property/property.c | ||
$(OPENSSL_PATH)/crypto/property/property_err.c | ||
@@ -593,6 +612,10 @@ | ||
@@ -593,6 +613,10 @@ | ||
$(OPENSSL_PATH)/providers/implementations/encode_decode/decode_pem2der.c | ||
$(OPENSSL_PATH)/providers/implementations/encode_decode/decode_pvk2key.c | ||
$(OPENSSL_PATH)/providers/implementations/encode_decode/decode_spki2typespki.c | ||
|
@@ -65,7 +66,7 @@ index 55c6342904..fbcb0dc430 100644 | |
$(OPENSSL_PATH)/providers/implementations/encode_decode/endecoder_common.c | ||
$(OPENSSL_PATH)/providers/implementations/exchange/dh_exch.c | ||
$(OPENSSL_PATH)/providers/implementations/exchange/ecdh_exch.c | ||
@@ -706,10 +729,10 @@ | ||
@@ -706,10 +730,10 @@ | ||
# OpensslStub/SslNull.c | ||
# OpensslStub/EcSm2Null.c | ||
OpensslStub/uefiprov.c | ||
|
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
Oops, something went wrong.