SSL Store Plug-in not working

Discussion in 'Troubleshooting' started by galaxy, Jul 28, 2016.

  1. galaxy

    galaxy Mega Poster

    Messages:
    241
    I haven't been able to get this Plug-in working for quite some time, however now people are wanting/needing it and doing it manually for them is too much.

    It continues to fail to issue a certificate.

    I've tried both URL's:

    https://api.thesslstore.com/wbservice.svc

    https://api.thesslstore.com/rest/

    but they don't work. I've generated the token on their side and entered it, entered the username, password, partner code. I always get "task failed". I don't have anything to confirm that its even sending the request off to them. I don't see a copy of the request in the debug log.

    Checking the problem report, I see the header:

    --------------------- HEADER ---------------------
    Build-ID: Parallels Business Automation - Standard release 4.5.5-31 (2015-10-02)
    Report-ID: p2016-07-23_12-33-15
    Generated: 2016-07-23 12:33:15
    Error-TEXT: 33:15] [ERROR] [25660] [HSPC::MT::Billing::process_documents] Can't process doc #41386: provisioning failed: Couldn't issue certificate: at /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/Billing.pm line 4474, <RL> line 1.

    Error-LOCATION: /usr/lib/perl5/site_perl/5.8.8/HSPC/Logger.pm:161
    --------------------- /HEADER ---------------------

    Looking in the DEBUG_LOG, lots of info, but the snippet near the failure is:

    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::MT::Billing::Subscription::save] TRACE [06]: . . . . . -> HSPC::MT::Billing::Subscription->save (subscr_id=>2931)
    [2016/07/23 12:33:14] [INFO] [25660] [HSPC::MT::BM::Subscription::SSL::service_sync] SSL subscription: ready to issue certificate
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Transaction::__logstr] TRANSACTION #12 [01] open Abstract->save
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Transaction::__logstr] TRANSACTION #12 [01] commit Abstract->save
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Transaction::__logstr] TRANSACTION #13 [01] open Abstract->save
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Transaction::__logstr] TRANSACTION #13 [01] commit Abstract->save
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Transaction::__logstr] TRANSACTION #14 [01] open Abstract->save
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Transaction::__logstr] TRANSACTION #14 [01] commit Abstract->save
    [2016/07/23 12:33:14] [WARN] [25660] [HSPC::MT::SSL::pluginEngine::issue_certificate] Couldn't issue certificate:
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Logger::sw_trace] TRACE [06]: . . . . . +> HSPC::MT::EV->throw_event (type=>161, provider_id=>1, scn=>0)
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Logger::sw_trace] TRACE [07]: . . . . . . +> HSPC::MT::GM->find_provider_config ()
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Logger::sw_trace] TRACE [08]: . . . . . . . +> HSPC::MT::Core->find_account (account_id=>1)
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Logger::sw_trace] TRACE [09]: . . . . . . . . +> HSPC::MT::Core::AbstractAccount->load (self=>HSPC::MT::Core::HSP, id=>1)
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::MT::Core::AbstractAccount::load] TRACE [09]: . . . . . . . . -> HSPC::MT::Core::AbstractAccount->load (self=>HSPC::MT::Core::HSP, id=>1) => found
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::MT::Core::find_account] TRACE [08]: . . . . . . . -> HSPC::MT::Core->find_account (account_id=>1) => found
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::MT::GM::find_provider_config] TRACE [07]: . . . . . . -> HSPC::MT::GM->find_provider_config ()
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Logger::sw_trace] TRACE [07]: . . . . . . +> HSPC::TaskExec::Local->task_add ()
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Taskman::Comm::add_task] Starting transaction
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Taskman::Comm::add_task] mutex=EV_mutex_1. One of depending tasks:
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Taskman::Comm::add_task] Add task.
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Taskman::Comm::add_task] Added task id = 2169617.
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Taskman::Comm::add_task] Set dependency counter and pending status.
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Taskman::Comm::add_task] Success, task ID: 2169617.
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::TaskExec::Local::task_add] TRACE [07]: . . . . . . -> HSPC::TaskExec::Local->task_add () => task_id=>2169617
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::MT::EV::throw_event] TRACE [06]: . . . . . -> HSPC::MT::EV->throw_event (type=>161, provider_id=>1, scn=>0)
    [2016/07/23 12:33:14] [FATAL] [25660] [Error::throw] Couldn't issue certificate:
    [2016/07/23 12:33:14] [DEBUG] [25660] [Error::subs::try] TRACE [05]: . . . . -> HSPC::MT::BM::Subscription::SSL->service_sync () => [sw_die: rep2016-07-23_12-33-14 => Couldn't issue certificate: ] (See /var/log/hspc/rep2016-07-23_12-33-14 for details)
    [2016/07/23 12:33:14] [DEBUG] [25660] [Error::subs::try] TRACE [04]: . . . -> HSPC::MT::BM::Order::SSL->post_process (id=>41386, order_type=>100)
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Logger::sw_trace] TRACE [04]: . . . +> HSPC::MT::EV->throw_event (type=>42, provider_id=>1, scn=>0)
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Logger::sw_trace] TRACE [05]: . . . . +> HSPC::MT::GM->find_provider_config ()
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Logger::sw_trace] TRACE [06]: . . . . . +> HSPC::MT::Core->find_account (account_id=>1)
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Logger::sw_trace] TRACE [07]: . . . . . . +> HSPC::MT::Core::AbstractAccount->load (self=>HSPC::MT::Core::HSP, id=>1)
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::MT::Core::AbstractAccount::load] TRACE [07]: . . . . . . -> HSPC::MT::Core::AbstractAccount->load (self=>HSPC::MT::Core::HSP, id=>1) => found
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::MT::Core::find_account] TRACE [06]: . . . . . -> HSPC::MT::Core->find_account (account_id=>1) => found
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::MT::GM::find_provider_config] TRACE [05]: . . . . -> HSPC::MT::GM->find_provider_config ()
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Logger::sw_trace] TRACE [05]: . . . . +> HSPC::TaskExec::Local->task_add ()
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Taskman::Comm::add_task] Starting transaction
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Taskman::Comm::add_task] mutex=EV_mutex_1. One of depending tasks: 2169617
    [2016/07/23 12:33:14] [DEBUG] [25660] [HSPC::Taskman::Comm::add_task] Add task.
    [2016/07/23 12:33:15] [DEBUG] [25660] [HSPC::Taskman::Comm::add_task] Added task id = 2169618.
    [2016/07/23 12:33:15] [DEBUG] [25660] [HSPC::Taskman::Comm::add_task] Set dependency counter and pending status.
    [2016/07/23 12:33:15] [DEBUG] [25660] [HSPC::Taskman::Comm::add_task] Success, task ID: 2169618.
    [2016/07/23 12:33:15] [DEBUG] [25660] [HSPC::TaskExec::Local::task_add] TRACE [05]: . . . . -> HSPC::TaskExec::Local->task_add () => task_id=>2169618
    [2016/07/23 12:33:15] [DEBUG] [25660] [HSPC::MT::EV::throw_event] TRACE [04]: . . . -> HSPC::MT::EV->throw_event (type=>42, provider_id=>1, scn=>0)
    [2016/07/23 12:33:15] [DEBUG] [25660] [HSPC::MT::Billing::provision_order] TRACE [03]: . . -> HSPC::MT::Billing->provision_order (id=>41386) => failed: provisioning failed: Couldn't issue certificate:
    [2016/07/23 12:33:15] [DEBUG] [25660] [HSPC::MT::Billing::provision_document] TRACE [02]: . -> HSPC::MT::Billing->provision_document (id=>41386, doc_type=>) => failed: provisioning failed: Couldn't issue certificate:
    [2016/07/23 12:33:15] [ERROR] [25660] [HSPC::MT::Billing::process_documents] Can't process doc #41386: provisioning failed: Couldn't issue certificate: at /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/Billing.pm line 4474, <RL> line 1.
     
  2. galaxy

    galaxy Mega Poster

    Messages:
    241
    Some additional information...

    I looked at the plugin source and tried the PHP script within there to fetch products.
    I tried both URL's.

    php /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/Plugin/SSL/theSslStore/php/sslStoreApi.php FetchProducts 'username~~password~~https://api.thesslstore.com/rest/~~partnercode~~'
    and came back with:
    PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.thesslstore.com/rest/?wsdl' : failed to load external entity "https://api.thesslstore.com/rest/?wsdl"
    in /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/Plugin/SSL/theSslStore/php/sslStoreApi.php on line 84
    PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.thesslstore.com/rest/?wsdl' : failed to load external entity "https://api.thesslstore.com/rest/?wsdl"
    in /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/Plugin/SSL/theSslStore/php/sslStoreApi.php:84
    Stack trace:
    #0 /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/Plugin/SSL/theSslStore/php/sslStoreApi.php(84): SoapClient->SoapClient('https://api.the...', Array)
    #1 {main}
    thrown in /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/Plugin/SSL/theSslStore/php/sslStoreApi.php on line 84

    So the URL isn't compatible with the plugin. So I tried the other URL (which isn't in the documentation, but got it from support somewhere).

    php /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/Plugin/SSL/theSslStore/php/sslStoreApi.php FetchProducts 'username~~password~~https://api.thesslstore.com/wbservice.cvc~~partnercode~~'
    comes back with:

    PHP Fatal error: SOAP-ERROR: Parsing WSDL: <message> 'WBService_DoWork_InputMessage' already defined in /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/Plugin/SSL/theSslStore/php/sslStoreApi.php on line 84
    PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: <message> 'WBService_DoWork_InputMessage' already defined in /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/Plugin/SSL/theSslStore/php/sslStoreApi.php:84
    Stack trace:
    #0 /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/Plugin/SSL/theSslStore/php/sslStoreApi.php(84): SoapClient->SoapClient('https://api.the...', Array)
    #1 {main}
    thrown in /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/Plugin/SSL/theSslStore/php/sslStoreApi.php on line 84

    Line 84 in that file is:

    $client = new soapclient($wsdl, array('trace' => 1, 'soap_version' => SOAP_1_1));
     
  3. dkolvakh

    dkolvakh Odin Team

    Messages:
    337
    Hello.

    Please contact an author of your plugin, if possible. Otherwise please contact your sales representative and discuss ability to resolve such kind of issue with custom plugin via Odin Support.
     
  4. galaxy

    galaxy Mega Poster

    Messages:
    241
    Its a standard plugin supplied by Parallels/Odin. I'm assuming its broken.

    This is package:

    hspc-plugin-ssl-thesslstore-4.0-66.swsoft
     
  5. dkolvakh

    dkolvakh Odin Team

    Messages:
    337
    Hello.

    OBAS do not provide that plugin, only the following plugins are distributed with product:
    hspc-plugin-ssl-opensrs
    hspc-plugin-ssl-globalsign
    hspc-plugin-ssl-enom
    hspc-plugin-ssl-dummy

    Even opening 4.0-66 distributive, you will not find it:
    [root@10 pba-4.0-66]# ls -la packages/ | grep 'plugin-ssl'
    -rw-r--r-- 1 root root 7881 Dec 27 2010 hspc-plugin-ssl-dummy-4.0-66.swsoft.i386.rpm
    -rw-r--r-- 1 root root 12947 Dec 27 2010 hspc-plugin-ssl-enom-4.0-66.swsoft.i386.rpm

    So, please contact the author of this plugin, I suppose it will be noted in rpm headers.
     
  6. galaxy

    galaxy Mega Poster

    Messages:
    241
    When I contacted The SSL Store, they told me to contact Odin, who they said was the author.
    On their site, they advertise that Odin has a plugin for OBA-S and Plesk (along with WHM, CPanel and others).

    Looking at the files included in the plugin, they have headers that say:

    ## Copyright (C) 2010 Parallels
    ## All rights reserved.
    ## Presentation functions for theSslStore plug-in


    The documentation that comes with the plugin has a Copyright 2012 by Parallels, see the attached PDF file.
    Its dated October 5th, 2012.
     

    Attached Files:

  7. galaxy

    galaxy Mega Poster

    Messages:
    241
    Here is what they have on their website for integration:

    Odin OBA Plugin (Formerly PBA Plug-in)
    Simply Integrate SSL with our Odin Business
    Automation (formerly PBA) Plugin

    Odin Business Automation Standard (formerly Parallels Business Automation or PBA) and The SSL Store™ have finally joined forces. OBA is a complete business support system for major cloud services. This fully automated system completely simplifies the entire life-cycle of a lot of cloud-based business services, like ordering, account management; like recurring and one-time billing, invoicing, and now SSL provisioning with the help of the greatest SSL team in the World.

    [​IMG]

    The SSL Store™ has invested the time & resources to partner with Odin (formerly Parallels) and their Odin Business Automation platform all to simply make your life easier. The development of our OBA SSL plugin allows you to seamlessly integrate and provision SSL right at your customers’ fingertips. Whether your customers are managing their account or services, making a payment or requesting support; SSL can now always be ready for purchase.

    By integrating with our Odin Business Automation Standard Plugin, you can now:

    • Sell SSLs from within OBA.
    • Access to a wide range of SSL and security products all under one roof.
    • Support multiple currencies, tax support, and recurring billing for SSLs, as well as ticket support.
    • Easily improve your sale ticket value and maximize your profits.
    • Get the lowest pricing in the SSL industry right from OBA control panel.
    • Handle everything from sign-up to termination, automated billing, provisioning and management for the most popular globally trusted SSL certificates.
    • The OBA plugin is fully based on our secure API, keeping your customers private.
    • Eliminate the manual work flow process usually associated with selling SSL.
    • Set your own SSL pricing and the customer never knows about your actual cost.
    • Be backed by the INDUSTRY’s BEST 24/7 top-level support.
     
  8. dkolvakh

    dkolvakh Odin Team

    Messages:
    337
    Hello.
    Please understand me well, I'm not arguing, I'm just stating that "The SSL Store" plugin wasn't developed by Parallels.

    In any case, I've contacted TheSSLstore representative to make things clean and help you somehow.
     
  9. dkolvakh

    dkolvakh Odin Team

    Messages:
    337
    Well,

    In case of problems with theSSLstore plugin you should contact their support. It's now finally clear after communication with theSSLstore that despite the fact that source code includes Parallels copyright (left as-is from Dummy plugin sources), plugin was fully developed by 3rd-party company. So, I cannot help you in that case.
     
  10. galaxy

    galaxy Mega Poster

    Messages:
    241
    So I see you deleted my last two posts... Questions about updating/fixing the plugin.
     
  11. dkolvakh

    dkolvakh Odin Team

    Messages:
    337
  12. galaxy

    galaxy Mega Poster

    Messages:
    241
    Thanks. Noticed that after the fact...
     

Share This Page