adrien. Posted March 8, 2012 Share Posted March 8, 2012 Not sure if this goes here >_< So here at work we have two servers one is live and the other is dev and they both have open Solaris on them. the problem is the dev server when ever you do something like wget https://api.linkedin.com/uas/oauth/authorize you get an error as such: To connect to api.linkedin.com insecurely, use `--no-check-certificate'. Unable to establish SSL connection. the server admin refuse to fix this and have sated use the --no-check-certificate to get around it. The problem is - how do I do that in PHP? or can I? ideas? Quote Link to comment https://forums.phpfreaks.com/topic/258550-certificates/ Share on other sites More sharing options...
adrien. Posted March 8, 2012 Author Share Posted March 8, 2012 I was thinking something like: exec('wget http://api.linkedin.com/uas/oauth/authorize --no-check-certificate'); But it doesnt seem to do anything >_< it should be mentioned I am using the Zend framework (latest version) Quote Link to comment https://forums.phpfreaks.com/topic/258550-certificates/#findComment-1325343 Share on other sites More sharing options...
kicken Posted March 8, 2012 Share Posted March 8, 2012 Use cURL and set the CURLOPT_SSL_VERIFYPEER to false. Quote Link to comment https://forums.phpfreaks.com/topic/258550-certificates/#findComment-1325345 Share on other sites More sharing options...
adrien. Posted March 8, 2012 Author Share Posted March 8, 2012 are there any examples of using this? Quote Link to comment https://forums.phpfreaks.com/topic/258550-certificates/#findComment-1325354 Share on other sites More sharing options...
adrien. Posted March 8, 2012 Author Share Posted March 8, 2012 I couldnt see the edit button - what I meant by examples are examples of using this to by pass a certificate authorization to continue on? I see how it might be used but im not understanding it in relation to: **see commented section bellow. public function connect() { $this->link = new Zend_Session_Namespace("LINK"); $this->link->accessToken = null; if(!$this->link->accessToken) { if(!empty($_GET)) { $this->token = $this->consumer->getAccessToken($_GET, unserialize($this->link->requestToken)); /**This line where it spazzes out**/ $this->link->accessToken = serialize($this->token); } else { $this->token = $this->consumer->getRequestToken(); $this->link->requestToken = serialize($this->token); $this->consumer->redirect(); //redirect to linkedin to authorize. } } else { $this->token = unserialize ($this->link->accessToken); } $getHttp = new Zend_Gdata_ClientLogin(); $getHttp->getHttpClient($this->options); $this->client = $getHttp; } Quote Link to comment https://forums.phpfreaks.com/topic/258550-certificates/#findComment-1325361 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.