Skip to content

Commit

Permalink
add wechaty ca, see #16
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchunsheng committed Nov 24, 2021
1 parent c84c4a3 commit 23a2032
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use IO\Github\Wechaty\Puppet\Schemas\RoomPayload;
use IO\Github\Wechaty\Puppet\Schemas\UrlLinkPayload;
use IO\Github\Wechaty\Puppet\StateEnum;
use IO\Github\Wechaty\PuppetService\Auth\WechatyCA;
use IO\Github\Wechaty\PuppetService\Exceptions\PuppetServiceException;
use IO\Github\Wechaty\Util\Console;
use IO\Github\Wechaty\Util\Logger;
Expand Down Expand Up @@ -803,7 +804,7 @@ function ($metadata,
]);
} else {
$this->_grpcClient = new \Wechaty\PuppetClient($hostname, [
'credentials' => \Grpc\ChannelCredentials::createInsecure(),
'credentials' => \Grpc\ChannelCredentials::createSsl(WechatyCA::TLS_CA_CERT, WechatyCA::TLS_INSECURE_SERVER_KEY, WechatyCA::TLS_INSECURE_SERVER_CERT),
'update_metadata' => $updateMetadata,
]);
}
Expand Down

0 comments on commit 23a2032

Please sign in to comment.