Same here. Let's hope we never overlook this is necessary...

Reviewed-by: Peter Müller <peter.mueller(a)ipfire.org>

> Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
> ---
>  src/pakfire/lib/functions.pl | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/src/pakfire/lib/functions.pl b/src/pakfire/lib/functions.pl
> index 2f34763d5..37b930080 100644
> --- a/src/pakfire/lib/functions.pl
> +++ b/src/pakfire/lib/functions.pl
> @@ -155,7 +155,14 @@ sub fetchfile {
>  		
>  		logger("DOWNLOAD INFO: Host: $host ($proto) - File: $file");
>  
> -		my $ua = LWP::UserAgent->new;
> +		# Init LWP::UserAgent, request SSL hostname verification
> +		# and specify CA file.
> +		my $ua = LWP::UserAgent->new(
> +			ssl_opts => {
> +				SSL_ca_file     => '/etc/ssl/cert.pem',
> +				verify_hostname => 1,
> +			}
> +		);
>  		$ua->agent("Pakfire/$Conf::version");
>  		$ua->timeout(20);
>