json-web-key-generator | A Java-based generator for JWK and JPSKs | Generator Utils library
kandi X-RAY | json-web-key-generator Summary
kandi X-RAY | json-web-key-generator Summary
A commandline Java-based generator for JSON Web Keys (JWK) and JSON Private/Shared Keys (JPSKs).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main method for testing
- Outputs the public key
- Creates a new JWK
- Configures the command line options
json-web-key-generator Key Features
json-web-key-generator Examples and Code Snippets
Community Discussions
Trending Discussions on json-web-key-generator
QUESTION
I have a json web key(https://tools.ietf.org/html/draft-ietf-jose-json-web-key-41) and I want to use it to sign some data with the private key and then later verify it with the public key. I am using c# with .net framework 4.5.1 and I can't seem to instantiate the classes properly using the keys I have. I generated the keys using this tool: https://github.com/mitreid-connect/json-web-key-generator. The following json is available and from this I should be able to sign and verify:
...ANSWER
Answered 2018-Feb-28 at 19:27The main reason is RSACryptoServiceProvider
is not able to generate a private key using modulus, public and private exponent i.e n
, e
and d
only, it requires p
,q
,dp
and dq
as well. To generate RsaParameters with private key you will require following code to calculate p
,q
,dp
and dq
and finally generate RsaParameters:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install json-web-key-generator
You can use json-web-key-generator like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the json-web-key-generator component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page