-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Add API for using custom SSLSocketFactory #277
Comments
I haven't tested it, but I think you can already do that, by manually setting the sslsocketfactory property on the Session object (but it won't work in combination with authenticated proxy):
Here are some more details you could look into: https://stackoverflow.com/a/34773907/441662 In fact I came across some old unused code in the library specifically for configuring such a ConnectionFactory, but it is untested (see this gist).
If you could please check if this works for you, then I know what to do to integrate this into the library behind a better API. Other than that, do you have suggestions how you would like the API design to be regarding providing a custom SSLSocketFactory or a class (for mail.smtp.ssl.socketFactory.class)? |
Setting the property on the mailer session worked for us. Thank you very much, you saved us a lot of effort. I think a method on the mailer builder would be an appropriate api. |
So did you do this with the code I gave you? Did you use one or two key stores? |
I did this: Would you like me to test configuring keystores? |
I've added the following methods: mailerBuilder
.withCustomSSLFactoryClass(theClassName)
.withCustomSSLFactoryInstance(theInstance) // takes precedence
.buildMailer(); Including property support:
|
Released in 6.3.0. |
Hi, our service is using this mailing library and we are getting the following integration error with our fips compliance configuration.
If the socketfactory config is exposed we can inject our own class and configure the trustmanager.
The text was updated successfully, but these errors were encountered: