Menu

#4729 openldap cert creation fails

1.791
open
nobody
None
5
2018-09-23
2016-03-30
dhiaeddine
No

openldap server cert creation leave slapd.d with ldap.cert and ldap.key.lock
no sign of error is reported after "create certificate" in "generate ssl certificate" in openldap server config
server don't start anymore with "Error: Missing or incorrectly formatted TLS private key file" error
thanks

Discussion

  • Canino Dev

    Canino Dev - 2016-09-16

    Has there been any movement on this? This bug affects me as well.

     
  • Jamie Cameron

    Jamie Cameron - 2016-09-18

    Are you running the latest Webmin release (1.810) ? I thought this was fixed already..

     
  • Canino Dev

    Canino Dev - 2016-09-22

    Yes I am.. here is the screenshot:

     
  • Jamie Cameron

    Jamie Cameron - 2016-09-23

    On the cert creation form, are you entering a path to the cert and key files, or just using the default option?

     
  • Attila Kovacs

    Attila Kovacs - 2018-09-22

    somehow a nested call to "open_lock_tempfile" is broken, either generally or local, I'm not a perl expert.

    fixed sniplet in webmin-lib.pl:

    sub parse_ssl_key_form
    {
    .
    .
    .
    .
    my ($kfh, $cfh);
    
    &open_lock_tempfile($kfh, ">$keyfile");
    &print_tempfile($kfh, $keyout);
    if (!$certfile) {
    # Both go in the same file
    &print_tempfile($kfh, $certout);
    &close_tempfile($kfh);
    }
    else {
    # Separate files
    &close_tempfile($kfh);
    &open_lock_tempfile($cfh, ">$certfile");
    &print_tempfile($cfh, $certout);
    &close_tempfile($cfh);
    &set_ownership_permissions(undef, undef, 0600, $certfile);
    }
    &set_ownership_permissions(undef, undef, 0600, $keyfile);
    
    return undef;
    }
    

    why isn't this fixed after 2 years, am I using some ancient version? (1.892)

     
  • Jamie Cameron

    Jamie Cameron - 2018-09-23

    This looks to be already tracked at https://www.virtualmin.com/node/40349

     

Log in to post a comment.