-
Notifications
You must be signed in to change notification settings - Fork 16
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
STARTTLS Enhance CN generator for self signed certificate #25
Comments
Need more work here Check documentation at: https://gist.github.com/arusso/d5a3195773c2ca3717d4 |
This is fixed and implemented in Also there are additional test to check SSL transmission without hostname errors. Resulting SSL certificate looks like:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using STARTTLS and leave MidiSmtpServer to generate a self signed certificate, it may happen that clients will reject with messages like:
This will happen to the helpful self signed generator, which just creates a certificate for CN 'localhost.local' currently.
In case of above it had to be generated for Alternate CN '127.0.0.1' as well.
Solution
Enable optionally and iterate through all unique addresses and names for which self signed certifcate should include CNs
Sample
This can be done via Resolv class like:
Option
It should by also possible by opts element to self define the list of CNs during initialization of MidiSmtpServer class.
Additional information
You may also check the condition discussed at mailcatcher PR sj26/mailcatcher#386
More about SAN https://support.dnsimple.com/articles/what-is-ssl-san/
The text was updated successfully, but these errors were encountered: