1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/test
joe miller 4ae0de4f4c support TLS client auth (verify_mode) in jruby
Adds support for `verify_mode` to configure client authentication when running under JRuby.

Things to note:

- Assumes the CA used to verify client certs is in the same java
  keystore file that is used when setting up the HTTPS TLS listener. We
could split this out, but not sure if it's necessary.
- Friendly/helpful error messages explaining why the verification failed
  are not present in the same way they are in the CRuby/OpenSSL code
path. I'm not sure how to make them available.
- I did not include any code to create the `keystore.jks` file in the
  `examples/puma/client-certs` directory because I didn't see any
existing code to create the `examples/puma/keystore.jks` file. The
commands to create this keystore would be:

```
cd examples/puma/client-certs
  openssl pkcs12 -chain -CAfile ./ca.crt -export -password pass:blahblah -inkey server.key -in server.crt -name server -out server.p12
  keytool -importkeystore -srckeystore server.p12 -srcstoretype pkcs12 -srcstorepass blahblah -destkeystore keystore.jks -deststoretype JKS -storepass blahblah
  keytool -importcert -alias ca -noprompt -trustcacerts -file ca.crt -keystore keystore.jks -storepass blahblah
```
2015-11-28 18:17:01 -08:00
..
config Ignore multiple port declarations 2015-02-17 08:58:19 -06:00
shell Assure worker index always within 0...@options[:workers] 2014-01-27 13:13:48 +01:00
ab_rs.rb Add quicky ab(8) wrapper 2011-12-01 14:34:03 -08:00
config.rb Add experimental tcp mode (aka lopez express mode) 2013-08-07 16:39:08 -07:00
hello-bind.ru Added tests for bind configuration on rackup file 2015-05-25 12:15:32 +02:00
hello-delay.ru Refactor modes, fix control server to always work 2013-07-05 16:08:13 -07:00
hello-map.ru Pull over and use Rack::URLMap. Fixes #741 2015-07-17 10:52:06 -07:00
hello-post.ru Add separate IO reactor to defeat slow clients 2012-07-23 10:26:52 -07:00
hello-stuck.ru Fix phased restart with stuck requests 2015-01-15 14:58:16 +02:00
hello-tcp.ru Add experimental tcp mode (aka lopez express mode) 2013-08-07 16:39:08 -07:00
hello.ru A rack app needs to set Content-Type 2012-01-08 17:12:20 -03:00
hijack.ru Add support for the rack hijack protocol 2013-02-05 22:39:16 -08:00
hijack2.ru Add support for the rack hijack protocol 2013-02-05 22:39:16 -08:00
lobster.ru Runs a rack app! 2011-09-23 20:24:32 -07:00
mime.yaml Needed file for gem testing. 2006-06-16 20:32:55 +00:00
slow.ru Fix manifest and gemspec 2011-12-19 13:55:32 -08:00
ssl_config.rb Add ssl_config to make SSL testing easier 2013-06-18 14:52:55 -07:00
test_app_status.rb Refactor modes, fix control server to always work 2013-07-05 16:08:13 -07:00
test_cli.rb refactor configuration 2015-03-14 22:59:21 -07:00
test_config.rb ruby 1.8.7 compatibility patches 2015-07-29 09:16:24 -05:00
test_http10.rb Fix test naming 2011-10-03 14:44:18 -07:00
test_http11.rb Try to figure out why 2.2.0 isn't failing htis test 2015-06-10 13:13:28 -07:00
test_integration.rb Disable fragile test for now 2015-01-20 10:45:11 -08:00
test_iobuffer.rb updated IOBuffer impl to use native Java ByteArrayOutputStream; added test 2012-08-11 22:03:19 -07:00
test_minissl.rb Add SSL support for JRuby 2014-05-05 14:30:15 -07:00
test_null_io.rb Make NullIO#read mimic IO#read 2012-04-30 14:28:22 -04:00
test_persistent.rb Skip empty parts when chunking 2015-07-18 09:01:33 +09:30
test_puma_server.rb Disable SSL tests when SSL isn't used 2015-11-06 11:00:58 -08:00
test_puma_server_ssl.rb support TLS client auth (verify_mode) in jruby 2015-11-28 18:17:01 -08:00
test_rack_handler.rb add Rack handler for Puma 2011-10-04 14:23:51 -07:00
test_rack_server.rb Remove rack dependency. Fixes #705 2015-07-14 10:28:59 -07:00
test_tcp_rack.rb Add experimental tcp mode (aka lopez express mode) 2013-08-07 16:39:08 -07:00
test_thread_pool.rb Add thread reaping to thread pool 2015-05-20 14:57:40 +02:00
test_unix_socket.rb Proper 'Connection' header handling compatible with HTTP 1.0 and HTTP 1.1 protocols 2015-02-19 14:43:17 +01:00
test_ws.rb Remove unneeded method redirect_test_io 2012-07-04 18:15:08 -03:00
testhelp.rb Remove unneeded method redirect_test_io 2012-07-04 18:15:08 -03:00