Skip to content

Commit

Permalink
[Improve][Doc] C++ and Python support only RSA (apache#15970)
Browse files Browse the repository at this point in the history
Cosmetic change to clarify that C++ and Python supports only RSA keys
AlvaroStream authored Jun 8, 2022

Verified

This commit was signed with the committer’s verified signature.
EtiennePelletier Étienne Pelletier
1 parent 8bc7ca1 commit 0052003
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site2/docs/security-encryption.md
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 0052003

Please sign in to comment.