## Web services

### Get a user token https

This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.
Get a user token https

The result is this error message: "Can not download token.php. Can not open the internet site. Site not available or not found. Try again at a later time"; if I use http protocol I can download token.php but I don't want this.

As server I use WAMP and with openssl create files to use HTTPS protocol but because this is a local certificate is local I get a warning message: "There was a problem with the security certificate of the website". Can help me?

Thanks

Average of ratings: -
Re: Get a user token https

You need enable https:// in your php.ini file:

• extension=php_openssl.dll (uncomment it)
• allow_url_include = On (change to on)

then try again with cURL using following parameters:

• curl_setopt($ch, CURLOPT_SSLCERT, "example.p12"); • curl_setopt($ch, CURLOPT_SSLCERTTYPE, "P12");