Created 10-26-2016 11:09 PM
I am following the below procedure but I don't see how I can apply the Cert that I bought.
http://bryanbende.com/development/2016/08/17/apache-nifi-1-0-0-authorization-and-multi-tenancy
Created 10-27-2016 12:22 AM
Mark,
The certificate you purchased from a certificate authority will identify the NiFi application. Depending on the format it is in (likely a *.key
file containing the private key which never left your computer and a *.pem
or *.der
file containing the corresponding public key, which was then signed via a CSR (Certificate Signing Request) sent to the CA), you will need to build the following files:
Alternate example using keytool
:
keytool
:
$ keytool -genkey -alias nifi -keyalg RSA -keysize 2048 -keystore keystore.jks
$ keytool -certreq -alias nifi -keyalg RSA -file nifi.csr -keystore keystore.jks
nifi.csr
which you send to the CA, and they provide a signed public certificate (and the public certificate of the CA) back cert_from_ca.pem
:
$ keytool -import -trustcacerts -alias nifi -file cert_from_ca.pem -keystore keystore.jks
Here is a link to the full steps I ran (I ran my own CA in another terminal to simulate the actions of the external CA) and the resulting output.
Created 10-27-2016 12:22 AM
Mark,
The certificate you purchased from a certificate authority will identify the NiFi application. Depending on the format it is in (likely a *.key
file containing the private key which never left your computer and a *.pem
or *.der
file containing the corresponding public key, which was then signed via a CSR (Certificate Signing Request) sent to the CA), you will need to build the following files:
Alternate example using keytool
:
keytool
:
$ keytool -genkey -alias nifi -keyalg RSA -keysize 2048 -keystore keystore.jks
$ keytool -certreq -alias nifi -keyalg RSA -file nifi.csr -keystore keystore.jks
nifi.csr
which you send to the CA, and they provide a signed public certificate (and the public certificate of the CA) back cert_from_ca.pem
:
$ keytool -import -trustcacerts -alias nifi -file cert_from_ca.pem -keystore keystore.jks
Here is a link to the full steps I ran (I ran my own CA in another terminal to simulate the actions of the external CA) and the resulting output.
Created 10-27-2016 03:36 PM
Hi Andy, Thank you so much for your help. I understanding much better about the Certificates and when you to use TLS Generation Toolkit and what to your for prod environment. I am running into user permission issue. Shall I ask on the same thread or shall I create new question? Thanks for the help Andy!
Created 10-27-2016 05:12 PM
Mark, I'm glad the answer helped you. You should open a new question for the user permission issue and I will take a look.
Created 10-27-2016 09:58 PM
I have post the new question at the link below.