[APICall_1]
PSCommand=(Invoke-WebRequest -CertificateThumbprint A7B5C9489FC85586957A2BD5F5AE978D2AE86CEA -Method Post -UseBasicParsing -Uri 'https://api.test.pki.com/certificates/internal/tls/p10/issue' -Headers @{'Accept' = 'application/json'; 'Content-Type' = 'application/json'} -Body '{"structKeyId": "1234-5678", "email": "test@pki.com ", "csr": "{BASE64ENCODE(CSR)}", "validity": {"months": 6}}').RawContent

SuccessContains=200 OK
CertificateTag=Base64Decode(certificate)
CertificateLineFeed=CRLF


[Documentation]

Poosible parameters:
Command
PSCommand
SuccessContains
AuthErrorContains
CertificateTag
CertificateLineFeed
WaitAfter
CallAnswer1-3

Functions:
Base64Decode()
WellFormat()

Possible place holders(tags):
{APIPASSWORD}
{APITOKEN}
{CSR}
{BASE64ENCODE(CSR)}
{STRIP(CSR)}
{CSRFILENAME}
{CERTFILENAME}
{SANS}
{FQDN}
{CN}
{IP}
{CALLANSWER1}
{CALLANSWER2}
{CALLANSWER3}
