OPENSSL-PRIME(1ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

πŸ’… 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)/2 is also prime. double the prime, double the slay πŸ’–
  • -provider name
  • -provider-path path
  • -provparam [name:]key=value
  • -propquery propq β€” see "Provider Options" in openssl(1), provider(7), and property(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 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