Can't create pkcs1 private key for v4 MQTT client

I was able to successfully connect to the ChirpStack v3 MQTT broker without credentials using a Hubitat home automation hub client.

After updating to ChirpStack v4, I generated the newly-required CA, client, and private key certificates so I could again connect to the MQTT broker with my Hubitat client. However, my Hubitat client requires a private key in pkcs1 format rather than pkcs8. (See attached screenshot.) When I try to convert the pkcs8 key to pkcs1, I get an error:

raspberrypi4:~$ openssl rsa -in pkcs8.pem -out pkcs1.pem
Not an RSA key

I tried also tried converting the pkcs8.pem file using online tools, but they also generated an error.

The pkcs8.pem file contents:

-----BEGIN PRIVATE KEY-----
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg72yINzGfgyKgl4sN
O3SkP6+WkBhGEQSkV4U1ldXxIuahRANCAAQJGECehRsiQayEDccOoL9NpADMyv5G
z1124hJQZlYO2DsckuESG8pyvI5Z+A/wPVDevqHbgXNAuzBKSe+HrBPb
-----END PRIVATE KEY-----

Hi!
Did you find how to solve this problem?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.