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

Implement certificate validation #10

Open
artem-smotrakov opened this issue Nov 29, 2020 · 0 comments
Open

Implement certificate validation #10

artem-smotrakov opened this issue Nov 29, 2020 · 0 comments
Labels
enhancement New feature or request security

Comments

@artem-smotrakov
Copy link
Owner

Currently, the device doesn't validate server certificate which make it vulnerable for man-in-the-middle attacks.

From https://docs.micropython.org/en/latest/library/ussl.html

ussl.wrap_socket(sock, server_side=False, keyfile=None, certfile=None, cert_reqs=CERT_NONE, ca_certs=None)

Let's try passing ca_certs and cert_reqs parameters in a hope that it can turn certificate validation on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request security
Projects
None yet
Development

No branches or pull requests

1 participant