Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zbhavyai/revered-banshee
Utility wrapper project to generate RSA keys and X509 certs
https://github.com/zbhavyai/revered-banshee
bouncy-castle certificate gradle quarkus rsa-key-pair x509
Last synced: about 1 month ago
JSON representation
Utility wrapper project to generate RSA keys and X509 certs
- Host: GitHub
- URL: https://github.com/zbhavyai/revered-banshee
- Owner: zbhavyai
- Created: 2023-11-06T22:51:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-28T20:05:56.000Z (6 months ago)
- Last Synced: 2024-07-28T21:24:19.633Z (6 months ago)
- Topics: bouncy-castle, certificate, gradle, quarkus, rsa-key-pair, x509
- Language: Java
- Homepage:
- Size: 787 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Revered Banshee
Utility wrapper project to generate RSA keys and X509 certs using Bouncy Castle.
## Build and run locally
Run the project on `localhost:8080`
```shell
./gradlew build -Dquarkus.package.type=uber-jar
java -jar build/*-runner.jar
```## How to use
- Generate a new RSA public-private key pair and X509 certificate with given subject and issuer:
```shell
curl --silent --request POST --header 'Content-Type: application/json' --location 'localhost:8080/api/v1/generate' --data '{"subject": "www.mycompany.com", "issuer": "My Company"}'
```- Generate a new RSA public-private key pair
```shell
curl --silent --request POST --header 'Content-Type: application/json' --location 'localhost:8080/api/v1/generate-keypair'
```- Convert a given RSA public-private key pair from base64 to PEM format
```shell
curl --silent --request POST --header 'Content-Type: application/json' --location 'localhost:8080/api/v1/keypair-base64-pem' --data '{
"keyID": "29fb5f8b-91a2-420a-a710-73f77ec8216f",
"publicKey": "",
"privateKey": "",
"subject": "subject",
"issuer": "issuer"
}'
```