Member since
01-25-2018
3
Posts
0
Kudos Received
0
Solutions
07-26-2019
12:52 PM
Hi Matt, @Matt Clarke I am facing similar issue in my ambari cluster, which has only one node for now. This is a kerberos enabled cluster with realm name MASTER, and I have added a principal for nifi as nifiadmin@MASTER. I am enabling SSL and I am able to login to the SSL enabled nifi. But there I am facing the below issue " An unexpected error has occurred javax.net.ssl.SSLPeerUnverifiedException: Hostname master not verified: certificate: sha256/OeYwuYhOAaTVnMMLvGSCJZU= DN: CN=nifiadmin@MASTER, OU=NIFI, O=SELF, L=CN, ST=TN, C=IN subjectAltNames: [] " So I have tried the above steps mentioned by you here, 1. curl 'https://<nifihostname>:<port>/nifi-api/access/token' --data 'username=<username>&password=<password>' -k Gave me string of characters as mentioned by you. 2. token="$(curl 'https://<nifihostname>:<port>/nifi-api/access/token' --data 'username=<username>&password=<password>' -k)" This was also successful. 3. curl 'https://<nifihostname>:<port>/nifi-api/flow/current-user' -H "Authorization: Bearer $token" -k Here it failed saying the below: javax.net.ssl.SSLPeerUnverifiedException: Hostname master not verified: certificate: sha256/OeYwuYhOAaTVnMMLvGSCJZU= DN: CN=nifiadmin@MASTER, OU=NIFI, O=SELF, L=CN, ST=TN, C=IN subjectAltNames: [] Could you please help me to sort this out... Thanks in advance, Sarath.
... View more