summaryrefslogtreecommitdiffstats
path: root/web/server/h2o/libh2o/misc/test-ca
diff options
context:
space:
mode:
Diffstat (limited to 'web/server/h2o/libh2o/misc/test-ca')
-rw-r--r--web/server/h2o/libh2o/misc/test-ca/README.md7
-rw-r--r--web/server/h2o/libh2o/misc/test-ca/ca.crt17
-rw-r--r--web/server/h2o/libh2o/misc/test-ca/ca.key27
-rw-r--r--web/server/h2o/libh2o/misc/test-ca/demoCA/index.txt2
-rw-r--r--web/server/h2o/libh2o/misc/test-ca/demoCA/index.txt.attr1
-rw-r--r--web/server/h2o/libh2o/misc/test-ca/demoCA/newcerts/.gitkeep0
-rw-r--r--web/server/h2o/libh2o/misc/test-ca/demoCA/serial1
7 files changed, 55 insertions, 0 deletions
diff --git a/web/server/h2o/libh2o/misc/test-ca/README.md b/web/server/h2o/libh2o/misc/test-ca/README.md
new file mode 100644
index 000000000..e39680b9c
--- /dev/null
+++ b/web/server/h2o/libh2o/misc/test-ca/README.md
@@ -0,0 +1,7 @@
+Run the commands below to create a new certificate signed by the CA:
+
+```
+openssl genrsa -out server.key 2048
+openssl req -days 3650 -new -key server.key -out server.csr
+openssl ca -keyfile ca.key -cert ca.crt -extensions usr_cert -policy policy_anything -days 3650 -md sha256 -in server.csr -out server.crt
+```
diff --git a/web/server/h2o/libh2o/misc/test-ca/ca.crt b/web/server/h2o/libh2o/misc/test-ca/ca.crt
new file mode 100644
index 000000000..c08a1bcc5
--- /dev/null
+++ b/web/server/h2o/libh2o/misc/test-ca/ca.crt
@@ -0,0 +1,17 @@
+-----BEGIN CERTIFICATE-----
+MIICqDCCAZACCQCapLVXsO/NtjANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDEwtI
+Mk8gVGVzdCBDQTAeFw0xNDEyMTAwNjQ0NTVaFw0yNDEyMDcwNjQ0NTVaMBYxFDAS
+BgNVBAMTC0gyTyBUZXN0IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
+AQEArzfuXVcDcEDcTfIMHb74mV8xaXrP7SqOJsd82/lyupBmnSlXgp8LgHj9vcHc
+N12m2sQYkvdo50KJWRfljmzPQKlQ37r8D1focjVEDOc0wwan3UjB/Fg42ummUxeM
+13kMukGy/osrQtgY8oFFV00HtAeNOLUF0FrpLy+beSuldoij8PFF3ADdEPay+TSy
+tLIvrUrx4/tUv5yMEDL+HA1W0M8X/0L37+cXdT1bbINOBIJ/v6ZrpUSULCpmlR0n
+XxDTCV1WWvlxMl1RcQrKvcV2NzeFnEFZI3aAdAkwpo3oUaidKG1g2GjFJA0PIhFz
+hpQZkG+eyvRMYF5lPLVrCtZhkwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQBItTZh
+jyOOPyD4udv5K2qK5xRDGlSzdvqFgZ4ttffppk0XjgSd1ptNjqLnmhtvyzGz1hT3
+Byww/XiFZ+HDbCT7OGDzIByvUMPKpUD5KiTRaRsLbOd3aPIU1JbOYM7GTA921TZJ
+qoCwWopAJB63LyoS+wAU4TZj0pUH4BqGsNeODA/XuPYPlUuB1bnfInRXBZiig/FT
+JQ2Sab4O6bVRCWiHt9sM+waOCoX40VP7C8o+nYIR0w+calcRJ9GX8L4sR0jgZSQu
+fjnp4ASeNZeSyivYvLC56pbBQBmgkMxl6lAvmmPnBKVHBlG+tBRyLZMnsO6ReP2R
+UdScMm6oEnThC0k1
+-----END CERTIFICATE-----
diff --git a/web/server/h2o/libh2o/misc/test-ca/ca.key b/web/server/h2o/libh2o/misc/test-ca/ca.key
new file mode 100644
index 000000000..0e482de68
--- /dev/null
+++ b/web/server/h2o/libh2o/misc/test-ca/ca.key
@@ -0,0 +1,27 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEpQIBAAKCAQEArzfuXVcDcEDcTfIMHb74mV8xaXrP7SqOJsd82/lyupBmnSlX
+gp8LgHj9vcHcN12m2sQYkvdo50KJWRfljmzPQKlQ37r8D1focjVEDOc0wwan3UjB
+/Fg42ummUxeM13kMukGy/osrQtgY8oFFV00HtAeNOLUF0F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K
+6YckQN2xwAcoWaq7M8INL/UCgYEAuIIk7gWQFHObcHvqh0Ozs0IYupUr+G9A/NPI
+1g7BY2S2I4pxgWEGvW5kgYYnEzgSuysZ5I6HozxJqRB7x9j4c8Kex9wLl2Y63eh6
+xJOJ2yT8/XDSqqxjrsMM5urCBHjlynC5Ryi9n0wxxjQUGqdb6CDiaKVKeTYzw2Ck
+WBzAwaECgYEA0hZtjC3vbL6YZ4NKw53aVMyb7GNl/J3re2g8ZGlOgOBWWgW5BI72
+l917eDBx/GOmZ1lRsI91ai19CyxiyRqd0WcZ4pqQ2qRniq7E0kajoy4+kg8Aj27f
+lD29WnSAse3sFHEhvoJYspZMGmKL4SLydXtVvllXeFhqYdK3773bPaE=
+-----END RSA PRIVATE KEY-----
diff --git a/web/server/h2o/libh2o/misc/test-ca/demoCA/index.txt b/web/server/h2o/libh2o/misc/test-ca/demoCA/index.txt
new file mode 100644
index 000000000..0f465bc0b
--- /dev/null
+++ b/web/server/h2o/libh2o/misc/test-ca/demoCA/index.txt
@@ -0,0 +1,2 @@
+V 241207193305Z 01 unknown /CN=127.0.0.1.xip.io
+V 241207201102Z 02 unknown /CN=alternate.127.0.0.1.xip.io
diff --git a/web/server/h2o/libh2o/misc/test-ca/demoCA/index.txt.attr b/web/server/h2o/libh2o/misc/test-ca/demoCA/index.txt.attr
new file mode 100644
index 000000000..8f7e63a34
--- /dev/null
+++ b/web/server/h2o/libh2o/misc/test-ca/demoCA/index.txt.attr
@@ -0,0 +1 @@
+unique_subject = yes
diff --git a/web/server/h2o/libh2o/misc/test-ca/demoCA/newcerts/.gitkeep b/web/server/h2o/libh2o/misc/test-ca/demoCA/newcerts/.gitkeep
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/web/server/h2o/libh2o/misc/test-ca/demoCA/newcerts/.gitkeep
diff --git a/web/server/h2o/libh2o/misc/test-ca/demoCA/serial b/web/server/h2o/libh2o/misc/test-ca/demoCA/serial
new file mode 100644
index 000000000..75016ea36
--- /dev/null
+++ b/web/server/h2o/libh2o/misc/test-ca/demoCA/serial
@@ -0,0 +1 @@
+03