$r=Invoke-WebRequest -uri " " -Headers $headers -Certificate $cert -CertificateThumbprint $cert.Thumbprint -ContentType application/json -Methodīut an guessing am doing something wrong, as i end up in a could not connect to remote host error, can somebody also please tell me how to insert keys into a power shell cal?(-key iapi.fix_priv.key equivalent in PowerShell). $headers = Authorization = $basicAuthValue } While this works fine off curl, am trying to replicate the same in powershell. c) Click 'Advanced system settings' link. a) Right-hand-click on 'My Computer' icon. D:\software\curl\curl.exe) To run curl from the command line. Openssl pkcs12 -in. -out certs.pem -nodesĬurl -cacert certs.pem -key iapi.fix_priv.key -cert -include -H "Accepts: application/json" -X GET Extract the contents (if you have downloaded the correct version you should find curl.exe) Place curl.exe in a folder where you keep your software (e.g. Am trying to access an API, hosted by our team, using the following CURL command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |