summaryrefslogtreecommitdiffstats
path: root/scripts/external-openssl-sign.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/external-openssl-sign.sh')
-rwxr-xr-xscripts/external-openssl-sign.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/external-openssl-sign.sh b/scripts/external-openssl-sign.sh
new file mode 100755
index 0000000..a2d9313
--- /dev/null
+++ b/scripts/external-openssl-sign.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+openssl req -newkey rsa:2048 -keyout external.key -nodes -x509 -out external.crt -subj "/CN=External CA/O=EXTERNAL" -days 365
+
+openssl x509 -req -in ca_signing.csr -CA external.crt -CAkey external.key -CAcreateserial -out ca_signing.crt
+
+openssl crl2pkcs7 -nocrl -certfile external.crt -out cert_chain.p7b