diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-07-12 17:26:45 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-07-14 18:07:18 +0300 |
commit | e60108713590ccee83da7e2581a43fd5fda5c8ce (patch) | |
tree | 59650cce83b69e527040560482bba7c8513ab17e /tests/load/cert.sh | |
parent | 8701276b3d98b5c6f927e2865ee6a915296033c1 (diff) |
Add repository certificate info to the About page
Diffstat (limited to 'tests/load/cert.sh')
-rwxr-xr-x | tests/load/cert.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/load/cert.sh b/tests/load/cert.sh new file mode 100755 index 0000000..9d052c2 --- /dev/null +++ b/tests/load/cert.sh @@ -0,0 +1,17 @@ +#! /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 365 -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 |