1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 12:45:59 +02:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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}}`