Client certificate based HTTPS API call request #1759
Unanswered
bhaijiyunus
asked this question in
Q&A
Replies: 1 comment
-
Hello, I also met this problem, may I ask if you have found the solution |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI,
curl --cert client.crt --key client.key
--request POST 'https://api-xyz.com/private/v1/certificate'
--header 'Content-Type: application/json'
--data-raw '{
"csr": "-----BEGIN CERTIFICATE REQUEST-----MIHgMIGHAgEAMCUxDDAKBgNVBAsMA0dQUzEVMBMGA1UEAwwMQ0VHQlJJQ0VURVNUMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE3mubxBptS7/8yqR6X9T0oudP19Li7By7B3wO+KP7fXPxYsUxGdKB7piCREA2AUOWyCXfHeM1J5iVnI+wJaxL+6AAMAoGCCqGSM49BAMCA0gAMEUCIBxrqwPzD0RVeOrfH/z2J5/BCaZoJNlzgt9NSfvyVxHPAiEAtO8k0We6VrYrwAHI6IbKhCt1WabAJSYNSP+mab6JoGU=-----END CERTIFICATE REQUEST-----",
"enrollment_profile_id": "IOT_2fb347ce-dcb8-4e7d-ac44-ac44ac44f4f6"
}'
I am looking for help to convert the above curl command into Rust. I tried basic "reqwest" examples & I am getting the perfect response.
I want to understand how we can call the client certificate based API using the reqwest?
Thanks,
Yunus
Beta Was this translation helpful? Give feedback.
All reactions