OPENSSL-PRIME(1ossl)
π OPENSSL-PRIME(1ossl) π
okay bestie, gather round because we're about to talk about prime numbers and honestly? it's giving main character energy β¨ this little icon of a command lives in OpenSSL and she's here to either check if your numbers are prime or generate some brand new ones for you. no cap. π
β¨ SYNOPSIS β¨
openssl prime [-help] [-hex] [-generate] [-bits num] [-safe] [-provider
name] [-provider-path path] [-provparam [name:]key=value] [-propquery
propq] [-checks num] [number ...]
πΈ DESCRIPTION πΈ
okay so the tea is: this command checks if the specified numbers are prime. that's literally her job. π«Ά
and if you don't give her any numbers on the command line? then bestie you better be using the -generate flag, because that's the whole mood β she'll generate primes for you according to whatever requirements you specified with the rest of the flags. periodt. π
π¦ OPTIONS π¦
-helpβ displays an option summary. the classic "help me help you" moment, iykyk πββοΈ-hexβ generates hex output. fancy formatting, we love to see it β¨-generateβ generates a prime number. this is the "make me something new" button and she ate π-bits numβ generates a prime with num bits. you're literally specifying the size, iconic behavior π₯-safeβ when used with-generate, generates a "safe" prime. so if the number generated is n, then it checks that(n-1)/2is also prime. double the prime, double the slay π-provider name-provider-path path-provparam [name:]key=value-propquery propqβ see "Provider Options" inopenssl(1),provider(7), andproperty(7). these are the deep-lore options, bestie, go read the other manuals for the full story π-checks numβ this parameter is ignored. literally she does not care about it. it's giving "i'm here but i'm not really here" π not me including it anyway because completeness is the vibe π
π COPYRIGHT π
Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
bestie this is the legal bit so we keep every word, no skips, no shortcuts β respect the license fr fr π«‘
version 3.5.0 π dated 2026-09-25 β that's the whole manual, mwah, slay, bye πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- opensuse-leap 16.0: openssl-3 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms