diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2020-09-25 02:45:22 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2020-09-25 02:45:22 +0000 |
commit | 51e5e8fa9b6c36acdb8165c944ef9c276edf84e7 (patch) | |
tree | ba83efab54e5deb8bbd9e766387737ad804e58b8 /regress/usr.sbin/ocspcheck | |
parent | 32f134c04925e9eb7d447e09bfaac09f127812b3 (diff) |
Add regression tests for oscpcheck.
These will not be activated until after release, with
some ocspcheck cleanups
Diffstat (limited to 'regress/usr.sbin/ocspcheck')
-rw-r--r-- | regress/usr.sbin/ocspcheck/Makefile | 77 | ||||
-rw-r--r-- | regress/usr.sbin/ocspcheck/chain.pem | 66 | ||||
-rw-r--r-- | regress/usr.sbin/ocspcheck/client.crt | 98 | ||||
-rw-r--r-- | regress/usr.sbin/ocspcheck/client.key | 27 | ||||
-rwxr-xr-x | regress/usr.sbin/ocspcheck/failocspcheck | 7 | ||||
-rw-r--r-- | regress/usr.sbin/ocspcheck/index.txt | 4 | ||||
-rw-r--r-- | regress/usr.sbin/ocspcheck/ocsp-localhost.key.pem | 51 | ||||
-rw-r--r-- | regress/usr.sbin/ocspcheck/ocsp-localhost.pem | 34 | ||||
-rw-r--r-- | regress/usr.sbin/ocspcheck/old-client-staple.der | bin | 0 -> 2341 bytes | |||
-rw-r--r-- | regress/usr.sbin/ocspcheck/revoked.crt | 99 | ||||
-rw-r--r-- | regress/usr.sbin/ocspcheck/revoked.key | 27 | ||||
-rw-r--r-- | regress/usr.sbin/ocspcheck/root.pem | 33 | ||||
-rw-r--r-- | regress/usr.sbin/ocspcheck/server.crt | 99 | ||||
-rw-r--r-- | regress/usr.sbin/ocspcheck/server.key | 27 |
14 files changed, 649 insertions, 0 deletions
diff --git a/regress/usr.sbin/ocspcheck/Makefile b/regress/usr.sbin/ocspcheck/Makefile new file mode 100644 index 00000000000..ca2daad2bbe --- /dev/null +++ b/regress/usr.sbin/ocspcheck/Makefile @@ -0,0 +1,77 @@ +# $OpenBSD: Makefile,v 1.1 2020/09/25 02:45:21 beck Exp $ + +# Copyright (c) 2020 Bob Beck <beck@openbsd.org> +# +# Permission to use, copy, modify, and distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +clean: _SUBDIRUSE + rm -f *.core ktrace.out server.der client.der revoked.der + +ocsp-start: + /usr/bin/openssl ocsp -port 127.0.0.1:2560 -text -sha256 -index ${.CURDIR}/index.txt -CA ${.CURDIR}/chain.pem -rkey ${.CURDIR}/ocsp-localhost.key.pem -rsigner ${.CURDIR}/ocsp-localhost.pem -nmin 1 > /tmp/shit 2>&1 & + sleep .1 # give openssl some time to spin up + pgrep -xf '/usr/bin/openssl ocsp -port 127.0.0.1:2560.*' + +ocsp-stop: + pkill -xf '/usr/bin/openssl ocsp -port 127.0.0.1:2560.*' + +REGRESS_TARGETS += run-regress-ocspcheck +run-regress-ocspcheck: ocsp-start + /usr/sbin/ocspcheck -v \ + -C ${.CURDIR}/chain.pem \ + -o ${.OBJDIR}/server.der \ + ${.CURDIR}/server.crt + /usr/sbin/ocspcheck -v \ + -C ${.CURDIR}/chain.pem \ + -o ${.OBJDIR}/client.der \ + ${.CURDIR}/client.crt + /usr/sbin/ocspcheck -v \ + -C ${.CURDIR}/chain.pem \ + -i ${.OBJDIR}/server.der \ + ${.CURDIR}/server.crt + /usr/sbin/ocspcheck -v \ + -C ${.CURDIR}/chain.pem \ + -i ${.OBJDIR}/client.der \ + ${.CURDIR}/client.crt + ${.CURDIR}/failocspcheck -v \ + -C ${.CURDIR}/chain.pem \ + -o ${.OBJDIR}/revoked.der \ + ${.CURDIR}/revoked.crt + ${.CURDIR}/failocspcheck -v \ + -C ${.CURDIR}/chain.pem \ + -i ${.OBJDIR}/revoked.der \ + ${.CURDIR}/revoked.crt + ${.CURDIR}/failocspcheck -v \ + -C ${.CURDIR}/chain.pem \ + -i ${.OBJDIR}/client.der \ + ${.CURDIR}/revoked.crt + ${.CURDIR}/failocspcheck -v \ + -C ${.CURDIR}/chain.pem \ + -i ${.OBJDIR}/server.der \ + ${.CURDIR}/client.crt + ${.CURDIR}/failocspcheck -v \ + -C ${.CURDIR}/chain.pem \ + -i ${.OBJDIR}/revoked.der \ + ${.CURDIR}/client.crt + ${.CURDIR}/failocspcheck -v \ + -C ${.CURDIR}/chain.pem \ + -i ${.CURDIR}/old-client-staple.der \ + ${.CURDIR}/client.crt + +REGRESS_TARGETS += run-regress-cleanup +run-regress-cleanup: + ${.MAKE} -C ${.CURDIR} ocsp-stop + +.PHONY: ${REGRESS_TARGETS} ocsp-start ocsp-stop + +.include <bsd.regress.mk> diff --git a/regress/usr.sbin/ocspcheck/chain.pem b/regress/usr.sbin/ocspcheck/chain.pem new file mode 100644 index 00000000000..bbee7f12e8e --- /dev/null +++ b/regress/usr.sbin/ocspcheck/chain.pem @@ -0,0 +1,66 @@ +-----BEGIN CERTIFICATE----- +MIIFtDCCA5ygAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwZTELMAkGA1UEBhMCQ0Ex +ETAPBgNVBAgMCEVkbW9udG9uMRQwEgYDVQQKDAtNdXBwZXQgU2hvdzEWMBQGA1UE +CwwNUGlncyBJbiBTcGFjZTEVMBMGA1UEAwwMUm9vdCBDQSBDZXJ0MB4XDTIwMDky +MTAwMzAzM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bzZJZh2BfIOHMEk4uYgVRYIWU1LPnr7oQEv22rVaMjHJ ++gNGkCEIvvqh6d4KnjvDjm72GsDgku/kzJYn4N34N7XiVlq4GBN16v6GYpNXCiw2 +vEARRFLZxt7Zv+K85qGyvxkP0tSkkt2VnCosFJt9JHCHFiFjJDA5FbXZy6DA4CjP +wsETaqJw222TwUiSC26m/brVZSyQEQRfSW6j3NmVrr+AKCF+5/bXQ3g5f70d+pA9 +X4cxAgE/HFBO1hX82JurImsfBbbuWyRxuNa6cXrXXzmF/KRxyOTeIcLttcnX4mTU +cVi6LgPZtrEaKGr+hw1mtGpkY5H/lij4F/j6EJb+ovZkA71ixsBn33XXIb0eB9vT +it4I+f5vybxzznv1ET77HFvylCu/+NkIW1Wps6y1VAxJNxjQbJ6dNY/q1LjA1RZO +Pvl0E2XPwi5sFysElCKvRHvbvIqBamqFts0bTBFwjOvh4cppBlag9SqlWxVygSrD +8z5a4yUy37DXH7pBQf60NAmb5Bamz75dzHLVQHgnNuaKCVewy6/UOgQASrMBTSbQ +eWy6n85n1hUGHdG+zRtxQD6qdl0= +-----END CERTIFICATE----- diff --git a/regress/usr.sbin/ocspcheck/client.crt b/regress/usr.sbin/ocspcheck/client.crt new file mode 100644 index 00000000000..2705e206654 --- /dev/null +++ b/regress/usr.sbin/ocspcheck/client.crt @@ -0,0 +1,98 @@ +-----BEGIN CERTIFICATE----- +MIIFczCCA1ugAwIBAgICEAMwDQYJKoZIhvcNAQELBQAwbTELMAkGA1UEBhMCQ0Ex +ETAPBgNVBAgMCEVkbW9udG9uMRQwEgYDVQQKDAtNdXBwZXQgU2hvdzEWMBQGA1UE +CwwNUGlncyBJbiBTcGFjZTEdMBsGA1UEAwwUSW50ZXJtZWRpYXRlIENBIENlcnQw +HhcNMjAwOTIxMDAzMDMzWhcNNDIwODE3MDAzMDMzWjCBkDELMAkGA1UEBhMCQ0Ex +ETAPBgNVBAgMCEVkbW9udG9uMRQwEgYDVQQKDAtNdXBwZXQgU2hvdzEj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nX4mTU +cVi6LgPZtrEaKGr+hw1mtGpkY5H/lij4F/j6EJb+ovZkA71ixsBn33XXIb0eB9vT +it4I+f5vybxzznv1ET77HFvylCu/+NkIW1Wps6y1VAxJNxjQbJ6dNY/q1LjA1RZO +Pvl0E2XPwi5sFysElCKvRHvbvIqBamqFts0bTBFwjOvh4cppBlag9SqlWxVygSrD +8z5a4yUy37DXH7pBQf60NAmb5Bamz75dzHLVQHgnNuaKCVewy6/UOgQASrMBTSbQ +eWy6n85n1hUGHdG+zRtxQD6qdl0= +-----END CERTIFICATE----- diff --git a/regress/usr.sbin/ocspcheck/client.key b/regress/usr.sbin/ocspcheck/client.key new file mode 100644 index 00000000000..ca82b8f8f36 --- /dev/null +++ b/regress/usr.sbin/ocspcheck/client.key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEAzMm4582IeMZRDOU3iQMqX/eiHjGo7KdYan+oBSpmIAr8ScNe +AGR+gtsRn8qUFVHw2sBdpytdlQlbnMG6NJWDX7s93yiiKNWt2bGMMKM8lwiMQPqg +nqZtTsAwnmcA+DjRLUOhyEioXAMXQ4XlN/WVB5CzPagrxM4bYBAIYOvcHgq3ayHL +Ws+bGRHHzuQ6PiizlzlFAAZMeMMYp4Bgnw2FGXUm0wB/lyFn2xoGv7CUb3BSpNMP +wjX2NZZWI1Bt1Zdq+lb8k94phrpFoY4s3nUt6GksrPDXvjYF3ywDpFLyIE9sl6fy +CLlx8WTOaCO/BQBh+0q7byQMHd5nY/Ok3kZKBQIDAQABAoIBAH0doYK95+sh/tLK +GCv1ayZGvR2FaZdshnBKnfTJ+qsJCypl2kCTJVf9T784nVCJR4XekVlY/UvY88fJ +9GG8Fw+d7icxRCF+q0CdYPE2SgZcipQIi6liNNYwRYQBmm4NCH+HGoirG3Fb0hLG +80xFFlAQ7/FzlYogAkmmgff1If6XpBCoVpW0fvSCMgDKoAtD6J+zUX7b2fzS7+3W +jOOR+DjFNzt/ZgS2KKl9j/u6YnYUqOzlXNKgMOGQyUAs9uQ0IVtnBvaEf3mqfRLY +56AJJEB4rwuFyMDWt/M2SJRkbyD/xYievU9p9qOCEyNZY2mcPy8I3np4NcVQeARa +58gV7QECgYEA/4d8l0IJsOVgjsSHBxcHmdCH//eUyddCWh9AphMFUq91fjga/tCO +TyFZH5nmfFai19pgQeZPw9tELJkpRiyzkDSvFIAfOkXXSM5qQAPlM7K23x1fTK4f +J9/BY0KPxD3icB4PeCVl9hrb1afuTb7xFq5IYpTmgK5HFO5mZzZonI0CgYEAzSpO +DPr8GlOaD9i4V3tlt7NiVt65D+ZRWZxPG2jMOepY9ujOETGaORrlhB18+SYbYr2s +FHHI0JicDenC9dVRr89fKGMOOmciKhvI3UxqM73s7DKZpgbv4v96nKGDUq1KAoIP +GoHXTolLtDpSwjkfCvxY2w5eldW/IgqhxrcskVkCgYEAzkvmDH/mLwigkeKcWN8A +5e9zPPX3C5VcHkJJAUst6vl40/Qb50kc+0mjGF45tHyFb9sAB3QXRbpKKe9lYSBJ +v8yo5NYjX/puunrbUN9UNg68kRi3jcKtqJV/HdHpG7gSjg3W01ruHGjGvpGbVO0o +2vTNv7kS9yS8gmuOBRnqDykCgYEAip9v9zNKTZt5OAXNoEZfFv0cj+eTERwkkTCc +/r8TZnpiPApW2aUzOCxlMZwfCdTmohPYBkRPVCoZHwl4UlQdCnZKLGapgWqX2e3G +DUiJZYaJY5pY2KZNRYorVVOIAL/XhtRL0jQyvvzjatYRfuvLfse8Xd5aqFCxARY/ +8p1nfpkCgYBNXZ8htxhmkf58BqAF0eCMBuHB++WZIoSdEz+MaJ6qnLmMxE5jDEuG +53TDAhkOk/TUK41vNHCefsubYvWyX1BBr4IIEEFxduWw8grvRTkHmpxD4f67Yi6g +3rNJIpQLRZ4Bwp3GY9doiv8iJr2Ooda+umFYdC8yp2BWFdbbbQX3oQ== +-----END RSA PRIVATE KEY----- diff --git a/regress/usr.sbin/ocspcheck/failocspcheck b/regress/usr.sbin/ocspcheck/failocspcheck new file mode 100755 index 00000000000..072bca595cd --- /dev/null +++ b/regress/usr.sbin/ocspcheck/failocspcheck @@ -0,0 +1,7 @@ +#!/bin/sh + +/usr/sbin/ocspcheck $@ +if [ $? -ne 0 ]; then + exit 0 +fi +exit 1 diff --git a/regress/usr.sbin/ocspcheck/index.txt b/regress/usr.sbin/ocspcheck/index.txt new file mode 100644 index 00000000000..75849116281 --- /dev/null +++ b/regress/usr.sbin/ocspcheck/index.txt @@ -0,0 +1,4 @@ +V 420817003032Z 1000 unknown /C=CA/ST=Edmonton/O=Muppet Show/OU=Pigs In Space OCSP division/CN=localhost +R 420817003033Z 200921003033Z 1001 unknown /C=CA/ST=Edmonton/O=Muppet Show/OU=Pigs In Space Revoked Certs/CN=localhost +V 420817003033Z 1002 unknown /C=CA/ST=Edmonton/O=Muppet Show/OU=Pigs In Space Server Certs/CN=localhost +V 420817003033Z 1003 unknown /C=CA/ST=Edmonton/O=Muppet Show/OU=Pigs In Space Client Certs/CN=localhost/emailAddress=beck@openbsd.org diff --git a/regress/usr.sbin/ocspcheck/ocsp-localhost.key.pem b/regress/usr.sbin/ocspcheck/ocsp-localhost.key.pem new file mode 100644 index 00000000000..73c65a99fd6 --- /dev/null +++ b/regress/usr.sbin/ocspcheck/ocsp-localhost.key.pem @@ -0,0 +1,51 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIJKgIBAAKCAgEA4u+TToqECQbUYcfGDAKMoMExkQ7Iio6m6NZcW57geUd9MRJW +DeytPOPBVML3xvLKS91JeUBJJ2u2yvhEuOV0GQFt23sHaOWTHVGGUFqK01w3yO3H +yIPSnc+Cyc9QdZqtBlnIWm9DrDirZ4KB2Nwwl2a8wWpkA80kSk2zkGToec5cK6um +AoRH9ACE+lxA/ENzmCISxlZfj6BfhlYsuiH5nsHOhZVgOlVt9o9j8aknAybdQUzo +JYQxnt/wWEUSAi09NQQ7RZjKk0bkjQ8m59ME4c5/DC/BcOlBBrb3i1Kh3E+pox1F +xaRVlWVfXY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r7QsDqwuDytK +Fg7PuwKCAQEApx8HfBJriPskBug/cFgPQIYo8D2SWg2JbnoqKCO2SN0E6YUvuftq +f7slBG9onZWr2cVD/4NXqlXuiDJ6PSiielzAIFNPU/5F36Od/JUvqz0LAPNCjNHb +3SK5g6gvvkb7dEJaCGX6vJ6f6LDr5LAp1yvkkRBr4O4aEA6krsET5IBp3Ul+Qxi/ +fzPzNOlBWPv/cbR96o0qu3OxgGHCuf02noKCBtoqBFh1Mcx/LcJR03wJ3gkvrJrq +7Yk03SVdjSIoQMmxWHstvI6JWYQaUlWVsNYNIc3PUCla1A5/TQhrkMEyouPYsaM7 +9t5TMMwRhwBZHqDvi/u77vCXG16PvMGl2QKCAQEAxRsdldQtm3zPxDEu8ui6BHmi +4SZEbC0NAtZ2fXWtQbuVdGD7LRYUZpQ8Joy6NLo4Vok7ffr/KNxJoJ0bvX93GKBT +YmzmXNr8pL3novXW+VzY2zl3QeWXyurmxiuRTdwIl0gFAivcGuw+5FbHywVhUib9 +y4tzBkxac8HblNNRu0vqiV/IR2C4kupJH/yeuRaYoik5fXQ02EnTOH8WCW2Kx9zy +rEYK9/QjfnKFCHZ4YciAnHY0feGhWzkm2Vc1a1ZQ9GAKiRdpqCq2WLUj44FACW0H +GrMiXlzfp6EwM4iVcDqpJw0Dr7ISp2lA/3qi6SnxoSzMY7UaitH0MBccjoabjw== +-----END RSA PRIVATE KEY----- diff --git a/regress/usr.sbin/ocspcheck/ocsp-localhost.pem b/regress/usr.sbin/ocspcheck/ocsp-localhost.pem new file mode 100644 index 00000000000..a1e9580445a --- /dev/null +++ b/regress/usr.sbin/ocspcheck/ocsp-localhost.pem @@ -0,0 +1,34 @@ +-----BEGIN CERTIFICATE----- +MIIFzjCCA7agAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwbTELMAkGA1UEBhMCQ0Ex +ETAPBgNVBAgMCEVkbW9udG9uMRQwEgYDVQQKDAtNdXBwZXQgU2hvdzEWMBQGA1UE +CwwNUGlncyBJbiB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CZH6DrKfRJ7ZxVDpbP+ +zsqJP9HPMA4GA1UdDwEB/wQEAwIHgDAWBgNVHSUBAf8EDDAKBggrBgEFBQcDCTAN +BgkqhkiG9w0BAQsFAAOCAgEAsAyP4dakE4r9qZrBcrahUHCCCpprZ9ecr551Stdz +w2P/WPZoNDUZIPhEIpTyYSkVRCgXO83wbg//u2qtW3x6rSlhY5yU+Utza7DPjTZ8 +bXU5ajRKONbIULhX4gBOubunoEcSj5tcgipAqfFu6FGPX629SWkEqPgFqpTx2Lsc +yc+Ju05qB5SDwxszKrVTRpLgPStcOyAtIBjvgQWS1kbv/cE+noIrTyLXlULTNjFh +jppmg0aYfIxRNi2mBAhUPrJTgbvtyvjbi+G8Tj8cbtMDmB8Pkkw0NixRP1W+y0Un +04AHFEhZmtdHzEjhbxSOGsL+pQl3+9QMiGJ9kMAbmpkZNVdx7dqJHpLdRf5NARZD +yOlkBV947hEODsd4AKRrJQy5VpQirRcsN+5JQfDA9LQ0J2M+ZcujolxB8L8IuTab +AzvsPlLtIWFrjyXNSz1W4K/1HhZuHGHyj6qGR7gb576MvNw+OUON+IQPjf8SHsYV +iY2LbIXQaoL4Pbi3a6QKT3cbVqh4Ll+zqB7OH8pCmQtrLp8MtqKVQh6O0WMq265H +/Ory/w5+5ciCwaqlkhrJ8SCkxdFBxT/Z01azBoF2kwv7aMl6pkRqz4t1JdypnVSm +qQ1XCvVMc8Ex2I4hDUh+Bz5neyKd0QFg7O/HTTqivZtgZO8fKsRLTSh8zrclmbLD +O+0= +-----END CERTIFICATE----- diff --git a/regress/usr.sbin/ocspcheck/old-client-staple.der b/regress/usr.sbin/ocspcheck/old-client-staple.der Binary files differnew file mode 100644 index 00000000000..cd8bb06fe4e --- /dev/null +++ b/regress/usr.sbin/ocspcheck/old-client-staple.der diff --git a/regress/usr.sbin/ocspcheck/revoked.crt b/regress/usr.sbin/ocspcheck/revoked.crt new file mode 100644 index 00000000000..02e6c1912cb --- /dev/null +++ b/regress/usr.sbin/ocspc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EAwIBhjANBgkqhkiG9w0BAQsFAAOCAgEAQGJgxhf8ItFTDpTj +ASmAw2Ia328pya2gpyr9UlPCnuf+XY6aLj7YlCZWocW7+HqSKYZbRDBWm6s0/lgz +U/dQsgLUVA6EZaOlYLMrbzZJZh2BfIOHMEk4uYgVRYIWU1LPnr7oQEv22rVaMjHJ ++gNGkCEIvvqh6d4KnjvDjm72GsDgku/kzJYn4N34N7XiVlq4GBN16v6GYpNXCiw2 +vEARRFLZxt7Zv+K85qGyvxkP0tSkkt2VnCosFJt9JHCHFiFjJDA5FbXZy6DA4CjP +wsETaqJw222TwUiSC26m/brVZSyQEQRfSW6j3NmVrr+AKCF+5/bXQ3g5f70d+pA9 +X4cxAgE/HFBO1hX82JurImsfBbbuWyRxuNa6cXrXXzmF/KRxyOTeIcLttcnX4mTU +cVi6LgPZtrEaKGr+hw1mtGpkY5H/lij4F/j6EJb+ovZkA71ixsBn33XXIb0eB9vT +it4I+f5vybxzznv1ET77HFvylCu/+NkIW1Wps6y1VAxJNxjQbJ6dNY/q1LjA1RZO +Pvl0E2XPwi5sFysElCKvRHvbvIqBamqFts0bTBFwjOvh4cppBlag9SqlWxVygSrD +8z5a4yUy37DXH7pBQf60NAmb5Bamz75dzHLVQHgnNuaKCVewy6/UOgQASrMBTSbQ +eWy6n85n1hUGHdG+zRtxQD6qdl0= +-----END CERTIFICATE----- diff --git a/regress/usr.sbin/ocspcheck/revoked.key b/regress/usr.sbin/ocspcheck/revoked.key new file mode 100644 index 00000000000..f15af007c92 --- /dev/null +++ b/regress/usr.sbin/ocspcheck/revoked.key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEAvaWdxEtCEKol4XenScDrux6ggy40FkAbc3EvzxC15BM7xR9Q +EIJ1xK6sTpdZd4xwoj9F3d5GY97BQ/Sb/Gyaf7eJ46Y3hxleq3F4SsT/71P23zyY +7tgNmHey2MH4NllBWWazvXMlk2iyLf/0hWdpwU/nGIMc4uV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TiM7yPQyNBq3cwDXt4oZAoGAWlXd5ZvOgrxDbPkE4ngUhz7/CSqTSCDFzWBh +qNSfjES9Bk9IL/EaIKqzVfXIFJr+Qr1Bo4T8rjbubmaoaT046kyKSvfgQRsNVo4A +Lm70E/uH75Nn0TfOLYqKwvlKT3bQGKEQurc5Ft6m2s7v6xdSxDSS/ntbYFt1+6bP +6rQM1/MCgYBEdt3OQEgnKv/IdezGszA4zcelpt1oziSeYIyYMt/Jpxzwe0wBr1Nm +70RidX8jQE/lWP3j+6p0QxwRyoFrVCGl8jm/v8uT8JIxoev0qDtm697PG267ixTD +rokpkgojvvRntRU6xUtqyRhV1gruP85Irzazpxa1bJ5YgUmyi3gLOw== +-----END RSA PRIVATE KEY----- diff --git a/regress/usr.sbin/ocspcheck/root.pem b/regress/usr.sbin/ocspcheck/root.pem new file mode 100644 index 00000000000..0150e120421 --- /dev/null +++ b/regress/usr.sbin/ocspcheck/root.pem @@ -0,0 +1,33 @@ +-----BEGIN CERTIFICATE----- +MIIFsDCCA5igAwIBAgIJAJuLhAw806AYMA0GCSqGSIb3DQEBCwUAMGUxCzAJBgNV +BAYTAkNBMREwDwYDVQQIDAhFZG1vbnRvbjEUMBIGA1UECgwLTXVwcGV0IFNob3cx +FjAUBgNVBAsMDVBpZ3MgSW4gU3BhY2UxFTATBgNVBAMMDFJvb3QgQ0EgQ2VydDAe +Fw0yMDA5MjEwMDMwMzBaFw00MDA5MTYwMDMwMzBaMGUxCzAJBgNVBAYTAkNBMREw +DwYDVQQIDAhFZG1vbnRvbjEUMBIGA1UECgwLTXVwcGV0IFNob3cxFjAUBgNVBAsM +DVBpZ3MgSW4gU3BhY2UxFTATBgNVBAMMDFJvb3QgQ0EgQ2VydDCCAiIwDQYJKoZI +hvcNAQEBBQADggIPADCCAgoCggIBAL49I8xYUd72TGGSlwoILLiP00GptPd2K1gh +QKfZ8jK0rb6zMjUdn6k6hkfnh1WcDdkLA/hqV4NhwQA7drMXOhRxahl2S+fd/pju ++Q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j3NmVrr+AKCF+5/bXQ3g5f70d+pA9 +X4cxAgE/HFBO1hX82JurImsfBbbuWyRxuNa6cXrXXzmF/KRxyOTeIcLttcnX4mTU +cVi6LgPZtrEaKGr+hw1mtGpkY5H/lij4F/j6EJb+ovZkA71ixsBn33XXIb0eB9vT +it4I+f5vybxzznv1ET77HFvylCu/+NkIW1Wps6y1VAxJNxjQbJ6dNY/q1LjA1RZO +Pvl0E2XPwi5sFysElCKvRHvbvIqBamqFts0bTBFwjOvh4cppBlag9SqlWxVygSrD +8z5a4yUy37DXH7pBQf60NAmb5Bamz75dzHLVQHgnNuaKCVewy6/UOgQASrMBTSbQ +eWy6n85n1hUGHdG+zRtxQD6qdl0= +-----END CERTIFICATE----- diff --git a/regress/usr.sbin/ocspcheck/server.crt b/regress/usr.sbin/ocspcheck/server.crt new file mode 100644 index 00000000000..0b4aa181115 --- /dev/null +++ b/regress/usr.sbin/ocspcheck/server.crt @@ -0,0 +1,99 @@ +-----BEGIN CERTIFICATE----- +MIIFuzCCA6OgAwIBAgICEAIwDQYJKoZIhvcNAQELBQAwbTELMAkGA1UEBhMCQ0Ex +ETAPBgNVBAgMCEVkbW9udG9uMRQwEgYDVQQKDAtNdXBwZXQgU2hvdzEWMBQGA1UE +CwwNUGlncyBJbiBTcGFjZTEdMBsGA1UEAwwUSW50ZXJtZWRpYXRlIENBIENlcnQw +HhcNMjAwOTIxMDAzMDMzWhcNNDIwODE3MDAzMDMzWjBvMQswCQYDVQQGEwJDQTER +MA8GA1UECAwIRWRtb250b24xFDASBgNVBAoMC011cHBldCBTaG93MSMwIQYDVQQL +DBpQaWdzIEluIFNwYWNlIFNlcnZlciBDZXJ0czESMBAGA1UEAwwJbG9jYWxob3N0 +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1UUybFStrMI+NzxncAwm +FnlQ6M+kYqKqYjuZPEl10CgAKwHIMKfxTpdt9MrLo9KIbgj7TB5RzOxS1Wb6Lbxm +/KebKuGmV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RZO +Pvl0E2XPwi5sFysElCKvRHvbvIqBamqFts0bTBFwjOvh4cppBlag9SqlWxVygSrD +8z5a4yUy37DXH7pBQf60NAmb5Bamz75dzHLVQHgnNuaKCVewy6/UOgQASrMBTSbQ +eWy6n85n1hUGHdG+zRtxQD6qdl0= +-----END CERTIFICATE----- diff --git a/regress/usr.sbin/ocspcheck/server.key b/regress/usr.sbin/ocspcheck/server.key new file mode 100644 index 00000000000..f87fd82f3ed --- /dev/null +++ b/regress/usr.sbin/ocspcheck/server.key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEA1UUybFStrMI+NzxncAwmFnlQ6M+kYqKqYjuZPEl10CgAKwHI +MKfxTpdt9MrLo9KIbgj7TB5RzOxS1Wb6Lbxm/KebKuGmVtneZXe0GcNSLML+qdNa +VZpm0HTnYrwMUUz24iCthUDj1ZrMT64+il32zP+Qp2mHtx3W1h0c7LzAOmENZ5zh +XRgVPbGYqd5gFcWaS6ARmUDSJgR4sp2SqM3t+3blUEKrJskYvYwDKnwLOWPl20Nj +Mr+AWty70YPS85/dT6VkB6516I+NZK17TQDk497JfdAZoVliy4yb3F7JTcuTa+IJ ++ryuKK5vzs7yzWok+1pOPMGy7e4jL8y6Jd5ZIQIDAQABAoIBAFMRDqCvIq4lQgJV +npw/vx4FxoPHTGm2ndKBECAxJJgc3GPj38tDvnMz+/naexKlz8m76dUuAgJlEaZY +45yowxwpVACRvy4Y0cyHoThfoUQZ9wLCdW7eIqmSvwTv5YRNC+Prgmpiadsq3eUz +ItzV2GjkKb1rFxc1ohXnZPq4Uc7qhC9ZZuVKzUWCNB8Vo0DvTk5c9/hIobpKULf0 +MzBBOtb5mZHccjzcVsuK/vC5tD3MsAOWljrBVFN/BtjDaDz4zW1dyRC8qVRLYFyu +iz3QRB0CaNQ89FUdHpbY7IFlw8n1SJpD3hQyN26sHJj7Qy8XjH0WR/eUVOKlK40s +F/OAHgECgYEA78/E2i4pYzqwTbJxR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