openssl-prime1ssl
Compute prime numbers
Usage
openssl prime
[-help]
[-hex]
[-in]
[-generate]
[-bits
num]
[-safe]
[-provider
name]
[-provider-path
path]
[-provparam
[name:]
key=value]
[-propquery
propq]
[-checks
num]
[number ...]
Overview
This command checks if the specified numbers are prime.
If no numbers are given on the command line, the -generate flag should be used to generate primes according to the requirements specified by the rest of the flags.
Options
-
-help -
Display an option summary.
-
-hex -
Enable hex format for output from prime generation or input to primality checking.
-
-in -
Provide file names containing numbers for primality checking.
-
-generate -
Generate a prime number.
-
-bits num -
Generate a prime with num bits.
-
-safe -
When used with
-generate, generates a "safe" prime. If the number generated is n, then check that"(n-1)/2"is also prime.
-
-provider name
-
-provider-path path
-
-provparam [name:]key=value
-
-propquery propq -
See "Provider Options" in openssl(1), provider(7), and property(7).
-
-checks num -
This parameter is ignored.
Releases
5 releases since Debian 10 (Buster); the text changed 4 times.
-bits since Debian 12 (Bookworm);
-checks since Debian 12 (Bookworm);
-generate since Debian 12 (Bookworm);
-help since Debian 12 (Bookworm);
-hex since Debian 12 (Bookworm);
-in since Arch Linux 2026-11-01;
-propquery since Debian 12 (Bookworm);
-provider since Debian 12 (Bookworm);
-provider-path since Debian 12 (Bookworm);
-provparam since Debian 13 (Trixie);
-safe since Debian 12 (Bookworm).