Skip to content

Commit

Permalink
Create our own root certificate authority, so we can eliminate web-br…
Browse files Browse the repository at this point in the history
…owser security warnings connecting to the Slycat web server. See #107.
  • Loading branch information
tshead2 committed Dec 13, 2013
1 parent e399410 commit 00f4490
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 61 deletions.
15 changes: 0 additions & 15 deletions web-server/certificate.csr

This file was deleted.

17 changes: 0 additions & 17 deletions web-server/certificate.pem

This file was deleted.

4 changes: 2 additions & 2 deletions web-server/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ engine.autoreload.on : True
request.show_tracebacks : True
server.socket_host : "127.0.0.1"
server.socket_port : 8092
server.ssl_certificate : os.path.join(os.getcwd(), "certificate.pem")
server.ssl_private_key : os.path.join(os.getcwd(), "private-key.pem")
server.ssl_certificate : os.path.join(os.getcwd(), "web-server.pem")
server.ssl_private_key : os.path.join(os.getcwd(), "web-server.key")
server.thread_pool : 10

[slycat]
Expand Down
27 changes: 0 additions & 27 deletions web-server/private-key.pem

This file was deleted.

27 changes: 27 additions & 0 deletions web-server/root-ca.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAx3J5BxWjbfcVCEEqzxAnXWPjA6/L7E1gEqnpPKFlOP2vEvC8
fzhdBNzPxplVfG8TaAAJ/LRAf3pGQEPclqOP+n/wK1gofwg8rRBbRNmXmGFIxn8z
Q7sLkVwlixYQo9H9EvH8PAf266SA6Yk3C8ZTcf6wKctLEgKO/BhElal4c5v3rQmF
H7ywGrPxjceqZdAr09oUnkMlcV2EG6EXxVc1volslvIgSB6598SQ7zjBH711vyJ2
5VqSJnFQ2RstTNns8k22gRcWyQZnjlGfjmPJjMsHMoqAgFhSTlzsxBH1DZdym3wJ
Y9jermz9j2lmxDqExXHoqL7L4i9SF2XG/3XbMQIDAQABAoIBAG5IP9/I+Ts+2mRc
FF22Yu3i444QUMPy7OKlDRC3dY8TxxDECJaY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g
fvNmL1WuY0wAcM4WEKbLSBuDQirb19pq0o1/yKb4Tx74V15Nn9/C1UA6LQBEX3zL
dv4I2sjVfgtLZITG7vFAYK0XQ7w1Byw84LamUdjwIhCXl25mpEJtow==
-----END RSA PRIVATE KEY-----
20 changes: 20 additions & 0 deletions web-server/root-ca.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDUzCCAjugAwIBAgIJAOTQWOpBaG5jMA0GCSqGSIb3DQEBBQUAMEAxGzAZBgNV
BAoMElRoZSBTbHljYXQgUHJvamVjdDEQMA4GA1UECwwHVGVzdGluZzEPMA0GA1UE
AwwGU2x5Y2F0MB4XDTEzMTIxMzE3MDUwMFoXDTIzMTIxMTE3MDUwMFowQDEbMBkG
A1UECgwSVGhlIFNseWNhdCBQcm9qZWN0MRAwDgYDVQQLDAdUZXN0aW5nMQ8wDQYD
VQQDDAZTbHljYXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDHcnkH
FaNt9xUIQSrPECddY+MDr8vsTWASqek8oWU4/a8S8Lx/OF0E3M/GmVV8bxNoAAn8
tEB/ekZAQ9yWo4/6f/ArWCh/CDytEFtE2ZeYYUjGfzNDuwuRXCWLFhCj0f0S8fw8
B/brpIDpiTcLxlNx/rApy0sSAo78GESVqXhzm/etCYUfvLAas/GNx6pl0CvT2hSe
QyVxXYQboRfFVzW+iWyW8iBIHrn3xJDvOMEfvXW/InblWpImcVDZGy1M2ezyTbaB
FxbJBmeOUZ+OY8mMywcyioCAWFJOXOzEEfUNl3KbfAlj2N6ubP2PaWbEOoTFceio
vsviL1IXZcb/ddsxAgMBAAGjUDBOMB0GA1UdDgQWBBTLiRcbHpVmRoBrHVhbVR1w
U1eH3TAfBgNVHSMEGDAWgBTLiRcbHpVmRoBrHVhbVR1wU1eH3TAMBgNVHRMEBTAD
AQH/MA0GCSqGSIb3DQEBBQUAA4IBAQAf4qRgSJFsTRkdyDHkVzlQi8TU8KF+Todh
6/Vuw6pBla+lP0+TjnfMnk9y3ZKq1KOvkppxmhBMEZ76iIVo17AVt2ijbG+tgH4c
Fo44S8f57mVCHunkZpRlM9YbAJtdvprJ+OMMXKAwkMjotgFsLyIV93x/RXfitltk
KbvwNknytzo6qV+MnZTpnEw55j7pU9WdQu/F4lNE5hkC1eLlIrBiMXy4bqV2ASo4
JWD7MK72dQZqwREr5nEH0ixk7Jf1vIra1HYap5WI6qy8ITlkuD02vk/k4CuRgO66
qZrh31x4N5mR4mqqTzk4uawn6VHxJ+33fBuj0F3yLQfI4IwERu6h
-----END CERTIFICATE-----
16 changes: 16 additions & 0 deletions web-server/web-server.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-----BEGIN CERTIFICATE REQUEST-----
MIICiDCCAXACAQAwQzEbMBkGA1UECgwSVGhlIFNseWNhdCBQcm9qZWN0MRAwDgYD
VQQLDAdUZXN0aW5nMRIwEAYDVQQDDAlsb2NhbGhvc3QwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQDWcnD517oBAQzNpwXgsz1/SImSzR16/wfqTxrQNH8e
lGNyVw1rqxZE0JIHh1Wa8U4ksWLzbCkPeQg2a28YlU44ju/0DFQ5cLLSC1r7WIWX
9i+9CsWHsKHRNIMZ57BYsWpHbN7GlLoPQGxoK/utK2RIhQoP2BIqEd1upJWpGzFk
/s5v/IkPXlbfF4SEeIy7smgaBKneBR/bcHbdrib1lqCLTYhem0Tl5T7oYvRfkhaG
YYy20uWt6hgM5/cwSEW/cDVjffJlq7sB4FuoQq+hUmF5ZMLERsnlTXs9ay+i6iRD
RtpsYLs+PnkuCtFXgiNOkTMN4xpEcfA+EEu4qbxBfizRAgMBAAGgADANBgkqhkiG
9w0BAQUFAAOCAQEA1Q0g0wcGqfqRMxvExDMcJ+wIFv5yt1EqYSkz2pDa8v9eFcLF
8R82DCmj+P62xvr7BJynrKZGmXME4FFB/LFI64o5K553Rds0ZNOq9geO9KXQfk94
JC3LGqcB7JpneiNI2VV2gMm9edZyW2cW5MzIwdjQC6ABQAhuwfNb9m36px2or2AD
e/MORIqNc3MQ9xITHwYFqTwz4lJIzN7got6Rg7pObyXon9PrlbytHjtJMSw5Ez0a
n4vR2DZrwbRDSv9iuJOwdvngGDQBG6109hAGS349dt5unYTiJF+l3aYgxSDuHnwI
ppTL+Ykvw+U1o5xNwex33i4MvG55hVphnPfvrA==
-----END CERTIFICATE REQUEST-----
27 changes: 27 additions & 0 deletions web-server/web-server.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEA1nJw+de6AQEMzacF4LM9f0iJks0dev8H6k8a0DR/HpRjclcN
a6sWRNCSB4dVmvFOJLFi82wpD3kINmtvGJVOOI7v9AxUOXCy0gta+1iFl/YvvQrF
h7Ch0TSDGeewWLFqR2zexpS6D0BsaCv7rStkSIUKD9gSKhHdbqSVqRsxZP7Ob/yJ
D15W3xeEhHiMu7JoGgSp3gUf23B23a4m9Zagi02IXptE5eU+6GL0X5IWhmGMttLl
reoYDOf3MEhFv3A1Y33yZau7AeBbqEKvoVJheWTCxEbJ5U17PWsvouokQ0babGC7
Pj55LgrRV4IjTpEzDeMaRHHwPhBLuKm8QX4s0QIDAQABAoIBADA0kYjYIYvQPJyO
CxgzsoNGPwas7Q+U/KaDGbfr1Rd+q8wsHWwyjVLyv6DJn0ixLau55FBr498CigIR
rGuORIMaPn5Rty0iVFA7FTyi7YT3ZkvMfBLAdd+dOks8dbu6RfXAV2O0Uw7SoIva
Nzz6IBTdMyHUpGCom2ofvTTCVBwrcYSv7oZ9Ysv57oG+0oEx4dT4O6Cv5Ld+oB7B
P5QmKvyChz9r7EsqCoti99gBAL3vNYL7dSka/amKacxufU/eztw5f8xGNQ4qyqgZ
Rsq3zbBDdGcLZxqGuBj9LbGt6Gnnc8ItLy4abyLOhfmaRi1r9mb+cFcXqrEz/pbC
e+JKkwECgYEA/Ci0uFiuNjUBQipMiqtBwLKNzFENCbjs9A9J6D7hmp0v9HoQjsxN
SFdzMUqoz2Qwht0UO7mTZ4wwRoPGnOT/so/0TOMyCF60j/xYT/NxvaNOUExb9snC
d4DJueYgmbR4f9WrfbPLNW/TLnUnOvPGmSpLyuUdNBehxTy9ECKOmIkCgYEA2bat
c1JRtm6BZfI7yDuZH/OyWrg2M+UmKuxlPz7YEgwvuUEkQrtMp9uP/hzAQT5prpRJ
9N/4UXmyJBP/7SOhQjM+pXqWCMCBn9S33D0W60o3c77jjvSn9D3TLnEHpUCcfMI0
NX1+XUz1hSHhsEQ7w5y/Sf5dzz/21dCjBFBQUAkCgYEAqIM3ir7Q5a70gVgtQLqE
PZfVxUYhFW89Azk4Zfmn4SDMzG/KovOLbh3rAHTpbXeCKo6SF/vDs35vQKCN2Yn8
C0PCuqNWa1uHBXZZOkzxpQ7+phDxoHJjAGPT6+ULwkxl/uA3M9E0qyhpE/H83pvN
C8zFS/ljU827MUmO+7psWykCgYEAkHNHVDurIariShzVk34PlAaiMNUGiZohn9sn
NjZhMGBLjdPt1iTlsH3aZRT4bpGVlxKmm0W7QXvIOW3XoaTBSuYrS6oxP+9SUhTW
RNd3jHe6oR5nZ6NmiIQ4yRiPpRJggdpsv4zbOdZlFIctckFjkd8/gD24Slk7UhRT
BPqwvtkCgYEA6UA/L7NBuFEX2mh+FF4N5b7+xG2qTgYH28vx6i6w2ZvhsI4XnSJ+
rSurdhsM/FHUAoQsm3w0tlQC9cfkmdxk9aYQn96OgCSenxfFENuyPgAcm3l8Kceb
uST6mLna9jmiJ2wYJjwM9bgIGH4DBfwpQFm3iLka+eFNv8bZxv/0g8s=
-----END RSA PRIVATE KEY-----
19 changes: 19 additions & 0 deletions web-server/web-server.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-----BEGIN CERTIFICATE-----
MIIC/zCCAecCCQDjFxkI6ma5TzANBgkqhkiG9w0BAQUFADBAMRswGQYDVQQKDBJU
aGUgU2x5Y2F0IFBy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