Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test JS cluster and reconnect utils #199

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 29 additions & 31 deletions tests/NATS.Client.Core.Tests/resources/certs/ca-cert.pem
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
-----BEGIN CERTIFICATE-----
MIIFZzCCA0+gAwIBAgIUBMoKM9CcrbMaShKQg6VBHJJEYgIwDQYJKoZIhvcNAQEL
BQAwQzELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAk5DMQwwCgYDVQQHDANSVFAxDDAK
BgNVBAoMA2FwcDELMAkGA1UEAwwCY2EwHhcNMjIwOTExMDIxOTMwWhcNMzIwOTA4
MDIxOTMwWjBDMQswCQYDVQQGEwJVUzELMAkGA1UECAwCTkMxDDAKBgNVBAcMA1JU
UDEMMAoGA1UECgwDYXBwMQswCQYDVQQDDAJjYTCCAiIwDQYJKoZIhvcNAQEBBQAD
ggIPADCCAgoCggIBAOkLxt3m2H7npRzU+6zkVtuvkkqrm164O8Khl7MyPoF00LA6
EDTT+qKOtTzlKx5hXWQcYgkSjuldWDyu8nCWWmfXKnCLG5WNa45LBCPrKeJDCa4k
V+4csZ3l1A2UV2a/IQg91W6KHKpHW3IfOkPePXPPUCb95sYqaAw9pw+h/V1jvoCX
egNLgJxFEYk8qMAF3TrQJbzkigJXvC4gNl+7IbnmqE022FPci3hmPqTUDkr7VHqY
KrUPlrV+lERl46xBdcs1QAVr4NrX8tKLNSyHaCbmg45thpt2JXjHqGUo4/Vq3lJU
TtIb+FWywkAbyB9g8o6ECRwcq8ZR1anHAbhSHraDoU846jurMNLXrI2UNs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DgQWBBR4XdOrzbH3nMaDgT+ROqXFMasyEjAfBgNVHSMEGDAWgBR4XdOrzbH3nMaD
gT+ROqXFMasyEjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4ICAQC4
8NMZHrt2od0l6JNU3eg1Kd9A6dAZvc899pIl/DsbmvZk26IglV6s4yxZqIsC6Bw6
CfBaJuPjsJjEHJcBEyRQ7pcIxQsHmHC/bd/58FKf5N2DoaZDjF6U/eGDZj7T9Hkl
cyshAWdkGV58yhlqnrSIG6ovy8wrj6px3cPXG6qM0GopT8GSull9R1kAjVcB9p32
C8rwvmQeRrIUivOduzrhG2kRrqGgPSvkWqTscI9Z7nu5cCIzIcC7QA2UWOixUVDe
ENxhECEvR9BpBZqlZLC0Ihi/zBHlXq+6cAdv61hkAh6mhgaZZjx302gjxGy+c7p8
UBhfGa5dGY+0dJhPWAPAtfX41PQ/Hc85GYkTEVJbP0q60MCegQfvIc4boPG7Mw+Y
FLjhGtBtBF696P6IZpNryV6WjZxi6WWAfqSoTH5GvZR0t1XLvIloizkRODmbcJxA
5my/DBCnUBxrH++yFJs3wd7VCESd+SFJSZQJTDwq/ICrrb71tBqhuUo6uNoEUJ0z
iVikrvjc3JtrnvE+lj56vtzVZ0l6DvNzyihHbPrjq58z3ETeKza/KjZcdLpygIUL
COhwGCxq/fFVJE6wItAVLhYh90yNirIP5b3750jUirjjq75fXfuQbQoE5w+BMByx
PS1vntJkJ6BSgW5vOk9UOGSUYAQAwR28cVD4fL9/GA==
-----END CERTIFICATE-----
56 changes: 27 additions & 29 deletions tests/NATS.Client.Core.Tests/resources/certs/client-cert.pem
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
-----BEGIN CERTIFICATE-----
MIIE/jCCAuYCAQEwDQYJKoZIhvcNAQELBQAwQzELMAkGA1UEBhMCVVMxCzAJBgNV
BAgMAk5DMQwwCgYDVQQHDANSVFAxDDAKBgNVBAoMA2FwcDELMAkGA1UEAwwCY2Ew
HhcN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t4X4HL7+a0Rep88i31EjMRNbMTCjyqhKKdBhVeNX4=
-----END CERTIFICATE-----
104 changes: 52 additions & 52 deletions tests/NATS.Client.Core.Tests/resources/certs/client-key.pem
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQCbIWIItokuzp+k
jFwGzITr87MnsfUfnp9SRbSqGX32vU+nzi83eQMSraAWwDMCMkoUJPkFSJ/QljtG
XbSRyjStwppz6fCmxY/5OCqBPHyFBHtOHNgUO/zXYw5YgdJV36MLDmZCMJT9VZwi
hUFCMjP10TjraCntiHEvawnIJ76NdZ6gnYqJGva+5og4tvF5AWF5QHmau1TxVTed
mL3R+C6F+5YDfE3KzffmjgA+zHlAmmiIX1tEXaweKVA3ZgZQkZX19QIh8gmmE/F1
TDjTy5F8tsEg/4ddRmazvCoo8gW97sriIqXHQ++ytjiJpOpRAh2HvKghePZhEeBm
/S3vdPvi/Bs4MMm1tlC8azaBuodj9J0yUWLH/xqor+7mQaSMI0NylnblPmf4lBoY
6zTetW77odr2LfkDbKYMq43aaLgp6BAxwYidaeu/xup2xNrY3A8As7ZNAe3f3dzq
hGXDSYeMb5iFXNSIS8Ohf3hbhu2uCoDABB6Tg8XupiMFQShEGk2MR9iqaMhW98K4
dio9rBBGk51Bh+YpdeWvkTAfZity4/uQNNC5CDQYDpcjN7N0xg7NAs+l8IbbxXA7
El55NMQ5oJXJ0cxg/8z6afSf4TbJ0Os1YUqx/f//HhPT2SRpWNouvGl+d2MY+VVU
YH+hXGmQWhnVOPMmC+MCQpBZOhtlwwIDAQABAoICAC03N7nOaoHIG+P8PT6GEiAr
8gYZ6paCx3FVe+kwcPSgDT2d7Uk/7lNdZBH9h2CWg90HQcX2ew5zG2fRHDZ6N4yF
8jri7w/M+b/sTQdKOAkVW1NTOO/85B9rcdz+Se5Zts4cLlYQjvygHVg6euDufRKj
HvIOdFoVsNffXQSIAR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dgrIQGK6
gT97TVbm5OLj8sEqIpQ5kCe20zA+jLyemUroLYnwdp74RqZUFeGKnCyTULx69RPE
zj4a+bmQYBKivrhr/JdpwOB9g+bezjHarR+MgagjysRXWBl6VtgP/nRe3Zq31fn0
lKUoTwgaDe6CaEi3GC1M/SDoDp2y/g==
-----END PRIVATE KEY-----
49 changes: 49 additions & 0 deletions tests/NATS.Client.Core.Tests/resources/certs/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash

