jnthn / p6-io-socket-async-ssl

Asynchronous TLS sockets in Raku
11 stars 19 forks source link

Cannot connect on OpenBSD #36

Closed Kaiepi closed 5 years ago

Kaiepi commented 6 years ago

When I try to run this:

my $conn = await IO::Socket::Async::SSL.connect('hastebin.com', 443)

I get this exception:

An operation first awaited:
  in block  at /home/morfent/.perl6/share/perl6/site/sources/9185AF0B330E61F6756B436B9695D044E0F403B7 (IO::Socket::Async::SSL) line 322

Died with the exception:
    Server certificate verification failed: unable to get local issuer certificate
      in block  at /home/morfent/.perl6/share/perl6/site/sources/9185AF0B330E61F6756B436B9695D044E0F403B7 (IO::Socket::Async::SSL) line 322

OS:

Perl version:

Kaiepi commented 6 years ago

Sorry, this seems to be an issue with OpenSSL, not this module

Kaiepi commented 6 years ago

Actually it seems I was wrong. The code works if I run this instead:

my $conn = await IO::Socket::Async::SSL.connect('hastebin.com', 443, :version(1.1))

But for packages that rely on this module, like Cro, I don't have the option of passing the version like this

Kaiepi commented 5 years ago

This no longer happens on the latest version