Skip to content

Added SSL Support #11

Open
wants to merge 4 commits into from

3 participants

@mhellmic
mhellmic commented May 8, 2012

This change allows WEBrick to start with SSL with a key and certificate.

I added the command line parameters
-s to enable ssl,
-k for a key and
-c for the certificate in cli.rb.
I also changed the call of WEBrick in server.rb to use the new parameters.

If this patch violates any guidelines, please tell me, I'll be happy to change it!

@jubos
Owner

not sure what exception this would throw.

ditto for the other assignments

@jubos

These are more likely to throw the exceptions based on bad certs or nonexistent files

mhellmic added some commits Sep 7, 2012
@mhellmic mhellmic Added simplest error checking in server.rb and a message displaying t…
…he key and certificate used in cli.rb (only displayed when using ssl)
cbb0a5a
@mhellmic mhellmic Merge remote branch 'upstream/master'
Fixed typo in server.rb when checking if the key is private

Conflicts:
	lib/fakes3/cli.rb
	lib/fakes3/server.rb
f557bb7
@ShaharHD
ShaharHD commented Mar 4, 2014

+1 ... two years ?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.