openssl-prime: add page (#4422)

This commit is contained in:
IacobusKopiirefuto
2020-12-04 20:11:39 +00:00
committed by GitHub
parent 935d337cc6
commit c7ed28053a
2 changed files with 13 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
# openssl genrsa
> OpenSSL command to generate RSA private keys.
> More information: <https://www.openssl.org/docs/man1.0.2/man1/genrsa.html>.
> More information: <https://www.openssl.org/docs/manmaster/man1/openssl-genrsa.html>.
- Generate an RSA private key of 2048 bits to stdout:

View File

@@ -0,0 +1,12 @@
# openssl prime
> OpenSSL command to compute prime numbers.
> More information: <https://www.openssl.org/docs/manmaster/man1/openssl-prime.html>.
- Generate a 2048bit prime number and display it in hexadecimal:
`openssl prime -generate -bits 2048 -hex`
- Check if a given number is prime:
`openssl prime {{number}}`