-
-
Notifications
You must be signed in to change notification settings - Fork 173
Needed custom options on ssl params #238
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
Comments
Hi @mdemori ,
..and:
..and you would like to extend the array which gets parsed to
..or am I off? In theory those could be many options, besides $settings = [
'host' => 'xxx',
'port' => '143',
'encryption' => 'tls',
'validate_cert' => false,
'username' => 'xxxx',
'password' => 'xxxx',
'protocol' => 'imap',
'ssl' => [
'verify_peer_name' => false,
'verify_peer' => false,
],
'custom' => [
'ciphers' => 'DEFAULT:!DH',
'foo' => 'bar',
],
]; ..by which the Best regards, |
Hi @Webklex, I am also in need of being able to set some ssl stream context options (mostly the ciphers and cafile options for now). From what I have seen, those options should indeed be processed in the
In my opinion, it should be a more specific name than $settings = [
'host' => 'xxx',
'port' => '143',
'encryption' => 'tls',
'validate_cert' => false,
'username' => 'xxxx',
'password' => 'xxxx',
'protocol' => 'imap',
'ssl_stream_context' => [
'ciphers' => 'ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256',
'cafile' => '/path/to/cafile',
], I'll try to implement this in a fork of the project, but I am struggling a bit with the default configs options and the account specifics configurations right now. Kind regards, |
Co-authored-by: LE MOINE Laurent <[email protected]>
Hi,
there is a way to use custom option to the defaultSocketOptions() function? i need some special settings on context creation, i just tried with below code but seem that doesn't work:
The text was updated successfully, but these errors were encountered: