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

x509: certificate signed by unknown authority when using self-signed certificate #20

Open
kaptinlin opened this issue Aug 6, 2022 · 3 comments

Comments

@kaptinlin
Copy link

kaptinlin commented Aug 6, 2022

Is your feature request related to a problem? Please describe.
I am using mailpit for mail testing, but i got x509: certificate signed by unknown authority error
You may take a look at the thread

Describe the solution you'd like
Maybe add InsecureSkipVerify: true config when testing

@ainsleyclark
Copy link
Owner

Have you tried passing a different http client to the default one in the constructor? Not sure adding this functionality to the client is secure. Let me know how you get on

@kaptinlin
Copy link
Author

kaptinlin commented Aug 8, 2022

Yes, i can pass a different http client. But it seems smtp using smtp.SendMail instead of Client send request.

Maybe you can add some code to smtp driver to check if client exists, then using client to send emails like this.

@ainsleyclark
Copy link
Owner

That will be easy to do. I'll add it in soon. Thanks for the feedback!

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