Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 23a2032

Browse files
add wechaty ca, see #16
1 parent c84c4a3 commit 23a2032

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎wechaty-puppet-service/IO/Github/Wechaty/PuppetService/PuppetService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use IO\Github\Wechaty\Puppet\Schemas\RoomPayload;
2323
use IO\Github\Wechaty\Puppet\Schemas\UrlLinkPayload;
2424
use IO\Github\Wechaty\Puppet\StateEnum;
25+
use IO\Github\Wechaty\PuppetService\Auth\WechatyCA;
2526
use IO\Github\Wechaty\PuppetService\Exceptions\PuppetServiceException;
2627
use IO\Github\Wechaty\Util\Console;
2728
use IO\Github\Wechaty\Util\Logger;
@@ -803,7 +804,7 @@ function ($metadata,
803804
]);
804805
} else {
805806
$this->_grpcClient = new \Wechaty\PuppetClient($hostname, [
806-
'credentials' => \Grpc\ChannelCredentials::createInsecure(),
807+
'credentials' => \Grpc\ChannelCredentials::createSsl(WechatyCA::TLS_CA_CERT, WechatyCA::TLS_INSECURE_SERVER_KEY, WechatyCA::TLS_INSECURE_SERVER_CERT),
807808
'update_metadata' => $updateMetadata,
808809
]);
809810
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /