Updated certificates

This commit is contained in:
Eduard Urbach 2018-06-23 14:23:53 +09:00
parent 71c9dfd15a
commit 66d7fd16a4
14 changed files with 37 additions and 149 deletions

View File

@ -14,7 +14,7 @@ func configureHTTPS(app *aero.Application) {
fullKeyPath := path.Join(arn.Root, "security", "privkey.pem") fullKeyPath := path.Join(arn.Root, "security", "privkey.pem")
if _, err := os.Stat(fullCertPath); os.IsNotExist(err) { if _, err := os.Stat(fullCertPath); os.IsNotExist(err) {
defaultCertPath := path.Join(arn.Root, "security", "default", "fullchain.pem") defaultCertPath := path.Join(arn.Root, "security", "default", "server.crt")
err := os.Link(defaultCertPath, fullCertPath) err := os.Link(defaultCertPath, fullCertPath)
if err != nil { if err != nil {
@ -26,7 +26,7 @@ func configureHTTPS(app *aero.Application) {
} }
if _, err := os.Stat(fullKeyPath); os.IsNotExist(err) { if _, err := os.Stat(fullKeyPath); os.IsNotExist(err) {
defaultKeyPath := path.Join(arn.Root, "security", "default", "privkey.pem") defaultKeyPath := path.Join(arn.Root, "security", "default", "server.key")
err := os.Link(defaultKeyPath, fullKeyPath) err := os.Link(defaultKeyPath, fullKeyPath)
if err != nil { if err != nil {

View File

@ -2,6 +2,6 @@
The changes in this folder are ignored by git. The changes in this folder are ignored by git.
## API keys ## Default certificates and API keys
The default API keys included do not represent the actual API keys used on the live server. The ones provided in the repository are merely used for testing. The default certificates and API keys included do not represent the actual ones used on the live server. The ones provided in the repository are merely used for local testing.

View File

@ -1,24 +0,0 @@
-----BEGIN CERTIFICATE-----
MIID+jCCAuKgAwIBAgIJAP0VtS6LGBVtMA0GCSqGSIb3DQEBCwUAMF8xCzAJBgNV
BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX
aWRnaXRzIFB0eSBMdGQxGDAWBgNVBAMMD2JldGEubm90aWZ5Lm1vZTAeFw0xODA0
MTAwOTU1MzFaFw0xOTA4MjMwOTU1MzFaMIHAMQswCQYDVQQGEwJVUzEU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jGNYLOBpIMxuFXtFqnnqdid2fjn+7IxaOq+79XPpIjd35js0MpkKHIJgrL
XIRxXnp904WcwUOVdwYVsqs05k4Bs8aoaJu3Q8C0kQXaZYmCGRSLozNj5VUgoI72
uXud+w9vRQKBgQC/yBGpMep7VPezao2M2ojjM0Q3qq+9u6EeFvXDUPvKLTkt+pch
frMHHm7VqzKdupztNYx550NjI1bvWehwvvciT7UaBVz0CXN4osjCtSmrxr1kJPbr
HNQiEsb3RC83F2VZlKa9JDjUywjJxMEHs5vsRfZZrGHFyhUJ5PJ0HOIsAQKBgQCy
VeKFPcNyQ1Fzqgjfbsxgeei0PdzhplRaX9t6AqZlxxskTL39p8HJ6CxGFuSD9Rre
7cqAPbgvUDy/yqkB87DwVD18JnDY/UD5E2H2qENost61gafBWnT2AiHSK3c/gpPd
KWynZ6pQyYKLWatTVtLZbb+ZV8ZIlNtvUGLd5Wb0iQKBgQDlnm3AIKp0Y1z2ul5V
BcvVk+6XVI+2ygwrERcH3yoUBZJWehLTXSRfAeWedzk7GvkvkOMfPY2wfDGx3PWN
3oMmLIgKbLrWgFOSA+O/OrEAI/Cdc3RhN13IeODVO5XQ5HplKSgmRJBvNDh+FTb/
qn3hs29b/Nh/nLiWR/F/rRmztA==
-----END PRIVATE KEY-----

11
security/default/root.crt Normal file
View File

@ -0,0 +1,11 @@
-----BEGIN CERTIFICATE-----
MIIBfzCCASSgAwIBAgIQRO5YkruHoXrX6yK65Vek7DAKBggqhkjOPQQDAjAkMRAw
DgYDVQQKEwdBY21lIENvMRAwDgYDVQQDEwdSb290IENBMB4XDTE4MDYyMzA1MTYy
M1oXDTI4MDYyMDA1MTYyM1owJDEQMA4GA1UEChMHQWNtZSBDbzEQMA4GA1UEAxMH
Um9vdCBDQTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABAAZ9BtGJbXrYfFVNySj
jWxgggxlg5UZ9xKNqagXNJq5m/WRMwRTTyjKyD0Kd/9IN0Qy/w1tkGR/wacOIV7i
zQWjOD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HmOi/kRUvB9KEzUaq0gSBSGpnawFykaKT76CfxDozhjDrFvMe3Gh5ANQA
wCpBWgiycGSq0voWt3P3tGZvKgpQd/O7GT68LH+7bsjS6Is/022H096/d4Dez05u
QSqsCYn0ovI9TFYmNd8LdXQPTte83xjHUUhByB357MiXg3KfExgWVejHU3cOPtNZ
GRPt75q/xmVvyeXXXL0Vb9QBPD4cSLpwu8F8snncSSLIhF4wwvYfB8JChoTwi9cb
lwmQ3zO+vTQFzg==
-----END CERTIFICATE-----

View File

@ -1 +0,0 @@
FD15B52E8B18156D

View File

@ -0,0 +1,12 @@
-----BEGIN CERTIFICATE-----
MIIBtTCCAVygAwIBAgIQXX5Pd7Oc7L5soS/Ft3e+/jAKBggqhkjOPQQDAjAkMRAw
DgYDVQQKEwdBY21lIENvMRAwDgYDVQQDEwdSb290IENBMB4XDTE4MDYyMzA1MTYy
M1oXDTI4MDYyMDA1MTYyM1owMjEQMA4GA1UEChMHQWNtZSBDbzEeMBwGA1UEAxMV
TG9jYWxob3N0IENlcnRpZmljYXRlMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
KTGI7tRZkk+ND8Qac9BzncMBND74hCb6xpWvGfgZ3KKsXvoxbIR0YqowtKCoGKPB
GIdqHOR5x6yjY+tbmD2udaNiMGAwDgYDVR0PAQH/BAQDAgWgMBMGA1UdJQQMMAoG
CCsGAQUFBwMBMAwGA1UdEwEB/wQCMAAwKwYDVR0RBCQwIoIPYmV0YS5ub3RpZnku
bW9lgglsb2NhbGhvc3SHBH8AAAEwCgYIKoZIzj0EAwIDRwAwRAIgc23A0eQzksGw
AQrwZl1CtmUAiEHY1GmfOhfiDlHgmFoCIFLSffeF+I10RSJDBklajyQIAUtJZwnP
XEYPid1cQVvn
-----END CERTIFICATE-----

View File

@ -1,19 +0,0 @@
-----BEGIN CERTIFICATE REQUEST-----
MIIDBjCCAe4CAQAwgcAxCzAJBgNVBAYTAlVTMRQwEgYDVQQIDAtSYW5kb21TdGF0
ZTETMBEGA1UEBwwKUmFuZG9tQ2l0eTEbMBkGA1UECgwSUmFuZG9tT3JnYW5pemF0
aW9uMR8wHQYDVQQLDBZSYW5kb21Pcmdhbml6YXRpb25Vbml0MS4wLAYJKoZIhvcN
AQkBFh9hbmltZW5vdGlmaWVyb2ZmaWNpYWxAZ21haWwuY29tMRgwFgYDVQQDDA9i
ZXRhLm5vdGlmeS5tb2UwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDV
tJyaDFUqWGI+k0tRDp+HthDWzQgQGRDdgGF7MdSVkW2IgLBpRf38eXp/8vWLozTU
wVHqpb2ZZua+qEnUegNlS2wmPLNahJ79N6GVJoZycaPkZQxbf2LFsCoZ9j+fbxqb
e5Q1BBjb8eeA5BFfCetZqZMdFT5FcTFeJMP+sUA1pSDRrE61uqPdD8xXhUtsA3OI
sXGI2XNqqWyHAXPnk3vyNGorXkHslsFXbKHeRr3bJ1lnA4OKdMf20BlT59l+jzfy
bfymmA11tJ3A1kibTspJLhmQMGnw72g03TontxqZTdZaddWt2MxVyGFbHojBrMGz
2SksNuPk7yUwwOECZGFFAgMBAAGgADANBgkqhkiG9w0BAQsFAAOCAQEAHNEE1dpS
7eX0ug9XZ46lkv7H3XVthj8K95DcDiZ5COWeUAizAYEPGhVj7b8XPnV096Q6Ca5E
Knk3S4SJdpAPH5uznXECpZnqYedrApY/89OGKUtlEc2dnbUrtAvEokspvRC54K+v
FHvMJzNQ2OmnX+eCZgZiipZLKYG30Ini8mqnY18hErSlx44t+xe0jCEDRR45YI0G
TmMOtQa05YtZR/zS1DgMD7/Vm082+LcFk83CXv0imh89OakcRJjvmu0+hCv0PAli
gFQ24u5pTIXc9s43OOiWXEqhEr+dZyGea4BFllU3kjs6JEHSYbNX+N1mdPdY3XQM
G6mWskih0xLR6g==
-----END CERTIFICATE REQUEST-----

View File

@ -1,14 +0,0 @@
[req]
default_bits = 2048
prompt = no
default_md = sha256
distinguished_name = dn
[dn]
C=US
ST=RandomState
L=RandomCity
O=RandomOrganization
OU=RandomOrganizationUnit
emailAddress=animenotifierofficial@gmail.com
CN = beta.notify.moe

View File

@ -0,0 +1,5 @@
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEICc+vokkfQYJ7Doylz2YWyYw/+A2hAtCWJBxT+Dp46ahoAoGCCqGSM49
AwEHoUQDQgAEKTGI7tRZkk+ND8Qac9BzncMBND74hCb6xpWvGfgZ3KKsXvoxbIR0
YqowtKCoGKPBGIdqHOR5x6yjY+tbmD2udQ==
-----END EC PRIVATE KEY-----

View File

@ -1,7 +0,0 @@
authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
subjectAltName = @alt_names
[alt_names]
DNS.1 = beta.notify.moe