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

Restore Fix for: Handle unverifiable self-signed certificates. #101

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/irc.js
Expand Up @@ -497,7 +497,8 @@ Client.prototype.connect = function ( retryCount, callback ) { // {{{
self.conn.connected = true;
if (self.conn.authorized ||
(self.opt.selfSigned &&
self.conn.authorizationError === 'DEPTH_ZERO_SELF_SIGNED_CERT') ||
(self.conn.authorizationError === 'DEPTH_ZERO_SELF_SIGNED_CERT' ||
self.conn.authorizationError === 'UNABLE_TO_VERIFY_LEAF_SIGNATURE') ||
(self.opt.certExpired &&
self.conn.authorizationError === 'CERT_HAS_EXPIRED')) {
// authorization successful
Expand Down