Hi Team,
I was trying to hit the API of ranger kms using below command I am getting error as 401 authorized .But I am sure password and username whatever I am passing is ryt .Please let me knw whats the issue curl -v -u "username:passwrod" http://localhost:9292/kms
[kms]$ * About to connect() to localhost port 9292 (#0)
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 9292 (#0)
* Server auth using Basic with user 'admin'
> GET /kms/v1/?op=GETDELEGATIONTOKEN HTTP/1.1
> Authorization: Basic> User-Agent: curl/7.29.0
> Host: localhost:9292
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< Server: Apache-Coyote/1.1
< WWW-Authenticate: Negotiate
< Content-Length: 0
< Date: Mon, 28 Sep 2020 11:48:36 GMT
curl -v -u "username:passwrod" http://localhost:9292/kms