Skip to content

Force SSL negociation to use last TLS#360

Merged
ianbarber merged 1 commit into
googleapis:masterfrom
lostick:master
Oct 22, 2014
Merged

Force SSL negociation to use last TLS#360
ianbarber merged 1 commit into
googleapis:masterfrom
lostick:master

Conversation

@lostick
Copy link
Copy Markdown

@lostick lostick commented Oct 21, 2014

Since yesterday, calling the API generates loads of "SSL routines:SSL3_GET_RECORD:wrong version number" as well as "SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac".

We figured it could be coming from Google deprecating SSL v3.
Using CURLOPT_SSLVERSION to set the remote SSL protocol version to TLSv1 worked for us.

@ianbarber
Copy link
Copy Markdown
Contributor

Thanks! Is 1 == CURL_SSLVERSION_TLSv1_0 ? I know that constant isn't in older versions of PHP, but I presume that cURL will handle it anyway. Might be worth a comment to indicate that though.

Can you sign the CLA, then I shall merge this. https://github.com/google/google-api-php-client/blob/master/CONTRIBUTING.md

@ianbarber ianbarber added the cla: no This human has *not* signed the Contributor License Agreement. label Oct 22, 2014
@lostick
Copy link
Copy Markdown
Author

lostick commented Oct 22, 2014

Cheers for the heads up! I have submitted my CLA.
Regarding the SSL version, setting it to 1 will indeed pick TLSv1.

@ianbarber ianbarber added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Oct 22, 2014
@ianbarber
Copy link
Copy Markdown
Contributor

Thanks!

ianbarber added a commit that referenced this pull request Oct 22, 2014
Force SSL negociation to use last TLS
@ianbarber ianbarber merged commit b892dcd into googleapis:master Oct 22, 2014
ianbarber pushed a commit to ianbarber/google-api-php-client that referenced this pull request Nov 7, 2014
ianbarber added a commit that referenced this pull request Nov 7, 2014
Add descriptive comment for #360
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants