Menu

#5334 Not starting with SSL enabled: Failed to create SSL context

1.930
open
nobody
SSL (6)
3
2020-02-29
2019-12-22
alex p
No

Webmin not starting when SSL is enabled. Error:
Starting Webmin server in /usr/share/webmin
Failed to create SSL context : Invalid argument at /usr/share/webmin/miniserv.pl line 4383.

Envoronment:

Ubuntu Server 16 LTS

Discussion

  • Jamie Cameron

    Jamie Cameron - 2019-12-22

    That's unusual - which Perl version are you running there? Also, which version of the Net::SSLeay perl module?

     
    • alex p

      alex p - 2019-12-23

      Perl is 5.22.1
      OpenSSL is 1.02g

      But how can I check the version of the Perl module?

      Sorry, not an expert for Perl :)

       
  • Jamie Cameron

    Jamie Cameron - 2019-12-24

    You can see this at Others -> Perl Modules in Webmin.

     
    • alex p

      alex p - 2019-12-24

      Ok .. but Webmin is not starting .. so I can not see any information in Webmin :)

       
  • Jamie Cameron

    Jamie Cameron - 2019-12-25

    As a work-around, you can disable SSL by removing the line ssl=1 from /etc/webmin/miniserv.conf

     
    • alex p

      alex p - 2019-12-25

      Ok, I found it.

      This is the modules version: 1.72-1build1

       
  • Jamie Cameron

    Jamie Cameron - 2019-12-26

    Ok, that looks pretty recent. How did you generate the SSL certificate on this system?

     
    • alex p

      alex p - 2019-12-26

      I didn't .. it's a clean install as it usually works from scratch.
      I reinstalled the package (webmin) as the installation before stopped to work overnight.

       
  • Frame

    Frame - 2020-02-29

    Run into the same issue I think (after updating plesk) - I inserted the statement

    print Net::SSLeay::ERR_error_string(Net::SSLeay::ERR_get_error());

    before that line and got this:
    error:140A90F1:lib(20):func(169):reason(241)

    and 'openssl strerr 140A90F1' says:
    error:140A90F1:SSL routines:SSL_CTX_new:unable to load ssl2 md5 routines

    Possibility reasons are:

    • the openssl was not build with certain support
    • some routine must be called before (or not) with never library versions
     

Log in to post a comment.

Auth0 Logo