The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Switching from cURL-NSS to cURL-OpenSSL

Discussion in 'EasyApache' started by Martin Werner, Feb 22, 2016.

  1. Martin Werner

    Martin Werner Member

    Joined:
    Dec 4, 2015
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    Hi, I want to switch to OpenSSL from NSS for cURL. I am running EasyApache 4 and I can't find the PHP-OpenSSL package.

    The PHP-OpenSSL package is included in the PHP Options list for EasyApache 4 but I can't find it in the PHP Extensions tab on EasyApache 4.

    Thankful for help.
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    509
    Likes Received:
    65
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    OpenSSL is provided by the operating system, and there is no specific OpenSSL packages for EasyApache 4. EA4 will simply link to the appropriate SSL libraries found on the OS.

    I hope this helps!
     
  3. Martin Werner

    Martin Werner Member

    Joined:
    Dec 4, 2015
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    Okey, I need to use OpenSSL instead of NSS with cURL for a website to function properly. How do I switch between them?
     
  4. syslint

    syslint Well-Known Member

    Joined:
    Oct 9, 2006
    Messages:
    249
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Can you create a phpinfo page on your websites document root and check , whether it have openssl ? It it show openssl, then please refer this documentation to know how to use it.
     
  5. Martin Werner

    Martin Werner Member

    Joined:
    Dec 4, 2015
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    I used the PHP-cli info-command and it shows this (I have also created a phpinfo-page which shows the same):
    php -i | grep "SSL Version"
    SSL Version => NSS/3.18 Basic ECC

    I need the SSL Version to be OpenSSL instead of NSS but I can't find any guides anywhere.
     
  6. syslint

    syslint Well-Known Member

    Joined:
    Oct 9, 2006
    Messages:
    249
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    You are using easy apache 4 right ? What is the result of the following command

    # yum search openssl | grep php
     
  7. Martin Werner

    Martin Werner Member

    Joined:
    Dec 4, 2015
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    I get nothing.

    (Isn't php-openssl included in php-common?)
     
  8. syslint

    syslint Well-Known Member

    Joined:
    Oct 9, 2006
    Messages:
    249
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    php-openssl won't come with php-common . You may refer ea4 documentation to add a custom php module , otherwise switch to ea3 and compile it easily.
     
  9. Martin Werner

    Martin Werner Member

    Joined:
    Dec 4, 2015
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    Okey, well I want to run ea4 because they will be adding PHP7 to ea4 and not ea3.

    I'll look at the documentation for adding a custom PHP-module.

    Do I have to do anything else than installing php-openssl? Will cURL automatically switch to using it rather than NSS?
     
  10. Martin Werner

    Martin Werner Member

    Joined:
    Dec 4, 2015
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    Okey so I have php56-openssl installed but cURL is compiled with NSS instead of OpenSSL, how do I recompile cURL?
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you let us know how you uninstalled NSS and installed OpenSSL?

    Thank you.
     
  12. Christopher Hedqvist

    Joined:
    Aug 22, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Gävle,Sweden
    cPanel Access Level:
    Root Administrator
    Having the same Issue here, When we switched to EasyApache4 to have Multi-PHP versions and PHP7 and much more, when php was rebuild curl was compiled with NSS instead of openSSL. Looking for options to recompile curl with openssl now.
     
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please post the output from the following command:

    Code:
    curl -V
    In addition, you may find the comments on this feature request helpful:

    Update cuRL for EasyApache 4 and CentOS or CloudLinux 6.8

    Thank you.
     
Loading...

Share This Page