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

ssl: Support using client-side SSL certificates, closes #253 and #447 #4

Merged
merged 1 commit into from
Nov 17, 2015

Conversation

Ormod
Copy link
Member

@Ormod Ormod commented Nov 9, 2015

Kafka 0.9.0+ supports using SSL encrypted connections authenticated
with client certificates. This adds support for these. After this
when using SSL/TLS for Kafka broker connections,
TLSv1.0+ is used for authentication, protocols earlier than that are
deprecated from the get go as insecure.

If keyfile/certificate are left empty, the client can still use
SSL/TLS for the transport, but in that case the server must be
configured to accept unauthenticated users.

context.verify_mode = ssl.CERT_REQUIRED
context.load_cert_chain(certfile=self.certfile, keyfile=self.keyfile)
try:
conn = context.wrap_socket(socket.socket(socket.AF_INET),
Copy link
Member

Choose a reason for hiding this comment

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

use socket.create_connection instead of creating a plain AF_INET socket and connecting with it.

@saaros
Copy link
Member

saaros commented Nov 16, 2015

Travis Tests failed due to various pylint and other issues.

…pkp#447

Kafka 0.9.0+ supports using SSL encrypted connections authenticated
with client certificates. This adds support for these. After this
when using SSL/TLS for Kafka broker connections,
TLSv1.0+ is used for authentication, protocols earlier than that are
deprecated from the get go as insecure.

If keyfile/certificate are left empty, the client can still use
SSL/TLS for the transport, but in that case the server must be
configured to accept unauthenticated users.
saaros added a commit that referenced this pull request Nov 17, 2015
ssl: Support using client-side SSL certificates, closes dpkp#253 and dpkp#447
@saaros saaros merged commit 2b5200c into aiven:ohmu Nov 17, 2015
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