set -e

# -subj values may fail on Windows if running under MSYSGIT
# Make sure to disable POSIX-to-Windows path conversion e.g.
# export MSYS_NO_PATHCONV=1
#

rm -rf store
mkdir store

echo ================================
echo CA
echo ================================
openssl genrsa -out store/ca.key 4096
openssl req -x509 -sha256 -new -nodes -key store/ca.key -days 3650 -out store/ca.crt -subj '/CN=ca'
openssl x509 -noout -text -in store/ca.crt
cp store/ca.crt ca-cert.pem

echo ================================
echo SERVER
echo ================================
cat <<EOF > store/server.ext
authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
subjectAltName = @alt_names
[alt_names]
DNS.1 = localhost
IP.1 = 127.0.0.1
IP.2 = ::1
EOF
openssl req -new -nodes -out store/server.csr -newkey rsa:4096 -keyout store/server.key -subj '/CN=localhost'
openssl x509 -req -in store/server.csr -CA store/ca.crt -CAkey store/ca.key -CAcreateserial -out store/server.crt -days 3650 -sha256 -extfile store/server.ext
openssl x509 -noout -text -in store/server.crt
cp store/server.crt server-cert.pem
cp store/server.key server-key.pem

echo ================================
echo CLIENT
echo ================================
openssl req -new -nodes -out store/client.csr -newkey rsa:4096 -keyout store/client.key -subj '/CN=client'
openssl x509 -req -in store/client.csr -CA store/ca.crt -CAkey store/ca.key -CAcreateserial -out store/client.crt -days 3650 -sha256
openssl x509 -noout -text -in store/client.crt
cp store/client.crt client-cert.pem
cp store/client.key client-key.pem

rm -rf store
61 changes: 30 additions & 31 deletions tests/NATS.Client.Core.Tests/resources/certs/server-cert.pem
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
-----BEGIN CERTIFICATE-----
MIIFYDCCA0igAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMQswCQYDVQQGEwJVUzEL
MAkGA1UECAwCTkMxDDAKBgNVBAcMA1JUUDEMMAoGA1UECgwDYXBwMQswCQYDVQQD
DAJjYTAeFw0yMjA5MTEwMjE5MzJaFw0zMjA5MDgwMjE5MzJaMEoxCzAJBgNVBAYT
AlVTMQswCQYDVQQIDAJOQzEMMAoGA1UEBwwDUlRQMQwwCgYDVQQKDANhcHAxEjAQ
BgNVBAMMCWxvY2FsaG9zdDCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIB
ALZGDLpQf+SNbk4ZYHkG4smLw8J1v34nglZmQ3ovDbkWwd2jWAsHbQg/9hFAE320
X7lyLjKJYfsZvK1SgBr9fRr7w8hVyBycYUmKNlu/XLQzavfznQS1VJkCXegFpVuw
eqbzCQQG0oQdef7VDVss82tlyGykbxsdyuAgOQgh+phe5jxHucAIRupt7qwYiu3Z
Y+9dwP2NF41jxkUiMGOBcyK77KGGVBNoEcCMjaSfCW/bHA5svK/jNBUIb1znkNS9
W16UJ4Fyy5c1FIZkvr2Wm1Vt0ynWkG8DjDbcg52tdruWPyTU4j0k5K4v8duYoF49
7KXoi/WmKLHHeneqLvj8YeWV1HdpXElqSYDexyqhgXf2sYCZus98ESLGyTa5MmPE
t/+X1U+I7uJVsWV/WAZhTBsLuiomr/n0Sc3E81pWLL3d7SaUeQB/rc4dufNy+7ym
O29OJn/XVsnk5Twt+GZvM+bPL5ulDs2q/QmCc9klHk5I6CbFk/qklO5S79KtSUN4
T2Jz+ZjXEQ1SdPlF1zbCOvxI54Hn2tuGNmrPr1ZxX3xe7ZgXkGdNVUTZWuZlYHdd
5drft7QfHzaYTGhKuweFETccHsYRT2yM+leOKUDqMirQu++xAExA+Y9SmUppY2sg
ozCP7yXhD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