Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

finer SSL_verify_mode control #351

Merged
merged 2 commits into from Jul 10, 2012
Merged

finer SSL_verify_mode control #351

merged 2 commits into from Jul 10, 2012

Conversation

scottw
Copy link

@scottw scottw commented Jul 10, 2012

I have a server whose certificate is new enough that I have to also include the CA file with it:

listen  => ['https://*:443?cert=cert.crt&key=key.key&ca=ca.ca-bundle']

However, when I add the 'ca' parameter, this enables client/peer certificate verification, which I don't want to enforce. My commit adds another URL parameter called 'verify' that accepts a SSL_verify_mode hex flag; if no verify parameter is present, the default of 0x03 is used. The new syntax works like this:

listen  => ['https://*:443?cert=cert.crt&key=key.key&ca=ca.ca-bundle&verify=0x00']

Thanks for Mojolicious! (even if you don't pull this change)—it has made my life dramatically more fun :)

Scott

kraih added a commit that referenced this pull request Jul 10, 2012
finer SSL_verify_mode control
@kraih kraih merged commit c4dae0c into mojolicious:master Jul 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants