Bonjour,
Je voudrais appeler, via CURL, des WS via d'une plateforme qui nécessite un certificat (P7b) (que nous avons acheté)
J'ai réussi a appeler les WS via SOAPUI sans souci en intégrant le certificat.
Mais je n'y arrive pas avec Curl, j'ai cherché...voici ce ma ligne de commande
Voici l'erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part curl --cacert monCertif.pem --user "monUser:monPwd" -d "Content-Type: application/json" -X POST -d { } https://site/service-qualif/transverses/recuperer/modedepot
je ne comprends pas ce message "curl: (60) SSL certificate problem: unable to get local issuer certificate"
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 curl: (3) [globbing] unmatched close brace/bracket in column 1 curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. HTTPS-proxy has similar options --proxy-cacert and --proxy-insecure.
Merci pour votre aide
Partager