Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.