Skip to content
Snippets Groups Projects
Commit 0ce5110a authored by Rebecca Wheeler's avatar Rebecca Wheeler
Browse files

Edit CertProcess.sh

parent 29a34cd6
No related branches found
No related tags found
No related merge requests found
...@@ -22,11 +22,11 @@ curl -X POST \ ...@@ -22,11 +22,11 @@ curl -X POST \
-d "grant_type=client_credentials" \ -d "grant_type=client_credentials" \
-d "client_id=$MyKey" \ -d "client_id=$MyKey" \
-d "client_secret=$MySecret" \ -d "client_secret=$MySecret" \
https://api.wisc.edu/oauth/token | jq -r '.access_token' > /home/agent/infaagent/apps/agentcore/partner-integrations/SMPH_SSH_POC/OAuthresponse.txt https://api.wisc.edu/oauth/token | jq -r '.access_token' > /home/agent/infaagent/apps/agentcore/partner-integrations/_your_team_folder_/OAuthresponse.txt
### Replace line breaks in a cert and then post it to the API, grab the cert ID number from the response ### Replace line breaks in a cert and then post it to the API, grab the cert ID number from the response
BToken=$(cat /home/agent/infaagent/apps/agentcore/partner-integrations/SMPH_SSH_POC/OAuthresponse.txt) BToken=$(cat /home/agent/infaagent/apps/agentcore/partner-integrations/_your_team_folder_/OAuthresponse.txt)
CertEdted=$(cat /home/agent/infaagent/apps/agentcore/partner-integrations/_your_team_folder_/p_certificate.pem | tr -d '\n') CertEdted=$(cat /home/agent/infaagent/apps/agentcore/partner-integrations/_your_team_folder_/p_certificate.pem | tr -d '\n')
curl -X POST \ curl -X POST \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment