aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.external5
-rw-r--r--README.md11
-rwxr-xr-xcreate_codesign_ca.sh5
3 files changed, 17 insertions, 4 deletions
diff --git a/Makefile.external b/Makefile.external
index 753f550..162450c 100644
--- a/Makefile.external
+++ b/Makefile.external
@@ -92,8 +92,9 @@ install-sign: check-env-install $(SIGNTOOL_PREFIX) $(addprefix $(DRIVER_DIR)/,$(
for target in $(TARGETS); do \
rm -f "$(DESTDIR)/$$target"; \
$(SIGNTOOL) sign -pkcs12 $(SIGNTOOL_PREFIX)-code.p12 -ac $(SIGNTOOL_PREFIX)-ca-cert.pem \
- -in "$(DRIVER_DIR)/$$target" -out "$(DESTDIR)/$$target" -askpass; \
+ -in "$(DRIVER_DIR)/$$target" \
+ -out "$(DESTDIR)/$$target"; \
done
- $(INSTALL) "$(SIGNTOOL_PREFIX)-ca-cert.pem" $(DESTDIR)
+ $(INSTALL) "$(SIGNTOOL_PREFIX)-ca-cert.pem" '$(DESTDIR)/$(SIGNTOOL_PREFIX)-ca-cert.crt'
.PHONY: check-driver-env check-user-env driver-c driver-cpp user-c user-cpp check-env-install install install-sign
diff --git a/README.md b/README.md
index b3c6cc8..ba356ea 100644
--- a/README.md
+++ b/README.md
@@ -60,6 +60,17 @@ $(DRIVER_TARGET): $(DRIVER_SOURCES)
Build it with: `make Driver.sys DPP_ROOT=[path/to/this/repository]`
+It also possible to (self-)sign your driver and install your driver with:
+
+```make
+install: $(DRIVER_TARGET)
+ $(MAKE) -C $(DPP_ROOT) -f Makefile.external \
+ DESTDIR="$(DESTDIR)" \
+ TARGETS="$(DRIVER_TARGET)" \
+ DRIVER_DIR="$(CURDIR)" \
+ install-sign
+```
+
## Thanks!
- [Zeranoe](https://github.com/Zeranoe/mingw-w64-build) for the Mingw64 build script
diff --git a/create_codesign_ca.sh b/create_codesign_ca.sh
index 42f4608..2483ad0 100755
--- a/create_codesign_ca.sh
+++ b/create_codesign_ca.sh
@@ -94,6 +94,7 @@ openssl pkcs12 -export \
-inkey "${CODE}-private.pem" \
-in "${CODE}-cert.pem" \
-chain -CAfile "${ROOT}-cert.pem" \
- -out "${CODE}.p12"
-openssl pkcs12 -in "${CODE}.p12" -info -nodes -nokeys -out "${CODE}.p12.txt"
+ -out "${CODE}.p12" \
+ -passout pass:""
+openssl pkcs12 -in "${CODE}.p12" -info -nodes -nokeys -out "${CODE}.p12.txt" -passin pass:"" -passout pass:""
openssl asn1parse -i -inform DER -in "${CODE}.p12"