diff --git a/pkg/rvasp/testdata/ca.gz b/pkg/rvasp/testdata/ca.gz index 3f70abd..df497ab 100644 Binary files a/pkg/rvasp/testdata/ca.gz and b/pkg/rvasp/testdata/ca.gz differ diff --git a/pkg/rvasp/testdata/cert.pem b/pkg/rvasp/testdata/cert.pem index eefe3f8..921a75c 100644 --- a/pkg/rvasp/testdata/cert.pem +++ b/pkg/rvasp/testdata/cert.pem @@ -1,121 +1,120 @@ -----BEGIN CERTIFICATE----- -MIIF7jCCA9agAwIBAgICB5kwDQYJKoZIhvcNAQELBQAwgZIxDDAKBgNVBAYTA1VT -QTELMAkGA1UECBMCQ0ExEzARBgNVBAcTCk1lbmxvIFBhcmsxFDASBgNVBAkTC1dp -bGxvdyBSb2FkMQ4wDAYDVQQREwU5NDAyNTEiMAwGA1UEChMFVFJJU0EwEgYDVQQK -EwtDaXBoZXJUcmFjZTEWMBQGA1UEAxMNdHJpc2F0ZXN0Lm5ldDAeFw0yMzA4Mjgx -NzU5MzBaFw0yNDAyMjgxODU5MzBaMGoxDDAKBgNVBAYTA1VTQTELMAkGA1UECBMC -TUQxEzARBgNVBAcTClF1ZWVuc3Rvd24xCTAHBgNVBAkTADEJMAcGA1UEERMAMRIw -EAYDVQQKEwl0cmlzYS5kZXYxDjAMBgNVBAMTBWFsaWNlMIICIjANBgkqhkiG9w0B -AQEFAAOCAg8AMIICCgKCAgEAqzF/ZEGeNUgeVOz3KkbgRQ41O8HvBBwb8ItVYpHr -ciJChdfzVKZuw7tw7PpPrZaNrG9THbAesRilrvIEgagiiecTGBGvnXOyd7L/jgbj -V53UhZ0rtTbNjO8ra+BXlTb3OjwHivSMaoBOjfKGFgwQnOKg9sy3kz5e7n2Orxj9 -46aj3Q6TUe/MmqbzsmvxNnzBYnctKQhRLbczMyuIIG+PY0FXavEWHE1lvXYTy/BA -o/wv58iDSqR3q1TbqgPp55evuWtseqptwahMPu/sbno3rcFnUHobsBTes8PWY9Ob -et6A0cV1Irj4A+vXUOUlWmrOmLQez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+5I1fap0wfc8yaLqT9VHi54W9VDG+TXOlVwuv2xxPGtEUpiM45T +TeOzMsMPyhvA5ZGHKrBt22zgGY+bLA== -----END PRIVATE KEY----- diff --git a/pkg/rvasp/testdata/generate.sh b/pkg/rvasp/testdata/generate.sh new file mode 100755 index 0000000..2f89a8e --- /dev/null +++ b/pkg/rvasp/testdata/generate.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +# Remove old key if it exists +keyFiles=("cert.pem" "ca.gz") +for keyfile in ${keyFiles}[@]}; do + if [ -f $keyfile ]; then + rm $keyfile + fi +done + +# Create CA +openssl req -x509 -newkey rsa:4096 -sha256 -days 10950 \ + -nodes -keyout ca.key -out ca.crt \ + -subj "/C=US/ST=California/L=Menlo Park/O=TRISA/OU=TestNet/CN=trisatest.dev" \ + -addext "subjectAltName=DNS:trisatest.dev,DNS:*.trisatest.dev" + +# Create certificate requests for alice and bob +openssl req -new -newkey rsa:4096 \ + -nodes -keyout alice.key.pem -out alice.csr \ + -subj "/C=US/ST=New York/L=New York/O=Alice VASP/OU=Testing/CN=alice" \ + -addext "subjectAltName=DNS:alice.vaspbot.net,DNS:*.alice.vaspbot.net,DNS:bufnet,DNS:alice" + +# Create signed certificates with CA +openssl x509 -req -days 10950 \ + -CA ca.crt -CAkey ca.key \ + -in alice.csr -out cert.pem \ + -copy_extensions copyall + +# Combine files into a single certificate chain +cat ca.crt >> cert.pem +cat alice.key.pem >> cert.pem +mv ca.crt ca +gzip ca + +# Cleanup +rm alice.csr alice.key.pem +rm ca.key \ No newline at end of file