develooper Front page | perl.cpan.testers.discuss | Postings from April 2020

https://metabase.cpantesters.org/api/v1/: invalid securitycertificate

Thread Next
From:
James E Keenan
Date:
April 2, 2020 12:29
Subject:
https://metabase.cpantesters.org/api/v1/: invalid securitycertificate
Message ID:
f2574cbe-09c6-2cb8-1bed-663bea472eba@pobox.com
Today I had occasion to call a program which uses 
App::cpanminus::reporter.  I have run programs with that module hundreds 
of times before.  The program failed with this output in the debugger.

#####
error loading Test::Reporter::Transport::Metabase. Please install the 
missing module or choose a different transport mechanism.

  at /usr/local/lib/perl5/site_perl/CPAN/Testers/Common/Client/Config.pm 
line 21.
	CPAN::Testers::Common::Client::Config::__ANON__[/usr/local/lib/perl5/site_perl/CPAN/Testers/Common/Client/Config.pm:21]("\x{a}error loading Test::Reporter::Transport::Metabase. Please in"...) called at /usr/local/lib/perl5/site_perl/CPAN/Testers/Common/Client/Config.pm line 87
	CPAN::Testers::Common::Client::Config::mywarn(CPAN::Testers::Common::Client::Config=HASH(0x806bdc0d8), "\x{a}error loading Test::Reporter::Transport::Metabase. Please in"...) called at /usr/local/lib/perl5/site_perl/CPAN/Testers/Common/Client/Config.pm line 647
	CPAN::Testers::Common::Client::Config::_validate_transport(CPAN::Testers::Common::Client::Config=HASH(0x806bdc0d8), "transport", "Metabase uri https://metabase.cpantesters.org/api/v1/ id_file"...) called at error loading Test::Reporter::Transport::Metabase. Please install the missing module or choose a different transport mechanism.

  at /usr/local/lib/perl5/site_perl/CPAN/Testers/Common/Client/Config.pm 
line 21.
	CPAN::Testers::Common::Client::Config::__ANON__[/usr/local/lib/perl5/site_perl/CPAN/Testers/Common/Client/Config.pm:21]("\x{a}error loading Test::Reporter::Transport::Metabase. Please in"...) called at /usr/local/lib/perl5/site_perl/CPAN/Testers/Common/Client/Config.pm line 87
	CPAN::Testers::Common::Client::Config::mywarn(CPAN::Testers::Common::Client::Config=HASH(0x806bdc0d8), "\x{a}error loading Test::Reporter::Transport::Metabase. Please in"...) called at /usr/local/lib/perl5/site_perl/CPAN/Testers/Common/Client/Config.pm line 647
	CPAN::Testers::Common::Client::Config::_validate_transport(CPAN::Testers::Common::Client::Config=HASH(0x806bdc0d8), "transport", "Metabase uri https://metabase.cpantesters.org/api/v1/ id_file"...) called at /usr/local/lib/perl5/site_perl/CPAN/Testers/Common/Client/Config.pm line 448
	CPAN::Testers::Common::Client::Config::_get_config_options(CPAN::Testers::Common::Client::Config=HASH(0x806bdc0d8), HASH(0x806c7d5b8)) called at /usr/local/lib/perl5/site_perl/CPAN/Testers/Common/Client/Config.pm line 41
	CPAN::Testers::Common::Client::Config::read(CPAN::Testers::Common::Client::Config=HASH(0x806bdc0d8)) called at /usr/local/lib/perl5/site_perl/App/cpanminus/reporter.pm line 171
	App::cpanminus::reporter::_check_cpantesters_config_data(CPAN::cpanminus::reporter::RetainReports=HASH(0x801e7e900)) called at /usr/local/lib/perl5/site_perl/App/cpanminus/reporter.pm line 219
	App::cpanminus::reporter::run(CPAN::cpanminus::reporter::RetainReports=HASH(0x801e7e900)) called at cpanm-reporter.pl line 23
  line 448
	CPAN::Testers::Common::Client::Config::_get_config_options(CPAN::Testers::Common::Client::Config=HASH(0x806bdc0d8), HASH(0x806c7d5b8)) called at /usr/local/lib/perl5/site_perl/CPAN/Testers/Common/Client/Config.pm line 41
	CPAN::Testers::Common::Client::Config::read(CPAN::Testers::Common::Client::Config=HASH(0x806bdc0d8)) called at /usr/local/lib/perl5/site_perl/App/cpanminus/reporter.pm line 171
	App::cpanminus::reporter::_check_cpantesters_config_data(CPAN::cpanminus::reporter::RetainReports=HASH(0x801e7e900)) called at /usr/local/lib/perl5/site_perl/App/cpanminus/reporter.pm line 219
	App::cpanminus::reporter::run(CPAN::cpanminus::reporter::RetainReports=HASH(0x801e7e900)) called at cpanm-reporter.pl line 23
#####

All the relevant modules are up to date on the machine where the program 
was run.

I examined 
/usr/local/lib/perl5/site_perl/CPAN/Testers/Common/Client/Config.pm.  I 
zeroed in on the call to the internal method '_validate_transport'.  I 
entered this URL into my browser:

https://metabase.cpantesters.org/api/v1/

I got the standard Firefox "Warning: Potential Security Risk Ahead" 
screen.  When I clicked "Learn more...", I got:

#####
Websites prove their identity via certificates. Firefox does not trust 
this site because it uses a certificate that is not valid for 
metabase.cpantesters.org. The certificate is only valid for 
c.sni.fastly.net.

Error code: SSL_ERROR_BAD_CERT_DOMAIN
#####

(Hat-tip to BingOS.)

How can we fix this or how can I work-around it?

Thank you very much.
Jim Keenan

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About