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

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

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

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

phpetra opened this issue Nov 10, 2015 · 4 comments
Assignees

Comments

@phpetra
Copy link

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
Copy link

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
Copy link
Author

phpetra commented Nov 12, 2015

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

@Naktibalda Naktibalda self-assigned this Nov 13, 2015
@Naktibalda
Copy link
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.

@phpetra
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants