Commit 552fdf50 authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Adding some help scripts

parent d5e84624
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
#!/bin/bash

API_INVOKER_ID="${1:-SampleInvokerID}"

curl -k -vvv \
  -H "Content-Type: application/json" \
  -X POST \
  -d "{\"apiInvokerId\": \"$API_INVOKER_ID\", \"supportedFeatures\": \"0\"}" \
  https://client-pki.org:8443/aef-security/v1/check-authentication

send_invalid_cert.sh

0 → 100755
+12 −0
Original line number Diff line number Diff line
#!/bin/bash

CERT_FOLDER=./testcerts
CA_CERT=$CERT_FOLDER/ca_new.crt
CERT=$CERT_FOLDER/server_new.crt
KEY=$CERT_FOLDER/server_new.key

curl -k -vvv \
  --cacert $CA_CERT \
  --cert $CERT \
  --key $KEY \
  https://client-pki.org:8443/aef-security/v1/information
+13 −0
Original line number Diff line number Diff line
#!/bin/bash

API_INVOKER_ID="${1:-SampleInvokerID}"
AEF_ID="string"
API_ID="string"
CAUSE="OVERLIMIT_USAGE"
SUPPORTED_FEATURES="0"

curl -k -vvv \
  -H "Content-Type: application/json" \
  -X POST \
  -d "{\"revokeInfo\": {\"apiInvokerId\": \"$API_INVOKER_ID\", \"aefId\": \"$AEF_ID\", \"apiIds\": [\"$API_ID\"], \"cause\": \"$CAUSE\"}, \"supportedFeatures\": \"$SUPPORTED_FEATURES\"}" \
  https://client-pki.org:8443/aef-security/v1/revoke-authorization

send_valid_cert.sh

0 → 100755
+12 −0
Original line number Diff line number Diff line
#!/bin/bash

CERT_FOLDER=./TS29222_AEF_Security_API/aef_security/certs
CA_CERT=$CERT_FOLDER/ca.crt
CERT=$CERT_FOLDER/server.crt
KEY=$CERT_FOLDER/server.key

curl -k -vvv \
  --cacert $CA_CERT \
  --cert $CERT \
  --key $KEY \
  https://client-pki.org:8443/aef-security/v1/information
 No newline at end of file

start_client_pki.sh

0 → 100755
+10 −0
Original line number Diff line number Diff line
#!/bin/bash

USERNAME=testing
PASSWORD=password

curl -k -vvv \
  -H "Content-Type: application/json" \
  -X POST \
  -d "{\"username\": \"$USERNAME\", \"password\": \"$PASSWORD\"}" \
  https://client-pki.org:8443/aef-security/v1/start-client-pki