Код: Выделить всё
curl.exe --request POST --url "https://api.sberbank.ru:8443/prod/tokens/v2/oauth" ^
--header "authorization: Basic xxxxxxxx==" ^
--header "accept: application/json" ^
--header "content-type: application/x-www-form-urlencoded" ^
--header "rquid: xxxxxxxx" ^
--header "x-ibm-client-id: xxxxxxxx" ^
--data "grant_type=client_credentials&scope=https://api.sberbank.ru/qr/order.create" ^
--cert "xxxxxxxx.p12:xxxxxxxx" ^
--cert-type "P12"
Код: Выделить всё
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Curl версия 7.79.0, результат:
Код: Выделить всё
curl: (58) could not parse PKCS12 file, check password, OpenSSL error error:0308010C:digital envelope routines::unsupport
ed