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

Docker: can't output certificate correctly #1547

Open
kylegoetz opened this issue Aug 14, 2024 · 2 comments
Open

Docker: can't output certificate correctly #1547

kylegoetz opened this issue Aug 14, 2024 · 2 comments

Comments

@kylegoetz
Copy link

If you run smtp4dev in a Docker container and then cat /smtp4dev/selfsigned-certificate.cer the output is malformed

Screen Shot 2024-08-14 at 1 07 21 PM
@kylegoetz
Copy link
Author

kylegoetz commented Aug 14, 2024

As a note to anyone who finds themselves struggling with this, one solution to this is to run from your host machine:

openssl s_client -starttls smtp 127.0.0.1:2525

and output will include the cert, well-formed, like this:

Screen Shot 2024-08-14 at 1 14 18 PM

But it would be nice if the Docker container could output this correctly.

@Julien-Eyraud
Copy link

it is not malformed you can do:

openssl x509 -noout -text -in /smtp4dev/selfsigned-certificate.cer

You will get all the certificate info.

You are expecting the certificate to be in PEM format but I think it use DER instead.

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

2 participants