zitadel / zitadel-tools

Apache License 2.0
19 stars 7 forks source link

[key2jwt]: allow PKCS8 #97

Open livio-a opened 10 months ago

livio-a commented 10 months ago

The key2jwt currently is only able to handle RSA private keys in PKCS1 format. Depending on the tool and version used to create a key pair, the create private key might be in PKCS8.

Acceptance criteria

HungryHowies commented 3 months ago

I have this issue, Ubuntu22.0.4, Zitadel-v2.50.1, Cockroach-v23.

Mohit21GoJs commented 3 weeks ago

@livio-a I am facing this issue following documentation while following steps here: https://zitadel.com/docs/guides/integrate/zitadel-apis/access-zitadel-system-api

Seems like the tool is out of sync with the documentation above

livio-a commented 2 weeks ago

The documentation assumes that the openssl command creates a key in PKCS#1 format. I guess you're using openssl v3. In that case you can pass the -traditional flag: openssl genrsa -traditional -out system-user-1.pem 2048. We will add support for PKCS#8 shortly.