SSL [SOLVED]: SSL Version and Open SSL version are different in ubuntu 14.04 with php version 5.6

SSL [SOLVED]: SSL Version and Open SSL version are different in ubuntu 14.04 with php version 5.6

Home Forums SSL SSL [SOLVED]: SSL Version and Open SSL version are different in ubuntu 14.04 with php version 5.6

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36754

    Anonymous

    QuestionQuestion

    I see the different versions on running this terminal

    echo '<?php phpinfo(); ?>' | php 2>&1 |grep -i ssl

    Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv2, tls, tlsv1.0, tlsv1.1, tlsv1.2
    SSL => Yes
    SSL Version => OpenSSL/1.0.1f
    core SSL => supported
    extended SSL => supported
    openssl
    OpenSSL support => enabled
    OpenSSL Library Version => OpenSSL 1.1.0g  2 Nov 2017
    OpenSSL Header Version => OpenSSL 1.1.0g  2 Nov 2017
    Openssl default config => /usr/lib/ssl/openssl.cnf
    openssl.cafile => no value => no value
    openssl.capath => no value => no value
    Native OpenSSL support => enabled
    

    #36755

    Anonymous

    Accepted AnswerAnswer

    You are seeing the versions of two different pieces of PHP.

    The first output is for the curl module. PHP’s curl interface uses the curl library provided by the OS, which then uses the OpenSSL library it is linked against, in this case 1.0.1f.

    Then, PHP has a direct OpenSSL interface, which is linked against version 1.1.0g.

    If you want curl to use a newer OpenSSL version, you need to upgrade your curl library, and make sure PHP’s curl module uses the newer library.

    Source: https://serverfault.com/questions/889640/ssl-version-and-open-ssl-version-are-different-in-ubuntu-14-04-with-php-version
    Author: Tero Kilkanen
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.