Homas / ioc2rpz

ioc2rpz is a place where threat intelligence meets DNS.
Apache License 2.0
105 stars 17 forks source link

curl request is giving "authentication failed" message #37

Closed vijayb888 closed 2 years ago

vijayb888 commented 3 years ago

Hello developers, I have installed the software using docker images and have the AXFR working with a TSIG key. But when I do the https request with the same key, I'm getting the following error. `# curl -i -u "tkey-3lu9dnuymu-89272zesfa:QVeIrOj5v+7Gk2NNyzpLxLEBlacXQ/KBASHMCGQfTKI=" --insecure https://192.168.0.2:8443/api/v1.0/feed/notracking.ioc2rpz HTTP/1.1 401 Unauthorized content-length: 48 date: Tue, 20 Apr 2021 03:41:08 GMT server: Cowboy www-authenticate: Basic

{status: "error", msg: "Authentication failed"}`

Homas commented 3 years ago

You need to add the TSIG key to the list of the management IPs + provision ACL on the server. Take a look on the srv record in the config.