You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2022/06/08 23:55:36 UTC

[pulsar] branch master updated: [Improve][Doc] C++ and Python support only RSA (#15970)

This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 00520030b3a [Improve][Doc] C++ and Python support only RSA (#15970)
00520030b3a is described below

commit 00520030b3a3768132b7309af8e0d529002365fb
Author: AlvaroStream <10...@users.noreply.github.com>
AuthorDate: Thu Jun 9 01:55:28 2022 +0200

    [Improve][Doc] C++ and Python support only RSA (#15970)
    
    Cosmetic change to clarify that C++ and Python supports only RSA keys
---
 site2/docs/security-encryption.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/site2/docs/security-encryption.md b/site2/docs/security-encryption.md
index 0a5547758b3..d827b334587 100644
--- a/site2/docs/security-encryption.md
+++ b/site2/docs/security-encryption.md
@@ -100,7 +100,7 @@ Reader<byte[]> reader = pulsarClient.newReader()
 Client client("pulsar://localhost:6650");
 std::string topic = "persistent://my-tenant/my-ns/my-topic";
 // DefaultCryptoKeyReader is a built-in implementation that reads public key and private key from files
-auto keyReader = std::make_shared<DefaultCryptoKeyReader>("test_ecdsa_pubkey.pem", "test_ecdsa_privkey.pem");
+auto keyReader = std::make_shared<DefaultCryptoKeyReader>("test_rsa_pubkey.pem", "test_rsa_privkey.pem");
 
 Producer producer;
 ProducerConfiguration producerConf;
@@ -130,7 +130,7 @@ from pulsar import Client, CryptoKeyReader
 client = Client('pulsar://localhost:6650')
 topic = 'persistent://my-tenant/my-ns/my-topic'
 # CryptoKeyReader is a built-in implementation that reads public key and private key from files
-key_reader = CryptoKeyReader('test_ecdsa_pubkey.pem', 'test_ecdsa_privkey.pem')
+key_reader = CryptoKeyReader('test_rsa_pubkey.pem', 'test_rsa_privkey.pem')
 
 producer = client.create_producer(
     topic=topic,