11-13-2023 07:33 PM
I am trying to use restconf to interact with my cat 8kv I can ssh into the device restconf is enabled I ensured the developer user had full privileged access. When running the api call "https://10.10.20.48:443/restconf/data/ietf-interfaces:interfaces" I get a 401 unauthorized and the raw data says access-denied. Digging into the logs I see I am getting an authorization error associated with the self signed cert. authorizationError: "DEPTH_ZERO_SELF_SIGNED_CERT". I have also verified thoroughly that I have SSL certificate validation turned off in postman. What am I doing wrong here?
Solved! Go to Solution.
11-14-2023 02:03 AM
@Betelgeuse seems to be that your client doesn't trust the switch's self-signed cert i think. What happens when you run curl with the k flag? (The -k or --insecure flag in curl tells it to skip SSL certificate validation)
curl -k https://10.10.20.48/restconf/data/ietf-interfaces:interfaces
11-14-2023 02:03 AM
@Betelgeuse seems to be that your client doesn't trust the switch's self-signed cert i think. What happens when you run curl with the k flag? (The -k or --insecure flag in curl tells it to skip SSL certificate validation)
curl -k https://10.10.20.48/restconf/data/ietf-interfaces:interfaces
11-14-2023 06:23 PM
This worked, now I just have to figure out why it wont work in postman, I've tried restarting my computer, different linux vm's, from my host network.
curl -k https://10.10.20.48/restconf/data/ietf-interfaces:interfaces \
> --user developer:C1sco12345
11-14-2023 11:39 PM
@Betelgeuse are you running a VM from your local machine with the anyconnect client on this to the sandbox? This is known to cause issues. Try the same using the always on XE sandbox and Postman, there are two to use in the catalog.
11-15-2023 06:44 PM
@bigevilbeardI am using openconnect vpn from my ubuntu20.04.3 vm which is hosted on my local machine. I did try it with anyconnect from my host and it did work.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide