Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Posts
    96
    Plugin Contributions
    0

    Default Linkpoint connection error - 58 Unable to load certificate

    We are using Linkpoint API on 1.3.7 and, after migrating to a new server, we are getting the following error:

    Communication Result:
    Unable to load certificate (path to .pem file)
    ErrNo: 58

    When I first noticed it, the permissions, I believe, were set to 644 and I changed to 777. I'm not sure if this made any difference. The interesting thing is, some transactions are processing without error. Strangely enough, most times it seems to be happening with the processing of VISA Debit cards - although, I've tested with my own card and received no error.

    I have verified with Linkpoint that the .pem file is valid, re-downloaded it, made sure it's accessible.

    Here is some additional data from the error log:

    Result:
    Could Not Connect:
    <r_approved>FAILURE</r_approved><r_error>Could not connect.</r_error>


    CURL info: Array
    (
    [url] => https://secure.linkpt.net:1129/LSGSXML
    [http_code] => 0
    [header_size] => 0
    [request_size] => 0
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0
    [namelookup_time] => 0.133664
    [connect_time] => 0.1942
    [pretransfer_time] => 0
    [size_upload] => 0
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 0
    [download_content_length] => 0
    [upload_content_length] => 0
    [starttransfer_time] => 0
    [redirect_time] => 0
    )

    I ran the cURL test and it seems to be fine. Port 1129 is open.

    Any ideas?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Linkpoint connection error - 58 Unable to load certificate

    Quote Originally Posted by hrm View Post
    CURL info: Array
    (
    [url] => https://secure.linkpt.net:1129/LSGSXML
    [http_code] => 0
    [header_size] => 0

    ...

    I ran the cURL test and it seems to be fine. Port 1129 is open.
    Getting a "0" back for the http_code suggests that either port 1129 is *not* open, or your server's CURL configuration is not able to successfully look up the URL for the linkpoint server.

    What happens if you run the curltest.php script and add ?linkpoint=1 to the URL?

    If you're hosted on GoDaddy, give up now: either pick a different hosting company, or a different payment gateway. GoDaddy doesn't work on port 1129 unless you waste big dollars with them for premium hosting.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2005
    Posts
    96
    Plugin Contributions
    0

    Default Re: Linkpoint connection error - 58 Unable to load certificate

    Quote Originally Posted by DrByte View Post
    Getting a "0" back for the http_code suggests that either port 1129 is *not* open, or your server's CURL configuration is not able to successfully look up the URL for the linkpoint server.

    What happens if you run the curltest.php script and add ?linkpoint=1 to the URL?
    OK, that's new. Here you go:

    Array
    (
    [url] => "https://secure.linkpt.net:1129/LSGSXML"
    [http_code] => 200
    [header_size] => 40
    [request_size] => 175
    [filetime] => -1
    [ssl_verify_result] => -8179
    [redirect_count] => 0
    [total_time] => 0.565284
    [namelookup_time] => 0.158606
    [connect_time] => 0.217231
    [pretransfer_time] => 0.505831
    [size_upload] => 37
    [size_download] => 280
    [speed_download] => 495
    [speed_upload] => 65
    [download_content_length] => 280
    [upload_content_length] => 0
    [starttransfer_time] => 0.565238
    [redirect_time] => 0
    )


    Malformed or unrecognized request. EOF


    Quote Originally Posted by DrByte View Post
    If you're hosted on GoDaddy, give up now:
    Nope, we have our own server. So whatever's wrong, it's totally our fault.

    Also, we just verified that port 1129 is open.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Linkpoint connection error - 58 Unable to load certificate

    Quote Originally Posted by hrm View Post
    Array
    (
    [url] => "https://secure.linkpt.net:1129/LSGSXML"
    [http_code] => 200


    Malformed or unrecognized request. EOF
    Okay, that's good. The "200" is what you want, and the "Malformed or unrecognized request. EOF" message comes from the Linkpoint server (just saying that you didn't submit a valid payment request), so that means communication is open.

    So the problem is that the PHP script is complaining that it can't open your PEM certificate file. But only sometimes.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Oct 2005
    Posts
    96
    Plugin Contributions
    0

    Default Re: Linkpoint connection error - 58 Unable to load certificate

    Ok, I've compared the orders with the error log and here are some of the results:

    Customer 1:
    received error 16:10
    processed successfully 16:12

    Customer 2:
    received error 16:13
    received error 16:14
    processed successfully 16:16

    Customer 3:
    received error 19:07
    processed successfully 19:10

    Each customer was able to successfully complete their order using the Linkpoint API within 3 minutes of receiving the communication error.

    Does that give any clues? I'm baffled!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Linkpoint connection error - 58 Unable to load certificate

    I'm equally puzzled.

    Did they all receive the very same error?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Linkpoint connection error - 58 Unable to load certificate

    Quote Originally Posted by hrm View Post
    Communication Result:
    Unable to load certificate (path to .pem file)
    ErrNo: 58

    When I first noticed it, the permissions, I believe, were set to 644 and I changed to 777. I'm not sure if this made any difference.
    The file should be fine with 644 permissions. It only needs to be readable.

    Quote Originally Posted by hrm View Post
    The interesting thing is, some transactions are processing without error. Strangely enough, most times it seems to be happening with the processing of VISA Debit cards - although, I've tested with my own card and received no error.
    That is very strange. The "unable to load certificate" issue should result in consistent failures.
    Or maybe your new server is wonky and unreliable? Is it changing permissions on the files without your knowledge?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v154 (60) SSL certificate problem: unable to get local issuer certificate
    By jokkah in forum PayPal Express Checkout support
    Replies: 34
    Last Post: 23 Jan 2017, 11:01 AM
  2. Authorize.net AIM Error 60 SSL certificate problem: unable to get local issuer
    By Jac Web in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 3 Jun 2016, 03:31 AM
  3. v153 Windows server: Curl error (60): SSL Certificate problem: Unable to get local issuer
    By Nettric in forum Installing on a Windows Server
    Replies: 4
    Last Post: 13 Jun 2015, 03:23 PM
  4. Linkpoint connection error 7 - couldnt connect to host
    By tonechild in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 25 Oct 2011, 05:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg