diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-02-22 00:58:53 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-03-15 19:15:55 +0300 |
commit | a791b1ce0fa2bc9859474fb6f7a9c0ff8cbd1d4a (patch) | |
tree | 3c9823a54e6e28a8c8f9fb281d82ad2a67c117ba /tests/cert.sh | |
parent | 755a99a7ebf24e00675e2f2e0f5184825ad74c4a (diff) |
Port test.sh to testscript
Diffstat (limited to 'tests/cert.sh')
-rwxr-xr-x | tests/cert.sh | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/tests/cert.sh b/tests/cert.sh deleted file mode 100755 index 7382636..0000000 --- a/tests/cert.sh +++ /dev/null @@ -1,46 +0,0 @@ -#! /bin/sh - -# Normally, you don't need to regenerate the private key. -# -# openssl genrsa 4096 > key.pem - -# Copy default-cert.pem content to the certificate value of the following -# manifest files: -# pkg/1/build2.org/auth/signature-mismatch/repositories -# pkg/1/build2.org/auth/sha256sum-mismatch/repositories -# pkg/1/build2.org/auth/signed/repositories -# pkg/1/build2.org/common/hello/repositories -# -openssl req -x509 -new -key key.pem -days 365 -config default-openssl.cnf > \ - default-cert.pem - -# Copy mismatch-cert.pem content to the certificate value of -# pkg/1/build2.org/auth/name-mismatch/repositories manifest file. -# -openssl req -x509 -new -key key.pem -days 365 -config mismatch-openssl.cnf > \ - mismatch-cert.pem - -# Copy noemail-cert.pem content to the certificate value of -# pkg/1/build2.org/auth/create-noemail/repositories manifest file. -# -openssl req -x509 -new -key key.pem -days 365 -config noemail-openssl.cnf > \ - noemail-cert.pem - -# Normally, you have no reason to regenerate expired-cert.pem, as need to keep -# it expired for the testing purposes. But if you do, copy expired-cert.pem -# content to the certificate value of the following manifest files: -# pkg/1/build2.org/auth/expired/repositories -# pkg/1/build2.org/auth/create-expired/repositories -# -# To regenerate the packages and signature manifest files run: -# -# ../bpkg/bpkg rep-create pkg/1/build2.org/auth/expired --key key.pem -# -# We cannot do it in test.sh since the certificate has expired. This is also -# the reason why we store these auto-generated manifests in git. -# -# Will have to wait 1 day until the certificate expires. Until then test.sh -# will be failing. -# -# openssl req -x509 -new -key key.pem -days 1 -config default-openssl.cnf > \ -# expired-cert.pem |