This is a small .NET Core CLI tool that extracts the modulus and public exponent from an RSA private key in PEM format.
- .NET Core SDK installed on your machine.
- Clone this repository to your local machine:
git clone https://github.com/roelvandersteen/rsa-public-key-extractor.git
- Navigate to the project directory:
cd rsa-public-key-extractor/src/PublicKeyExtractor
- Build the project:
dotnet build
- Run the tool with the path to your private key file:
dotnet run -- <private_key_file.pem>
Replace <private_key_file.pem>
with the path to your RSA private key file in PEM format.
dotnet run -- private_key.pem
This will output the base64-encoded modulus and public exponent extracted from the private key.
This project is licensed under the MIT License - see the LICENSE file for details.