3
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Perl,CPAN]LWPでhttpsにアクセスする方法

Posted at

LWPにて、.pl から、httpにアクセスできる状態であっても、
httpsにアクセスしたら、下記のエラーが表示される場合。

LWP will support https URLs if either Crypt::SSLeay or IO::Socket::SSL
is installed. More information at
<http://search.cpan.org/dist/libwww-perl/README.SSL>.

この場合は、下記を実施すればよい。

まずrootになる。

perl -MCPAN -e shell

install Crypt::SSLeay
install IO::Socket::SSL
install LWP::Protocol::https
exit

yum install perl-Net-SSLeay
yum install perl-Crypt-SSLeay
yum install perl-IO-Socket-SSL

この状態で、.pl から https にアクセスすれば
コンテンツが取得できる。

3
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?