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

Allow server-side TLS without client auth #77

Closed
wants to merge 11 commits into from

Conversation

danclough
Copy link

Thanks for this great project! I had a lot of fun setting it up for my Amcrest AD410 with Home Assistant.

I use a private CA for my internal network, so I wanted the ability to use TLS for the MQTT server but not the client. This pull request adds that capability, as well as the option to skip TLS verification for self-signed certificates if needed. I tested this successfully against my own AD410 and MQTT server with and without TLS server-side.

Please feel free to rework my code to fit your standards, or make any suggestions if there's something you'd like me to change prior to merging.

Summary of changes:
Modified TLS logic to allow enabling TLS server-side auth without using client certificates.
Added ability to skip TLS certificate verification for self-signed certs, when a CA can't be provided.
Updated README to reflect new environment variable for MQTT_TLS_INSECURE.
Bumped version to 1.0.17.

danclough and others added 11 commits May 29, 2022 00:04
Modified TLS logic to allow enabling TLS server-side auth without using client certificates.
Added ability to skip TLS certificate verification for self-signed certs, when a CA can't be provided.
Updated README to reflect new environment variable for MQTT_TLS_INSECURE.
Update payload structure for JSON schema change
@danclough danclough closed this Nov 18, 2022
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

Successfully merging this pull request may close these issues.

None yet

1 participant