Skip to content

Commit 6e063ec

Browse files
committed
README.md
1 parent d9cd8a5 commit 6e063ec

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README-CN.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ $tls = new \Pulsar\TLSOptions('./cert.pem','./cert.key.pem');
304304
// CA Cert
305305
$tls->setTrustCertsFilePath('./ca.cart.pem');
306306

307+
// 无证书建立TLS连接
308+
//$tls = new \Pulsar\TLSOptions('','');
309+
307310
// optional
308311
$tls->setAllowInsecureConnection(false);
309312
$tls->setValidateHostname(true);

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ while ($running) {
312312
```php
313313
$tls = new \Pulsar\TLSOptions('./cert.pem','./cert.key.pem');
314314

315+
// Establishing a TLS connection without a certificate
316+
//$tls = new \Pulsar\TLSOptions('','');
317+
315318
// CA Cert
316319
$tls->setTrustCertsFilePath('./ca.cart.pem');
317320

0 commit comments

Comments
 (0)