Skip to content

SSL errors #173

@FillipMatthew

Description

@FillipMatthew

Regarding the SSL issues as mentioned:
#163
#148 (comment)

The suggested solution of disabling peer verification is unsafe.

Would it be possible to add an overload to the smtp::authenticate() method and for other classes that takes an externally created ssl::context?
std::string authenticate(const std::string& username, const std::string& password, auth_method_t method, std::shared_ptr<ssl::context> ctx);
This would allow users to setup certificate stores etc. before the connection is made.

Another option could be a callback after the ssl context is initialised that allows the user to modify the context before the socket gets initialised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions