Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to generate private key PEM using JWk #400

Closed
zp7462283 opened this issue Feb 14, 2022 · 2 comments
Closed

How to generate private key PEM using JWk #400

zp7462283 opened this issue Feb 14, 2022 · 2 comments

Comments

@zp7462283
Copy link

jwk是否有方法支持生成rsa私钥

@bshaffer
Copy link
Collaborator

Try this tool: https://mkjwk.org/

@bshaffer
Copy link
Collaborator

If you mean with this library, use parseKeySet:

// JSON string from jwk url
$jwk = '{"keys":[...]}';
$keys = Firebase\JWT\JWK::parseKeySet($jwk);
$privateKey = $keys['someKeyId'];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants