aboutsummaryrefslogtreecommitdiff
path: root/tests/load/cert
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-07-07 09:52:24 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-07-07 09:53:02 +0300
commit6a2e318a38ec57c61a6c1b9a11cdf96dffe5a63e (patch)
tree1b20430b75a91b1325c1590888f4c04650e46d35 /tests/load/cert
parent24c15ba2440dbb396277d32ccf0130d342b25928 (diff)
Renew expired certificate for brep-load test
Diffstat (limited to 'tests/load/cert')
-rwxr-xr-xtests/load/cert23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/load/cert b/tests/load/cert
new file mode 100755
index 0000000..62412a7
--- /dev/null
+++ b/tests/load/cert
@@ -0,0 +1,23 @@
+#! /bin/sh
+
+# Normally, you don't need to regenerate the private key.
+#
+# openssl genrsa 4096 > key.pem
+
+# Copy cert.pem content to the certificate value of the following manifest
+# files:
+# 1/stable/repositories
+# pkg/1/dev.cppget.org/signed/repositories
+#
+openssl req -x509 -new -key key.pem -days 1825 -config openssl.cnf > cert.pem
+
+# To regenerate the packages and signature manifest files run:
+#
+# ../../../bpkg/bpkg/bpkg rep-create 1/stable --key key.pem
+# ../../../bpkg/bpkg/bpkg rep-create pkg/1/dev.cppget.org/signed --key key.pem
+#
+# Update certificate fingerprint in loadtab for dev.cppget.org/signed
+# repository. To print the fingerprint run:
+#
+# ../../../bpkg/bpkg/bpkg rep-info --cert-fingerprint \
+# tests/load/pkg/1/dev.cppget.org/signed/