Skip to content

Instantly share code, notes, and snippets.

@a1mzone
Last active April 10, 2025 14:45
Show Gist options
  • Save a1mzone/62f6bfef8619214f8a974caa19cb67bd to your computer and use it in GitHub Desktop.
Save a1mzone/62f6bfef8619214f8a974caa19cb67bd to your computer and use it in GitHub Desktop.
NiFi

NiFi 2 - SNI ERROR 400 due to Jetty

Create a new PCKS12 keystore

keytool -genkeypair -alias nifi-cert -keyalg RSA -keysize 2048 -validity 365 -keystore keystore.p12 -storetype PKCS12 -dname "CN=10.3.0.1, OU=MyOrg, O=MyCompany, L=MyCity, S=MyState, C=US" -ext "SAN=IP:10.3.0.1"

Export Cert

keytool -exportcert -alias nifi-cert -file nifi-cert.crt -keystore keystore.p12 -storetype PKCS12

Create truststore

keytool -importcert -alias nifi-cert -file nifi-cert.crt -keystore truststore.p12 -storetype PKCS12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment