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

Where to put SSL / Curl settings in new config ? #2533

Closed
phpetra opened this Issue Nov 10, 2015 · 4 comments

Comments

Projects
None yet
3 participants
@phpetra

phpetra commented Nov 10, 2015

I have an API test suite which I recently updated to Codeception 2.1.3 and now my SSL settings for connecting to the https-site is not working anymore, because I need to put in the TLSv1 cipher And I can't for the life of me figure out where to put it.

I used to have the following config:

            enabled: [PhpBrowser, REST, ApiHelper]
            config:
                PhpBrowser:
                    url: https://secure.website.com
                    curl:
                        CURLOPT_SSL_CIPHER_LIST: 'TLSv1'

Can someone maybe tell me where I need to put these settings (or how I need to call them?) in the new style config files?
Cause none of the below options work?

enabled:
                - PhpBrowser:
                    url: https://secure.website.com
                    verify_peer: false
                    ssl:
                        CURLOPT_SSL_CIPHER_LIST: 'TLSv1'
                    curl:
                        CURLOPT_SSL_CIPHER_LIST: 'TLSv1'
@toby-griffiths

This comment has been minimized.

Show comment
Hide comment
@toby-griffiths

toby-griffiths Nov 11, 2015

Looking at the PhpBrowser config documentation, it looks like you can set the Guzzle settings in the config.

From looking at the Guzzle 'verify' config option, perhaps setting verify = false might work?...

enabled:
    - PhpBrowser
        url: https://secure.website.com
        verify: false
        ...

toby-griffiths commented Nov 11, 2015

Looking at the PhpBrowser config documentation, it looks like you can set the Guzzle settings in the config.

From looking at the Guzzle 'verify' config option, perhaps setting verify = false might work?...

enabled:
    - PhpBrowser
        url: https://secure.website.com
        verify: false
        ...
@phpetra

This comment has been minimized.

Show comment
Hide comment
@phpetra

phpetra Nov 12, 2015

Thanks for checking, but unfortunately, it doesn't :-(

phpetra commented Nov 12, 2015

Thanks for checking, but unfortunately, it doesn't :-(

@Naktibalda Naktibalda self-assigned this Nov 13, 2015

@Naktibalda

This comment has been minimized.

Show comment
Hide comment
@Naktibalda

Naktibalda Nov 13, 2015

Member

curl: is the right place to put curl option,
Codeception passes curl options to Guzzle, but it looks like Guzzle does not pass options to curl.

I will investigate it further.

Member

Naktibalda commented Nov 13, 2015

curl: is the right place to put curl option,
Codeception passes curl options to Guzzle, but it looks like Guzzle does not pass options to curl.

I will investigate it further.

@phpetra

This comment has been minimized.

Show comment
Hide comment
@phpetra

phpetra Nov 15, 2015

@Naktibalda You have just made my day!!
I updated but couldn't get passed 2.1.4 so I put your changes in manually and it now works like a charm again!
Will be eagerly awaiting the 2.1.5 release. Thank you! :-)

phpetra commented Nov 15, 2015

@Naktibalda You have just made my day!!
I updated but couldn't get passed 2.1.4 so I put your changes in manually and it now works like a charm again!
Will be eagerly awaiting the 2.1.5 release. Thank you! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment