gchq / gchq/CyberChef

Operation request: RSA Key Modulus

Open
#1,443 3 comments 0 reactions 0 assignees View on GitHub
operation
Dominant language
JavaScript
Stars
35.8k
Forks
4.1k
Avg merge
2d 26m
Merged PRs (30d)
33

Description

## Summary
Would love to have the ability to calculate an RSA key's modulus. Very helpful in [verifying the private key matches the public (x509) cert](https://knowledge.digicert.com/solution/SO29559.html). Example `openssl` invocation:

```bash
openssl rsa -noout -modulus -in rsa.key
```

The `Parse X.509 certificate` already provides the public cert modulus, and in theory a well-crafted recipe would be able to compare both?

### Example Input
```
-----BEGIN PRIVATE KEY-----
someRAndoMkeyMATerial
-----END PRIVATE KEY-----
```
### Example Output
```
ABCDEF0123456789......
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.