500 Can't verify SSL peers without knowing which Certificate Authorities to trust
1
0
Entering edit mode
7.0 years ago
tiancaigg ▴ 30

how to solve this? I don't know how to install Mozilla::CA module on OS X.

➜  ~ efetch -db nuccore -id AF086833 -format gb  > AF086833.gb
500 Can't verify SSL peers without knowing which Certificate Authorities to trust
No do_post output returned from 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&id=AF086833&rettype=gb&retmode=text&edirect=6.00&tool=edirect&email=hudonghui@h48.144.226.10.102171.vlan.kuins.net'
Result of do_post http request is
$VAR1 = bless( {
                 '_rc' => 500,
                 '_msg' => 'Can\'t verify SSL peers without knowing which Certificate Authorities to trust',
                 '_headers' => bless( {
                                        'client-warning' => 'Internal response',
                                        'content-type' => 'text/plain',
                                        '::std_case' => {
                                                          'client-date' => 'Client-Date',
                                                          'client-warning' => 'Client-Warning'
                                                        },
                                        'client-date' => 'Mon, 01 May 2017 05:34:27 GMT'
                                      }, 'HTTP::Headers' ),
                 '_content' => 'Can\'t verify SSL peers without knowing which Certificate Authorities to trust

This problem can be fixed by either setting the PERL_LWP_SSL_CA_FILE
envirionment variable or by installing the Mozilla::CA module.

To disable verification of SSL peers set the PERL_LWP_SSL_VERIFY_HOSTNAME
envirionment variable to 0.  If you do this you can\'t be sure that you
communicate with the expected peer.
',
                 '_request' => bless( {
                                        '_uri' => bless( do{\(my $o = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi')}, 'URI::https' ),
                                        '_content' => 'db=nuccore&id=AF086833&rettype=gb&retmode=text&edirect=6.00&tool=edirect&email=hudonghui@h48.144.226.10.102171.vlan.kuins.net',
                                        '_method' => 'POST',
                                        '_headers' => bless( {
                                                               'user-agent' => 'libwww-perl/6.05',
                                                               'content-type' => 'application/x-www-form-urlencoded'
                                                             }, 'HTTP::Headers' )
                                      }, 'HTTP::Request' )
               }, 'HTTP::Response' );
sequencing blast • 10k views
ADD COMMENT
2
Entering edit mode
7.0 years ago
Michael 54k
How about installing perl modules via cpan:

 cpan Mozilla::CA
ADD COMMENT
0
Entering edit mode
sudo cpan Mozilla::CA

solved... it takes days googling...thank you

ADD REPLY
0
Entering edit mode
ADD REPLY

Login before adding your answer.

Traffic: 2569 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6