I tried to create a new pem file for a new https cert
I changwed the host name and number
of bits from 512 to 2048
it gave a pem file with ssl cert and prive key but when I viewed the miniserver pem file
it seems to be the old one which had a diffrent host name and the bits were set to 512 (or not the same as webmin generated in the creation
of the new pem file.
I was wondering how to correct this problem.
Failed to bind to 10000 : Address already in use at /usr/libexec/webmin/miniserv.pl line 334.
line 334 reads as follows----LOOK TO CAPITAL HEADING THIS IS LINE 334 in brackets
$proto = getprotobyname('tcp');
for($i=0; $i<@sockets; $i++) {
$fh = "MAIN$i";
socket($fh, PF_INET, SOCK_STREAM, $proto) ||
die "Failed to open socket : $!";
setsockopt($fh, SOL_SOCKET, SO_REUSEADDR, pack("l", 1));
for($j=0; $j<5; $j++) {
last if (bind($fh, pack_sockaddr_in($sockets[$i]->[1],
$sockets[$i]->[0])));
sleep(1);
}
die "Failed to bind to $sockets[$i]->[1] : $!" if ($j == 5);(THIS IS LINE 334)
listen($fh, SOMAXCONN);
push(@socketfhs, $fh);
I changwed the host name and number
of bits from 512 to 2048
it gave a pem file with ssl cert and prive key but when I viewed the miniserver pem file
it seems to be the old one which had a diffrent host name and the bits were set to 512 (or not the same as webmin generated in the creation
of the new pem file.
I was wondering how to correct this problem.
Failed to bind to 10000 : Address already in use at /usr/libexec/webmin/miniserv.pl line 334.
line 334 reads as follows----LOOK TO CAPITAL HEADING THIS IS LINE 334 in brackets
$proto = getprotobyname('tcp');
for($i=0; $i<@sockets; $i++) {
$fh = "MAIN$i";
socket($fh, PF_INET, SOCK_STREAM, $proto) ||
die "Failed to open socket : $!";
setsockopt($fh, SOL_SOCKET, SO_REUSEADDR, pack("l", 1));
for($j=0; $j<5; $j++) {
last if (bind($fh, pack_sockaddr_in($sockets[$i]->[1],
$sockets[$i]->[0])));
sleep(1);
}
die "Failed to bind to $sockets[$i]->[1] : $!" if ($j == 5);(THIS IS LINE 334)
listen($fh, SOMAXCONN);
push(@socketfhs, $fh);