
UNSOLVED
VPLEX Curl Authentication w/o Password?
Hi all-
We're writing some bash scripts to do certain queries against VPLEX using Curl/REST and we're wondering an easy way to pass shared certificates for authentication besides sending Username/Password's across the wire (Even though it is secure w/ SSL, etc). Also we would rather not have the Username/Password in our scripts.
Is there a way in Curl to do this against VPLEX, and where would I find and/or generate keys to do this?
The authentication portion of the Bash script looks like the following. Been thinking about using Gkeyring in Linux to secure the password portion, but wondering about shared keys on the VPLEX management host and how that could be better.
curl -k -s -H "Username:$VUser" -H "Password:$VPass" -H "Accept: application/json;format=1;prettyprint=0" -o $TMP0 \
"https://$VP/vplex/cluster-contexts"
grep -q "User authentication failed" $TMP0
Any suggestions welcome!
-Brian
Responses (0)
Solutions (0)
