oleksiyk/kafka

wrong tag

Opened this issue · 1 comments

I use this function to connect to Kafka server:

var producer = new Kafka.Producer({
connectionString: 'kafka://'+ ipAddress + ':' + port,
ssl: {
cert: fs.readFileSync('c:\Temp\180008.cer').toString('utf-8'),
key: fs.readFileSync('c:\Temp\180008.key').toString('utf-8')
}
});

The certificate and the key are correctly generated and signed by our CA. I get the below error when trying to connect. Can you please provide some insight about what could be wrong with is connection. I ran node from a windows 7 box. Thank you.

I think your certificate is not in PEM format or has trailing spaces, broken formatting, etc.