Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - allow to disable ssl verification #68

Open
melezhik opened this issue Dec 24, 2022 · 0 comments
Open

Feature request - allow to disable ssl verification #68

melezhik opened this issue Dec 24, 2022 · 0 comments

Comments

@melezhik
Copy link

Hi! For IRC proxy services (like ZNC) with self signed ssl certificates maybe it's make a sense to disable ssl versification ?

Right now I do quick and dirty patch:

diff --git a/lib/IRC/Client.rakumod b/lib/IRC/Client.rakumod
index 044ec02..c585106 100644
--- a/lib/IRC/Client.rakumod
+++ b/lib/IRC/Client.rakumod
@@ -522,9 +522,10 @@ method !connect-socket($server --> Nil) {
       ?? IO::Socket::Async::SSL.connect(
            $server.host,
            $server.port,
-           ca-file => $server.ca-file
+           ca-file => $server.ca-file,
+           :insecure
          )
-      !! IO::Socket::Async.connect($server.host, $server.port);
+      !! IO::Socket::Async.connect($server.host, $server.port, :insecure);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant