informationsea / jsonwebkey-rs

Convert RSA Public Key between PEM and JWK
Apache License 2.0
2 stars 4 forks source link

Can't use "support_pem" feature #2

Open yongDataScince opened 1 year ago

yongDataScince commented 1 year ago

Cargo.toml jsonwebkey-convert = { version = "0.3.0", features=["pem_support"] }

main.rs

use jsonwebkey_convert::RSAPublicKey;
use jsonwebkey_convert::der::FromPem;
...
let jwk = RSAPublicKey::from_pem();

error:

Снимок экрана 2022-10-22 в 14 06 25 Снимок экрана 2022-10-22 в 14 06 50 Снимок экрана 2022-10-22 в 14 07 31
krispraws commented 1 week ago

See https://github.com/informationsea/jsonwebkey-rs/issues/1#issuecomment-2206750437