I am using below command
curl --insecure --cert 'cert.p12:password' -X GET https://serverUrl -H 'Content-Type: application/json'
curl --insecure --cert-type P12 --cert 'cert.p12:password' -X GET https://serverUrl -H 'Content-Type: application/json'
it's not working in Ubuntu 16.04.4 LTS \n \l (curl 7.47.0 (x86_64-pc-linux-gnu)) (AWS lightsail) and giving below error
curl: (35) error reading X.509 potentially-encrypted key file: Error in parsing.
but working in Ubuntu 18.04.3 LTS \n \l (LOCAL SYSTEM)(curl 7.58.0 (x86_64-pc-linux-gnu))