Skip to content

Commit

Permalink
fix: use root signed certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
agoldis committed Dec 8, 2023
1 parent 7e5894c commit 0d51f80
Show file tree
Hide file tree
Showing 11 changed files with 249 additions and 250 deletions.
26 changes: 26 additions & 0 deletions cert/12-2023/domain.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-----BEGIN CERTIFICATE-----
MIIEWjCCAkICFDtuRdVQgEMC2Gc8tSvZR97D+bKJMA0GCSqGSIb3DQEBCwUAMHUx
CzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNj
bzERMA8GA1UECgwISGVsbG9IdWIxFTATBgNVBAsMDEhlbGxvSHViIERldjEXMBUG
A1UEAwwOYXBpLmN5cHJlc3MuaW8wHhcNMjMxMjA4MTIzMDU0WhcNMjgxMjA2MTIz
MDU0WjBeMQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UE
CgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMRcwFQYDVQQDDA5hcGkuY3lwcmVz
cy5pbzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALn3KlQp6FQz3QM1
LEsmqYo/qlfAjPfh7IQDkOl7xMfZ809yCIQURbgEWDAnlpQqxVd01gp4F5wd7QUc
JWY1CVMjjJr61WXo8XTaV5hn8c8H1ABETzRYYlkKC+Ht7jtkqKWG6PCI4+YXNgT0
hlmI9NtDHQzzwLrm7GY6eV+AFumTshxrZs/JSuXf3vhCqoMviOtVpD++iMx/q/uD
eVVMSs2aWW47RWKaVNiSrHev6Vf6pcvaqawZ9TJBeD6q8nlgTWL+iMyOS9HGptX7
o6USHaK1j09NrRjbPUMo29m/5mssG7+9+Jjfa+riCIPyfUgZIz/whvmqt7OP442e
OsqynQkCAwEAATANBgkqhkiG9w0BAQsFAAOCAgEAJfBt3FhgSkWFoquy29lZ2kkP
8EAztk4W4OOmKAjvN2aF08rxIaxOiCJaTAVnoG0PbLMDlsj1V2ttUqoD/Cv5gHO2
IajS5LXEcb+ij/HwhYbQg7YKE/xPbjR4oXtBsHiU1f0k6sPBsBHHaTxQ0drO+ItA
LCCMNDX43lVziV46FDgXRnP/YMS8waSmt9up1hKdrBQ537+8J/RtLa7FYoih3E9L
5nA77Y1zWwneRAzW1U7WwTk0iXm6IMd3Y1dSG4jS75o9pAdHvxphXNeZWPgNOw6D
I6dMrRoIKhpQDojS+wczZOljcnw8yYBVSdRaXbqjgl5VV0jAenc91hlFYy4W/lXx
XqklUVUHoXpboPHaad7495/U7l21Ghju5Pd+B5mQPqOrYao3hOtKxFPFbVu4Fol8
HxahKL7WeX2IqON8LTLe/SZPBlIpQV+ODtcszb0CMpAomosdc5Y+IWsg6UtuDB12
m4b/+R+l3bJpcDfX4Qkq3vrYAD0ihr7cMAzZkC20Z1/Svoj5M2iwwxs/Q3n8r5jQ
kaq0rvoyoFfwJ7E39WH05Bu0N04SlbuV+Bmx9bCTbMblKjeTpL5gt5smASnlPj0i
yj6LqpnE9P1lkIn1V4zOWvVmmWASYDIVyA45NA4ZzL+qgvulJAmvELC8UbcviPOr
gCiHabEEIkljimSrSlA=
-----END CERTIFICATE-----
17 changes: 17 additions & 0 deletions cert/12-2023/domain.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-----BEGIN CERTIFICATE REQUEST-----
MIICozCCAYsCAQAwXjELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx
ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEXMBUGA1UEAwwOYXBp
LmN5cHJlc3MuaW8wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC59ypU
KehUM90DNSxLJqmKP6pXwIz34eyEA5Dpe8TH2fNPcgiEFEW4BFgwJ5aUKsVXdNYK
eBecHe0FHCVmNQlTI4ya+tVl6PF02leYZ/HPB9QARE80WGJZCgvh7e47ZKilhujw
iOPmFzYE9IZZiPTbQx0M88C65uxmOnlfgBbpk7Ica2bPyUrl3974QqqDL4jrVaQ/
vojMf6v7g3lVTErNmlluO0VimlTYkqx3r+lX+qXL2qmsGfUyQXg+qvJ5YE1i/ojM
jkvRxqbV+6OlEh2itY9PTa0Y2z1DKNvZv+ZrLBu/vfiY32vq4giD8n1IGSM/8Ib5
qrezj+ONnjrKsp0JAgMBAAGgADANBgkqhkiG9w0BAQsFAAOCAQEATkR4Ad47GKQi
horzeSWKm0kz+VLZ0vHUvxP0vCbhkmakNg12V08FdX2nvY++BLgupU8w+K4WpqTa
5j6nJ8ZcHNscqPA6AomcDDzALKoweI+vSxKCyupVONSIeuT/RBfUbXfaAxaUKE8y
B9wzJybktL4wn4/V6FHw1dFdOhQAUi/RB6gNCV/z7EuLHI1y82UuarVHcacP8Rl3
T2k5RhJaV9ZrD2ROMCsh1+qBaj2+9LUV4YuYztmljF6oFwlv4tzb0guEWqUP1ouF
ETccbPyky733MF7r/bT3cWCuqmwCMDEqflrjk1ZWeZ0iRI4rBsDfuUqlmgHe8V9V
IdbsdGeFIg==
-----END CERTIFICATE REQUEST-----
28 changes: 28 additions & 0 deletions cert/12-2023/domain.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC59ypUKehUM90D
NSxLJqmKP6pXwIz34eyEA5Dpe8TH2fNPcgiEFEW4BFgwJ5aUKsVXdNYKeBecHe0F
HCVmNQlTI4ya+tVl6PF02leYZ/HPB9QARE80WGJZCgvh7e47ZKilhujwiOPmFzYE
9IZZiPTbQx0M88C65uxmOnlfgBbpk7Ica2bPyUrl3974QqqDL4jrVaQ/vojMf6v7
g3lVTErNmlluO0VimlTYkqx3r+lX+qXL2qmsGfUyQXg+qvJ5YE1i/ojMjkvRxqbV
+6OlEh2itY9PTa0Y2z1DKNvZv+ZrLBu/vfiY32vq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U/abRUwlyFYhw4s4ls4P2mzNEcCgYEAlrNQZpCHoHBEKWCk7OFW
BcWoAyWtptVtRVqI7X0MT0MmuHeLir5IR9pKH+2b5edoPINpPjwcfDY8Odm2R2tv
k5k/80o0az9SYGNAufn855OcSYZyzQvf0TIiaN7PVSuO3FQeN/XlUyim7MAUIYgL
mNJpk6MwWyCnRbFLW8iemCY=
-----END PRIVATE KEY-----
52 changes: 52 additions & 0 deletions cert/12-2023/rootCA.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQCbY7hIYqENPEsf
nkx/3MlPzrNuUQn30sviHCGExnI6FiSSxzGijSSM7Fx05BFmM1T0mX1KZsV9c6A+
9sxN9PX30Rc5zogzMPz3yb+I0jsrF1whRmAkCOUeyL3w6+22aoEoDFmeTEoqhI7h
mTxcGYMaQVjnZKcy/LFsuOXrWZO72Ur7z1qj219CHPc0jh65hKpQKweWXS+g95Nx
lt+enhS5PWThJGaGP4McOy1w0rTaLbNWfrVHpxuoQ7p53lSyx21se+U4OaCmqQCm
Y1FOfaeWTyuTmfhomy7s2qj0PUX3uqay/kGveLjAwednBxfgzoKjAkJi3X9LMtFe
gIWQp0e4oCYHQ74acUM/wqhTTQHL+DqjQWhwdH6UBeIFgSlcrXPxRHzfOQks/uJE
JisT9Kfa91K2L1Cnh9G/ScRM99WSq6MF+kpsISI5d3ZGNaQeqJ0cQrzJdDdHTWYm
v7jnSdwl0Hx0ofq+d0s+33bLJg86K+iVDzLtTI/eIy4mnqEju1vX1d93ncA/FhUa
93JcqHYaO8biSx8bwp5otWvNpRfg7yXDxiU87V+qLeIMm0TAaEYgG+GtXrszHC6c
zXPBhyaJl34Ss6+OhIC7Fvy01OXkqqRLDXR7XAhwAw6mFoiycAqhaPNK+rwjELgp
r+W1yS7EX4ShV3SwhU4yUugNPA77FwIDAQABAoICACQgkibaL4GJRBoMztJnf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0x5AvTtssyWeyQ
KoX6wTjYBESPCpFujCFgzKwjwOd6KCDzEJ/ySRQzdm830ocX0XtsxGg7FUYr7hm4
cdv34WZipnv3fg6GIOSKGUSkSxsT44GXUuOaDA5Pue7cd5tciVmlunZ+it9vEddE
hKBJvKIimnNZ4KKpmDq8fBEt9CGcwsJl0vK3k42hdXxdoJOnEu9U00xrKARdpzi6
My8c72zHFdxuZB8bXtVv9TArwAVy5+boTDYgwu/+62gwQN4ENY5E9aG/nZui2xon
kEunRUvGZ7z5j+rv8bBx8Wph1FRBFA==
-----END PRIVATE KEY-----
33 changes: 33 additions & 0 deletions cert/12-2023/rootCA.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
-----BEGIN CERTIFICATE-----
MIIFyzCCA7OgAwIBAgIUDxJKW8mXqDmNS8z7is+oAvxYaRgwDQYJKoZIhvcNAQEL
BQAwdTELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAkNBMRYwFAYDVQQHDA1TYW4gRnJh
bmNpc2NvMREwDwYDVQQKDAhIZWxsb0h1YjEVMBMGA1UECwwMSGVsbG9IdWIgRGV2
MRcwFQYDVQQDDA5hcGkuY3lwcmVzcy5pbzAeFw0yMzEyMDgxMjMwMjlaFw0yODEy
MDYxMjMwMjlaMHUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTEWMBQGA1UEBwwN
U2FuIEZyYW5jaXNjbzERMA8GA1UECgwISGVsbG9IdWIxFTATBgNVBAsMDEhlbGxv
SHViIERldjEXMBUGA1UEAwwOYXBpLmN5cHJlc3MuaW8wggIiMA0GCSqGSIb3DQEB
AQUAA4ICDwAwggIKAoICAQCbY7hIYqENPEsfnkx/3MlPzrNuUQn30sviHCGExnI6
FiSSxzGijSSM7Fx05BFmM1T0mX1KZsV9c6A+9sxN9PX30Rc5zogzMPz3yb+I0jsr
F1whRmAkCOUeyL3w6+22aoEoDFmeTEoqhI7hmTxcGYMaQVjnZKcy/LFsuOXrWZO7
2Ur7z1qj219CH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Of4gvx3SUn/F4SbtkioXd35J1OQLkQ/nwbpGR2MCMgGVcaxiiQzvunEhwOB0/
a0xQ5GiBBeVhjp/OEzQcWoQ/KcNtYZdg79mpIXQoC0ZtpesUBTX/o1X1iHhazMg0
y8kSOfBV1vZzskEddPsFFVYWIXX3ixAJToDV9KK2yOdcYGFVgPeKh1OH9oUcLdsS
tG6xpNsCYu+aiN4F3CCoa7BO6xBXZr4Lf02TzqKa7z25N2Q3kvcz2e1qRYRLz6w=
-----END CERTIFICATE-----
1 change: 1 addition & 0 deletions cert/12-2023/rootCA.srl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3B6E45D550804302D8673CB52BD947DEC3F9B289
14 changes: 9 additions & 5 deletions cert/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
```sh
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 3650
openssl rsa -in key.pem -out key_nopass.pem
mv key_nopass.pem key.pem
openssl genrsa -out rootCA.key 4096

# verify date
# enter somewhat real details
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1825 -out rootCA.pem


# enter somewhat real details with api.cy.io as FQDN
openssl genrsa -out domain.key 2048
openssl req -new -key domain.key -out domain.csr
openssl x509 -req -in domain.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out domain.crt -days 1825 -sha256

openssl x509 -enddate -noout -in cert.pem
```
31 changes: 0 additions & 31 deletions cert/cert.pem

This file was deleted.

52 changes: 0 additions & 52 deletions cert/key.pem

This file was deleted.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0d51f80

Please sign in to comment.