You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. on attempting to load the keystore the same way mentioned here
ssl.keystore.location=C:\temp\kafka-certs\keystore.p12
ssl.keystore.password=XXXXX
i run into the error Error reading ssl.keystore.location PKCS#12 file: C:\temp\kafka-certs\keystore.p12: error:0D06B08E:asn1 encoding routines:asn1_d2i_read_bio:not enough data
this suggests that the file is missing or somehow is not found. i can confirm that the file is there and works as i have loaded it properly using another loader.
if i extract the keys and certificates and load directly, this works:
config.set("ssl.ca.location", "%path_to%/chain.pem");
config.set("ssl.certificate.location", "%path_to%/client_cert");
config.set("ssl.key.location", "%path_to%/client_key");
config.set("ssl.key.password"
This however poses a security risk by exposing the pkey in a file and is not accepted.
Do you have any idea what could be going wrong when loading the keystore?
I'm using
OS: Windows 10
Framework: .net6.0 confluentinc/confluent-kafka-dotnet sdk, that references this dll.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi. on attempting to load the keystore the same way mentioned here
ssl.keystore.location=C:\temp\kafka-certs\keystore.p12
ssl.keystore.password=XXXXX
i run into the error Error reading ssl.keystore.location PKCS#12 file: C:\temp\kafka-certs\keystore.p12: error:0D06B08E:asn1 encoding routines:asn1_d2i_read_bio:not enough data
this suggests that the file is missing or somehow is not found. i can confirm that the file is there and works as i have loaded it properly using another loader.
if i extract the keys and certificates and load directly, this works:
config.set("ssl.ca.location", "%path_to%/chain.pem");
config.set("ssl.certificate.location", "%path_to%/client_cert");
config.set("ssl.key.location", "%path_to%/client_key");
config.set("ssl.key.password"
This however poses a security risk by exposing the pkey in a file and is not accepted.
Do you have any idea what could be going wrong when loading the keystore?
I'm using
OS: Windows 10
Framework: .net6.0 confluentinc/confluent-kafka-dotnet sdk, that references this dll.
Beta Was this translation helpful? Give feedback.
All reactions