-
Notifications
You must be signed in to change notification settings - Fork 966
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
SSL client certificates #162
Comments
Working through this today. https://github.com/jnunemaker/httparty/blob/master/lib/httparty/connection_adapter.rb#L146 |
I honestly have no idea. We have several ssl options: https://github.com/jnunemaker/httparty/blob/master/lib/httparty.rb#L39-L67 Let me know what you find out. Happy to pull documentation updates or code fixes with tests. |
Hey @JohnSmall I think you can do it with class Client
include HTTParty
debug_output $stdout
pkcs12 File.read("certs/filename.p12"), "123456"
end I have been working with SSL for a client and I had troubles setting this up, there is not to much documentation out there, it would be good to have some...what a about a wiki article? |
I can add some documentation on how to achieve this...would be better to add a wiki article or on the main README? |
I would lean toward a docs/ folder with a markdown file. Then in the code or readme we can just link to that. Coolio? |
Sure, I'll work on the PR later tonite! |
You can find the doc at #449 |
For posterity, the docs are at ../tree/master/docs#working-with-ssl |
nvm, seems the way to do it is have the cert in the repo, & the password passed in via ENV Var |
The documentation on how to use HTTParty with SSL is completely absent.
Here's what I need to do;-
We have a server we can make rest requests to, the server requires client certificates. I'm just learning this, but it seems the client certs can come in many forms, with and without passwords and such like. I'm using Firefox on a Mac, and I can backup my cert to a pk12 file, with a password, or export to a pem file, without a password.
Reading the code in HTTParty it seems that if I take the pem file option then I need to supply a password, and there's no option for feeding in a PK12 file.
How do I get this stuff to work?
The text was updated successfully, but these errors were encountered: