mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
cc1920749e
Your redbean can now interoperate with clients that require TLS crypto. This is accomplished using a protocol polyglot that lets us distinguish between HTTP and HTTPS regardless of the port number. Certificates will be generated automatically, if none are supplied by the user. Footprint increases by only a few hundred kb so redbean in MODY=tiny is now 1.0mb - Add lseek() polyfills for ZIP executable - Automatically polyfill /tmp/FOO paths on NT - Fix readdir() / ftw() / nftw() bugs on Windows - Introduce -B flag for slower SSL that's stronger - Remove mbedtls features Cosmopolitan doesn't need - Have base64 decoder support the uri-safe alternative - Remove Truncated HMAC because it's forbidden by the IETF - Add all the mbedtls test suites and make them go 3x faster - Support opendir() / readdir() / closedir() on ZIP executable - Use Everest for ECDHE-ECDSA because it's so good it's so good - Add tinier implementation of sha1 since it's not worth the rom - Add chi-square monte-carlo mean correlation tests for getrandom() - Source entropy on Windows from the proper interface everyone uses We're continuing to outperform NGINX and other servers on raw message throughput. Using SSL means that instead of 1,000,000 qps you can get around 300,000 qps. However redbean isn't as fast as NGINX yet at SSL handshakes, since redbean can do 2,627 per second and NGINX does 4.3k Right now, the SSL UX story works best if you give your redbean a key signing key since that can be easily generated by openssl using a one liner then redbean will do all the things that are impossibly hard to do like signing ecdsa and rsa certificates that'll work in chrome. We should integrate the let's encrypt acme protocol in the future. Live Demo: https://redbean.justine.lol/ Root Cert: https://redbean.justine.lol/redbean1.crt
113 lines
8.9 KiB
Text
113 lines
8.9 KiB
Text
Certificate Request check Server1 SHA1
|
|
depends_on:0:1:2
|
|
0:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"zip:third_party/mbedtls/test/data/server1.req.sha1":exp:0:int:0:int:0:int:0:int:0
|
|
|
|
Certificate Request check Server1 SHA224
|
|
depends_on:3:1:2
|
|
0:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"zip:third_party/mbedtls/test/data/server1.req.sha224":exp:1:int:0:int:0:int:0:int:0
|
|
|
|
Certificate Request check Server1 SHA256
|
|
depends_on:3:1:2
|
|
0:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"zip:third_party/mbedtls/test/data/server1.req.sha256":exp:2:int:0:int:0:int:0:int:0
|
|
|
|
Certificate Request check Server1 SHA384
|
|
depends_on:4:5:1:2
|
|
0:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"zip:third_party/mbedtls/test/data/server1.req.sha384":exp:3:int:0:int:0:int:0:int:0
|
|
|
|
Certificate Request check Server1 SHA512
|
|
depends_on:4:1:2
|
|
0:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"zip:third_party/mbedtls/test/data/server1.req.sha512":exp:4:int:0:int:0:int:0:int:0
|
|
|
|
Certificate Request check Server1 MD4
|
|
depends_on:6:1:2
|
|
0:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"zip:third_party/mbedtls/test/data/server1.req.md4":exp:5:int:0:int:0:int:0:int:0
|
|
|
|
Certificate Request check Server1 MD5
|
|
depends_on:7:1:2
|
|
0:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"zip:third_party/mbedtls/test/data/server1.req.md5":exp:6:int:0:int:0:int:0:int:0
|
|
|
|
Certificate Request check Server1 key_usage
|
|
depends_on:0:1:2
|
|
0:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"zip:third_party/mbedtls/test/data/server1.req.key_usage":exp:0:exp:7:int:1:int:0:int:0
|
|
|
|
Certificate Request check Server1 key_usage empty
|
|
depends_on:0:1:2
|
|
0:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"zip:third_party/mbedtls/test/data/server1.req.key_usage_empty":exp:0:int:0:int:1:int:0:int:0
|
|
|
|
Certificate Request check Server1 ns_cert_type
|
|
depends_on:0:1:2
|
|
0:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"zip:third_party/mbedtls/test/data/server1.req.cert_type":exp:0:int:0:int:0:exp:8:int:1
|
|
|
|
Certificate Request check Server1 ns_cert_type empty
|
|
depends_on:0:1:2
|
|
0:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"zip:third_party/mbedtls/test/data/server1.req.cert_type_empty":exp:0:int:0:int:0:int:0:int:1
|
|
|
|
Certificate Request check Server1 key_usage + ns_cert_type
|
|
depends_on:0:1:2
|
|
0:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"zip:third_party/mbedtls/test/data/server1.req.ku-ct":exp:0:exp:7:int:1:exp:8:int:1
|
|
|
|
Certificate Request check Server5 ECDSA, key_usage
|
|
depends_on:0:8:9:10
|
|
0:char*:"zip:third_party/mbedtls/test/data/server5.key":char*:"zip:third_party/mbedtls/test/data/server5.req.ku.sha1":exp:0:exp:9:int:1:int:0:int:0
|
|
|
|
Certificate Request check opaque Server5 ECDSA, key_usage
|
|
depends_on:3:8:10
|
|
1:char*:"zip:third_party/mbedtls/test/data/server5.key":exp:2:exp:9:int:0
|
|
|
|
Certificate write check Server1 SHA1
|
|
depends_on:0:1:2:11:12:7
|
|
2:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"":char*:"C=NL,O=PolarSSL,CN=PolarSSL Server 1":char*:"zip:third_party/mbedtls/test/data/test-ca.key":char*:"PolarSSLTest":char*:"C=NL,O=PolarSSL,CN=PolarSSL Test CA":char*:"1":char*:"20190210144406":char*:"20290210144406":exp:0:int:0:int:0:int:0:int:0:int:1:exp:10:char*:"zip:third_party/mbedtls/test/data/server1.crt":int:0:int:0
|
|
|
|
Certificate write check Server1 SHA1, key_usage
|
|
depends_on:0:1:2:11:12:7
|
|
2:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"":char*:"C=NL,O=PolarSSL,CN=PolarSSL Server 1":char*:"zip:third_party/mbedtls/test/data/test-ca.key":char*:"PolarSSLTest":char*:"C=NL,O=PolarSSL,CN=PolarSSL Test CA":char*:"1":char*:"20190210144406":char*:"20290210144406":exp:0:exp:7:int:1:int:0:int:0:int:1:exp:10:char*:"zip:third_party/mbedtls/test/data/server1.key_usage.crt":int:0:int:0
|
|
|
|
Certificate write check Server1 SHA1, ns_cert_type
|
|
depends_on:0:1:2:11:12:7
|
|
2:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"":char*:"C=NL,O=PolarSSL,CN=PolarSSL Server 1":char*:"zip:third_party/mbedtls/test/data/test-ca.key":char*:"PolarSSLTest":char*:"C=NL,O=PolarSSL,CN=PolarSSL Test CA":char*:"1":char*:"20190210144406":char*:"20290210144406":exp:0:int:0:int:0:exp:8:int:1:int:1:exp:10:char*:"zip:third_party/mbedtls/test/data/server1.cert_type.crt":int:0:int:0
|
|
|
|
Certificate write check Server1 SHA1, version 1
|
|
depends_on:0:1:2:11:12:7
|
|
2:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"":char*:"C=NL,O=PolarSSL,CN=PolarSSL Server 1":char*:"zip:third_party/mbedtls/test/data/test-ca.key":char*:"PolarSSLTest":char*:"C=NL,O=PolarSSL,CN=PolarSSL Test CA":char*:"1":char*:"20190210144406":char*:"20290210144406":exp:0:int:0:int:0:int:0:int:0:int:1:exp:11:char*:"zip:third_party/mbedtls/test/data/server1.v1.crt":int:0:int:0
|
|
|
|
Certificate write check Server1 SHA1, CA
|
|
depends_on:0:1:2:11:12:7
|
|
2:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"":char*:"C=NL,O=PolarSSL,CN=PolarSSL Server 1":char*:"zip:third_party/mbedtls/test/data/test-ca.key":char*:"PolarSSLTest":char*:"C=NL,O=PolarSSL,CN=PolarSSL Test CA":char*:"1":char*:"20190210144406":char*:"20290210144406":exp:0:int:0:int:0:int:0:int:0:int:1:exp:10:char*:"zip:third_party/mbedtls/test/data/server1.ca.crt":int:0:int:1
|
|
|
|
Certificate write check Server1 SHA1, RSA_ALT
|
|
depends_on:0:1:2:11:12:7
|
|
2:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"":char*:"C=NL,O=PolarSSL,CN=PolarSSL Server 1":char*:"zip:third_party/mbedtls/test/data/test-ca.key":char*:"PolarSSLTest":char*:"C=NL,O=PolarSSL,CN=PolarSSL Test CA":char*:"1":char*:"20190210144406":char*:"20290210144406":exp:0:int:0:int:0:int:0:int:0:int:0:exp:10:char*:"zip:third_party/mbedtls/test/data/server1.noauthid.crt":int:1:int:0
|
|
|
|
Certificate write check Server1 SHA1, RSA_ALT, key_usage
|
|
depends_on:0:1:2:11:12:7
|
|
2:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"":char*:"C=NL,O=PolarSSL,CN=PolarSSL Server 1":char*:"zip:third_party/mbedtls/test/data/test-ca.key":char*:"PolarSSLTest":char*:"C=NL,O=PolarSSL,CN=PolarSSL Test CA":char*:"1":char*:"20190210144406":char*:"20290210144406":exp:0:exp:7:int:1:int:0:int:0:int:0:exp:10:char*:"zip:third_party/mbedtls/test/data/server1.key_usage_noauthid.crt":int:1:int:0
|
|
|
|
Certificate write check Server1 SHA1, RSA_ALT, ns_cert_type
|
|
depends_on:0:1:2:11:12:7
|
|
2:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"":char*:"C=NL,O=PolarSSL,CN=PolarSSL Server 1":char*:"zip:third_party/mbedtls/test/data/test-ca.key":char*:"PolarSSLTest":char*:"C=NL,O=PolarSSL,CN=PolarSSL Test CA":char*:"1":char*:"20190210144406":char*:"20290210144406":exp:0:int:0:int:0:exp:8:int:1:int:0:exp:10:char*:"zip:third_party/mbedtls/test/data/server1.cert_type_noauthid.crt":int:1:int:0
|
|
|
|
Certificate write check Server1 SHA1, RSA_ALT, version 1
|
|
depends_on:0:1:2:11:12:7
|
|
2:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"":char*:"C=NL,O=PolarSSL,CN=PolarSSL Server 1":char*:"zip:third_party/mbedtls/test/data/test-ca.key":char*:"PolarSSLTest":char*:"C=NL,O=PolarSSL,CN=PolarSSL Test CA":char*:"1":char*:"20190210144406":char*:"20290210144406":exp:0:int:0:int:0:int:0:int:0:int:0:exp:11:char*:"zip:third_party/mbedtls/test/data/server1.v1.crt":int:1:int:0
|
|
|
|
Certificate write check Server1 SHA1, RSA_ALT, CA
|
|
depends_on:0:1:2:11:12:7
|
|
2:char*:"zip:third_party/mbedtls/test/data/server1.key":char*:"":char*:"C=NL,O=PolarSSL,CN=PolarSSL Server 1":char*:"zip:third_party/mbedtls/test/data/test-ca.key":char*:"PolarSSLTest":char*:"C=NL,O=PolarSSL,CN=PolarSSL Test CA":char*:"1":char*:"20190210144406":char*:"20290210144406":exp:0:int:0:int:0:int:0:int:0:int:0:exp:10:char*:"zip:third_party/mbedtls/test/data/server1.ca_noauthid.crt":int:1:int:1
|
|
|
|
X509 String to Names #1
|
|
3:char*:"C=NL,O=Offspark\, Inc., OU=PolarSSL":char*:"C=NL, O=Offspark, Inc., OU=PolarSSL":int:0
|
|
|
|
X509 String to Names #2
|
|
3:char*:"C=NL, O=Offspark, Inc., OU=PolarSSL":char*:"":exp:12
|
|
|
|
X509 String to Names #3 (Name precisely 255 bytes)
|
|
3:char*:"C=NL, O=123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345,OU=PolarSSL":char*:"C=NL, O=123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345, OU=PolarSSL":int:0
|
|
|
|
X509 String to Names #4 (Name larger than 255 bytes)
|
|
3:char*:"C=NL, O=1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456, OU=PolarSSL":char*:"":exp:13
|
|
|
|
X509 String to Names #5 (Escape non-allowed characters)
|
|
3:char*:"C=NL, O=Offspark\a Inc., OU=PolarSSL":char*:"":exp:13
|
|
|
|
X509 String to Names #6 (Escape at end)
|
|
3:char*:"C=NL, O=Offspark\"":char*:"":exp:13
|