Giter Site home page Giter Site logo

curl error 60 about php-ovh-sms HOT 4 OPEN

ovh avatar ovh commented on August 17, 2024
curl error 60

from php-ovh-sms.

Comments (4)

xavierfoucrier avatar xavierfoucrier commented on August 17, 2024 4

Bonjour,

J'ai également rencontré cette erreur mais j'ai finalement pu trouver une solution à ce problème. Je développe sur un serveur XAMPP et voici les manipulations à réaliser :

  • télécharger un certificat CURL : https://curl.haxx.se/ca/cacert.pem
  • placer le certificat dans un sous dossier de votre serveur, personnellement, j'ai choisi le dossier apache :
    C:\xampp\apache\cacert.pem
  • ouvrir le fichier "php.ini", attention de choisir le bon fichier, sur XAMPP, il n'y en a qu'un :
    C:\xampp\php\php.ini
  • dans le php.ini, décommenter la ligne curl.cainfo de la section [curl], enlever le point virgule :
    ;curl.cainfo= deviens curl.cainfo=
  • dans le php.ini, ajouter le chemin absolu vers le certificat dans la section [curl] :
    curl.cainfo="C:\xampp\apache\cacert.pem"
  • dans le php.ini, vérifier que l'extension CURL est activée, si ce n'est pas le cas, décommenter la ligne :
    ;extension=php_curl.dll deviens extension=php_curl.dll
  • redémarrer le serveur

Cette technique a fonctionné pour moi instantanément, quand d'autres propositions de solutions plus longue se sont montrées infructueuses.

Vous trouverez plus d'informations sur les certificats pem à cette adresse : https://curl.haxx.se/docs/caextract.html

from php-ovh-sms.

VincentCasse avatar VincentCasse commented on August 17, 2024

Cette erreur signifie que votre poste de travail n'arrive pas à se connecter en HTTPS sur une url.
Sans un code démontrant le problème, nous ne pourrons pas vous aider.

from php-ovh-sms.

jhice avatar jhice commented on August 17, 2024

J'imagine qu'il faut installer un certificat SSL sous Wamp, comme indiqué ici : http://stackoverflow.com/questions/29822686/curl-error-60-ssl-certificate-unable-to-get-local-issuer-certificate

Ou plus généralement : https://www.google.fr/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=install+ssl+certificate+wamp+windows+curl

J'ai contourné le problème en testant directement depuis le serveur OVH et forcément, ça passe :p

from php-ovh-sms.

Ahmedlag avatar Ahmedlag commented on August 17, 2024

CURLOPT_SSL_VERIFYPEER => false

from php-ovh-sms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.