-
Notifications
You must be signed in to change notification settings - Fork 736
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
Elastica_Transport_Https #106
Comments
@rayward: You are right. This is quite a security issue. We should set it to true by default There are additional flag we should take into account: curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2); But than we have to use CURLOPT_CAPATH option to add certs: curl_setopt($curl, CURLOPT_CAPATH, 'cert.pem'); What you think is best? |
I'd suggest accepting the curl options as a parameter when constructing the client. CURL has literally tens (if not a hundred) of options. You don't want to pick and choose the ones you want. Simply allow passing-through curl opts. |
Very good idea. Does anyone have time to implement that? That also fits the general Elastica approach. Allow "everything" through a general API, but also implement some often used features more specific. |
Can this issue be closed then ? |
Closed |
This transport is setting the following curl option:
curl_setopt($connection, CURLOPT_SSL_VERIFYPEER, false);
This causes connections to be insecure as it won't verify the peers certificate. It allows connections to servers with invalid or expired certificates.
You should set this to
true
.The text was updated successfully, but these errors were encountered: