sub valid_pem_file() lines 594 & 595 in ldap-server-lib.pl:
this function invalidates a private key if the word "RSA" is not in the header text,
on FreeBSD the private keys I created with :
openssl req -days 365 -nodes -new -keyout server.key -out server.csr
did not include the text 'RSA', It just says "BEGIN PRIVATE KEY" or "END PRIVATE KEY"
which causes an error message when I try and save the config.
Error Message :
Missing or incorrectly formatted TLS private key file
to fix it on my end, I just added the text to the key file.
I am not an SSL buff but the code should probably allow for this situation
Operating system FreeBSD 10.2
Webmin version 1.770
Time on system Mon Dec 28 02:25:15 2015
Kernel and CPU FreeBSD 10.2-RELEASE-p7 on i386
package installed from pkg install webmin did NOT use ports
openssl version : 1.0.1p-freebsd 9 Jul 2015
Thanks - this will be fixed in the next Webmin release.