eclipse / mosquitto

Eclipse Mosquitto - An open source MQTT broker
https://mosquitto.org
Other
8.65k stars 2.33k forks source link

maybe just a question, the keyfile cannot set to a secure element engine #2959

Open jiangpen opened 7 months ago

jiangpen commented 7 months ago

I verified I can do below when to bridge mosquitto bridge_keyfile pkcs11:model=ATECC608A;manufacturer=Microchip%20Technology%20Inc;serial=xxxxxxx;token=00xx;object=device;type=private but when I do the same for keyfile, it does not work: keyfile pkcs11:model=ATECC608A;manufacturer=Microchip%20Technology%20Inc;serial=xxxxxxx;token=00xx;object=device;type=private show error of:

Unable to load module (null)
Unable to load module (null)
PKCS11_get_private_key returned NULL
1701408790: Error: Unable to load engine private key file "pkcs11:model=ATECC608A;manufacturer=Microchip%20Technology%20Inc;serial=xxxxx;token=00xxx;object=.
1701408790: OpenSSL Error[0]: error:81065401:libp11:pkcs11_CTX_load:Unable to load PKCS#11 module
1701408790: OpenSSL Error[1]: error:26096080:engine routines:ENGINE_load_private_key:failed loading private key

anyone know the difference? thanks

asconcepcion commented 5 months ago

I'm also getting this error. Is there any solution for this?

asconcepcion commented 5 months ago

Could it be that there is not PKCS11 support for bridge connections?