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

TLS Questions #107

Open
tlc opened this issue Sep 7, 2023 · 2 comments
Open

TLS Questions #107

tlc opened this issue Sep 7, 2023 · 2 comments
Labels

Comments

@tlc
Copy link

tlc commented Sep 7, 2023

  • Does the SmartClient support TLS? How do I enable this?
  • Is requireTLS(true) and setting javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword enough to enable TLS in the server or is using startTlsSocketFactory() required?

Thanks!
Sorry for questions in Issues. Maybe consider it a documentation issue.

@davidmoten
Copy link
Owner

for TLS see these unit test classes which should cover your questions (not sure about SmartClient though):

https://github.com/davidmoten/subethasmtp/blob/master/src/test/java/org/subethamail/smtp/StartTLSFullTest.java

https://github.com/davidmoten/subethasmtp/blob/master/src/test/java/org/subethamail/smtp/PureSSLTest.java

The above classes start up a server using two TLS methods and send a test message to the server, asserting that the message arrived.

@davidmoten
Copy link
Owner

davidmoten commented Sep 10, 2023

Does the SmartClient support TLS? How do I enable this?

I'm not sure, if you find out let us know

Is requireTLS(true) and setting javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword enough to enable TLS in the server or is using startTlsSocketFactory() required?

Again, not sure without writing a new unit test. Let us know if you can. Modifying StartTLSFullTest.java would probably tell you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants