Created 04-22-2025 06:54 PM
Hello,
I need help to renew validity of web certificate for Nifi.
It is for local host and Nifi2.0.0-M4
Please refer below screenshot.
Thanks & Regards,
Gaurav Mahajan
Created 04-23-2025 07:02 AM
@Shrink
Once your certificate has expired, you'll need to generate a new certificate.
Form your image, it appears you are using the NiFi auto-generated out-of-the-box self signed certificate?
There are multiple options:
nifi.security.keystorePasswd=
nifi.security.keyPasswd=
nifi.security.truststorePasswd=
With the passwords cleared and the keystore.p12 file and truststore.p12 files removed/renamed, NiFi will generate a new keystore.p12 and truststore.p12 using new randomly generated passwords. Down side here is if you use the keystore and truststore anywher in your dataflow, you'll need to update the password. Or you can use the javak keytool command to change the passwords to the password used previously. If you do this, you'll need to restart NiFi afterwards for NiFi to start using the new passwords you update in the nifi.properties file.
Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.
Thank you,
Matt
Created 04-23-2025 07:02 AM
@Shrink
Once your certificate has expired, you'll need to generate a new certificate.
Form your image, it appears you are using the NiFi auto-generated out-of-the-box self signed certificate?
There are multiple options:
nifi.security.keystorePasswd=
nifi.security.keyPasswd=
nifi.security.truststorePasswd=
With the passwords cleared and the keystore.p12 file and truststore.p12 files removed/renamed, NiFi will generate a new keystore.p12 and truststore.p12 using new randomly generated passwords. Down side here is if you use the keystore and truststore anywher in your dataflow, you'll need to update the password. Or you can use the javak keytool command to change the passwords to the password used previously. If you do this, you'll need to restart NiFi afterwards for NiFi to start using the new passwords you update in the nifi.properties file.
Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.
Thank you,
Matt
Created 04-24-2025 07:42 PM
Thank you @MattWho .
I try third option first but it was not working at my side. Nifi shuts down saying no keystore file found.
but second option works well for me.
Thanks,
I have also found below article where it explain how to change certificate
https://www.linkedin.com/pulse/configuring-ssltls-authentication-apache-nifi-dhruv-sahu/
https://www.youtube.com/watch?v=9F6DnsD8TSo