Renewing SSL certs on Influx DB running on Windows - Cannot log into Influx after updating new SSL

Hi there,

Our SSL certificate has expired for InfluxDB running on Windows. I have added the new certificate to the server as well as the private key. After adding in the new certificate and key we cannot access the Influx DB URL. The yaml config file is updated to point to the new cert and key.

when running influxd.exe we receive an error: Error: tls: failed to parse private key

If we add the old cert and key back then we instantly get access to the Influx portal again. Im lost at the moment. Hoping an influx guru can assist us.

Hello @JaredKZN,
Welcome!
I’m not sure let me ask around thank you :slight_smile:

@JaredKZN
"
Based on the error message it looks like the private key is malformed. i would suggest they compare the new and old and see if there are any formatting issues. since it’s windows, they should pay extra attention to CRLFs/line breaks as that is a common issue if the files have been touched by text editors. it may not be obvious that there are text formatting issues - suggest that they open the files in something like vscode to be sure
"
From a coworker.

Ps what are you using influxdb for? I love to learn about community use cases. Thankyou!

Hi Anaisdg,

Thanks for the quick follow up. Its much appreciared. I spent more time looking into it.

I was able to resolve the isssue. Fix was to use Openssl to convert the private key which had a pass phrase into a private key which doesnt use a pass phrase.

Seems like InfluxDB didnt like the ssl private key having a passphrase.

Will test comms today to ensure our data injestion is working again.

1 Like

@JaredKZN Thanks for sharing your solution with the community!