【发布时间】:2019-09-24 23:43:26
【问题描述】:
我尝试在运行 Strawberry Perl 的 Windows 10 机器上使用 perl 模块 Net::XMPP 连接到 XMPP 服务器,但出现以下错误:
Invalid or unreadable path specified for ssl_ca_path. at C:/strawberry/perl/site/lib/XML/Stream.pm line 640
我使用的代码如下:
#!/bin/perl -w
use strict;
use warnings;
use Net::XMPP;
my $con = new Net::XMPP::Client();
my $status = $con->Connect(
hostname => 'hostnamepart',
connectiontype => 'tcpip',
tls => 1);
die('ERROR: XMPP connection failed') if ! defined($status);
我已经测试了我是否可以在我的 Windows 机器上使用 Pidgin 客户端应用程序连接到服务器并且它工作正常。
有什么办法可以解决我的 Perl 问题吗?
【问题讨论】: