Jump to content

Certificates


adrien.

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/258550-certificates/
Share on other sites

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;
        
    }

Link to comment
https://forums.phpfreaks.com/topic/258550-certificates/#findComment-1325361
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.