[Koha-bugs] [Bug 25972] SIP2 server doesn't have a TLS/SSL-enabled listener

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 5 15:24:57 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25972

--- Comment #3 from Magnus Enger <magnus at libriotech.no> ---
> it  should be possible to do this without too much effort.

That sounds promising ;-) 

Having a little look at this, but it feels like it is a little bit above me... 

I found this code, where we pass params from $config->{'server-params'} to
->run:

if (defined($config->{'server-params'})) {
    while (my ($key, $val) = each %{$config->{'server-params'}}) {
        push @parms, $key . '=' . $val;
    }
}
__PACKAGE__ ->run(@parms);
https://git.koha-community.org/Koha-community/Koha/src/branch/master/C4/SIP/SIPServer.pm#L80

>From https://metacpan.org/pod/Net::Server::Proto::SSL#SYNOPSIS it looks like
SSL is just a question of doing this: 

main->run(
    proto => 'ssl',
    SSL_key_file  => "/path/to/my/file.key",
    SSL_cert_file => "/path/to/my/file.crt",
);

Could this mean that enabling SSL is as simple as adding proto, SSL_key_file
and SSL_cert_file to the <server-params> in the SIPconfig.xml? Or are there
more adjustments that are needed somewhere?

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list