From be1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 04:57:58 +0200 Subject: Adding upstream version 1.44.3. Signed-off-by: Daniel Baumann --- web/server/h2o/libh2o/misc/test-ca/README.md | 7 ++++++ web/server/h2o/libh2o/misc/test-ca/ca.crt | 17 ++++++++++++++ web/server/h2o/libh2o/misc/test-ca/ca.key | 27 ++++++++++++++++++++++ .../h2o/libh2o/misc/test-ca/demoCA/index.txt | 2 ++ .../h2o/libh2o/misc/test-ca/demoCA/index.txt.attr | 1 + .../libh2o/misc/test-ca/demoCA/newcerts/.gitkeep | 0 web/server/h2o/libh2o/misc/test-ca/demoCA/serial | 1 + 7 files changed, 55 insertions(+) create mode 100644 web/server/h2o/libh2o/misc/test-ca/README.md create mode 100644 web/server/h2o/libh2o/misc/test-ca/ca.crt create mode 100644 web/server/h2o/libh2o/misc/test-ca/ca.key create mode 100644 web/server/h2o/libh2o/misc/test-ca/demoCA/index.txt create mode 100644 web/server/h2o/libh2o/misc/test-ca/demoCA/index.txt.attr create mode 100644 web/server/h2o/libh2o/misc/test-ca/demoCA/newcerts/.gitkeep create mode 100644 web/server/h2o/libh2o/misc/test-ca/demoCA/serial (limited to 'web/server/h2o/libh2o/misc/test-ca') 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 00000000..e39680b9 --- /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 00000000..c08a1bcc --- /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 00000000..0e482de6 --- /dev/null +++ b/web/server/h2o/libh2o/misc/test-ca/ca.key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpQIBAAKCAQEArzfuXVcDcEDcTfIMHb74mV8xaXrP7SqOJsd82/lyupBmnSlX +gp8LgHj9vcHcN12m2sQYkvdo50KJWRfljmzPQKlQ37r8D1focjVEDOc0wwan3UjB +/Fg42ummUxeM13kMukGy/osrQtgY8oFFV00HtAeNOLUF0FrpLy+beSuldoij8PFF +3ADdEPay+TSytLIvrUrx4/tUv5yMEDL+HA1W0M8X/0L37+cXdT1bbINOBIJ/v6Zr +pUSULCpmlR0nXxDTCV1WWvlxMl1RcQrKvcV2NzeFnEFZI3aAdAkwpo3oUaidKG1g +2GjFJA0PIhFzhpQZkG+eyvRMYF5lPLVrCtZhkwIDAQABAoIBAFAS4W3qm/mqyoMc +gIj/gyCkLjKkG22pKvlx5Q+qOdIkt6BPClz5TgpSQLN9aqQqulvzjb9sLZayA46h +qxihhT1pozn7e8GPTP0Udprm9mfCHOi1nWEy+Bii+o2yj3zRJw3fhGtrMkQD+bKp +fQTegQy2/sTRhWyofzQ/L2/6kE1Qdid+iMR3J/qCgYKp7KGqn7bVGmuFx5l6hMsK +zSgmkubVFLAu6l23Wxni47IJb1iVVjDdfn4lbHo8PEolL4676FxFhKiyvE5/TRxD ++x6Fqp/IhFW1WCzszfyMnpW8pHOxhMHBkmVQBNQM4BtADZWAIlKPpqo2hCbtCj1c +F8ObSlECgYEA6BjUO6843IkkJ+KZNodEArbt9BUpuHvU/GmFDs31lkJfenfgOo5X +h6pvi8IT2Dpdc/jNyeQUSW1Rq5U4/yjoXBMT+/4bpnCyaYUcB8sGdxA+HmC4NFnv +9J8mWMWLnNnLMxcoEdfxsCj4MymjmPb3eDdQN3ijPCNYz+TZRN8B9LcCgYEAwUOE +NPA/efF3ZEoV8ZcrmGSaWjOts3O/XsegEaQeMCQ9s5rgqHODWUg/kOJpkUurPINo +lB2j1TO8uV9NxgSErwhbboQfPaR9UQa+4hvAKpzjCrHNght9DPTzkdqn+r30jqyl +VK/bomzwEbMOO8Ay3TE9aYcqL5h84WnKOUlCNgUCgYEAz6oXiud2iuwx63X1/DH/ +Cia+tZuR3rz9jnKjWOGzESSF5UAI4puleX9nmralptxh7Xf6ON/XvvMPFeTIQJVL +gcaYJOnxt3QyTfOJZvei6zkfO3LynfSynD8hwl/OUSMVirr3YS/D0gh2OuDQvfaK +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 00000000..0f465bc0 --- /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 00000000..8f7e63a3 --- /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 00000000..e69de29b 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 00000000..75016ea3 --- /dev/null +++ b/web/server/h2o/libh2o/misc/test-ca/demoCA/serial @@ -0,0 +1 @@ +03 -- cgit v1.2.3