Skip to content

Add the ability to specific SSL cert and key files for library#30

Merged
ThomasTJdev merged 4 commits intopython36:masterfrom
keslerm:tls-auth
Jul 10, 2020
Merged

Add the ability to specific SSL cert and key files for library#30
ThomasTJdev merged 4 commits intopython36:masterfrom
keslerm:tls-auth

Conversation

@keslerm
Copy link
Copy Markdown
Contributor

@keslerm keslerm commented Jun 26, 2020

I needed to be able to preform Mutual TLS auth with a broker and the library didn't provide a way to set a ssl cert/key during connection so I added it in.

I didn't update the CLI clients since I'm not using them but I can add it in if you would like me to.

Comment thread README.md Outdated
Comment thread nmqtt.nim Outdated
host: string
port: Port
sslOn: bool
sslCertFile: string
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The brokers definition is sslCert and sslKey. Can we align the type naming? I prefer your proposal with the File appended.

https://github.com/zevv/nmqtt/blob/de90ffe0d830e7fbd99f1f36b319a43eea697a29/nmqtt.nim#L135-L140

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had removed the File suffix but i think maybe you meant to update the MqttBroker definition and add the File suffix there?

Comment thread nmqtt.nim Outdated
Comment thread nmqtt.nim Outdated
@ThomasTJdev
Copy link
Copy Markdown
Collaborator

Thanks @keslerm - nice PR. I only have a few comments.

@ThomasTJdev ThomasTJdev merged commit fb46814 into python36:master Jul 10, 2020
@keslerm keslerm deleted the tls-auth branch July 10, 2020 13:08
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.

2 participants