CERTMONGER(1)
π NAME π
getcert β that's her. That's the girl. (She lives in the certmonger manual, section 1, general commands, iykyk. π
)
π SYNOPSIS π
getcert request [options]
π¦ DESCRIPTION π¦
Okay so here's the tea, bestie: getcert request tells certmonger to grab a key pair you already have β or, like, generate a whole new one if it can't find one chilling in the location you specified β then build a signing request out of that key pair, and submit them both to a CA for signing. That's it. That's the whole vibe. β¨
π KEY AND CERTIFICATE STORAGE OPTIONS π
-d DIR,--dbdir=DIRβ Use an NSS database in the directory you name for storing this certificate and key. Your little home for them. π-n NAME,--nickname=NAMEβ Use the key with this nickname to generate the signing request. And if no such key is found? Just generate one, nbd. The enrolled certificate gets this nickname too. β οΈ Only valid with-d.-t TOKEN,--token=TOKENβ If the NSS database has more than one token available, use the token with this name for storing and accessing the certificate and key. Honestly this one only rarely needs to be specified β she's niche. β οΈ Only valid with-d.-f FILE,--certfile=FILEβ Store the issued certificate in this file. π¨ For safety's sake, do not use the same file you specified with the-koption β that's giving chaos and we're not about that.-k FILE,--keyfile=FILEβ Use the key stored in this file to generate the signing request. If no such file is found, generate a new key pair and store them in the file. β οΈ Only valid with-f.
π KEY ENCRYPTION OPTIONS π
-p FILE,--pinfile=FILEβ Encrypt private key files or databases using the PIN stored in the named file as the passphrase. Secret little file, secret little PIN. π€«-P PIN,--pin=PINβ Encrypt private key files or databases using the specified PIN as the passphrase. π© Big warning bestie: because command-line arguments to running processes are trivially discoverable, using this option is not recommended except for testing. It's giving "my password is on the whiteboard." π
π KEY GENERATION OPTIONS π
-G TYPE,--key-type=TYPEβ In case a new key pair needs to be generated, this option specifies the type of the keys to be generated. If you don't specify, a reasonable default (currentlyRSA) will be used. π-g BITS,--key-size=BITSβ In case a new key pair needs to be generated, this option specifies the size of the key. If you don't specify, a reasonable default (currently2048bits) will be used. Want to configure the default? Seecertmonger.conf(5). π
π TRACKING OPTIONS π
-r,--renewβ Attempt to obtain a new certificate from the CA when the expiration date of a certificate nears. This is the default setting. She's proactive like that. πͺ-R,--no-renewβ Don't attempt to obtain a new certificate from the CA when the expiration date of a certificate nears. If you specify this, an expired certificate will simply... stay expired. It's giving "we die like men." π-I NAME,--id=NAMEβ Assign the specified nickname to this task. If you don't specify this option, a name will be assigned automatically. The algorithm picks for you, cute. π
π ENROLLMENT OPTIONS π
-c NAME,--ca=NAMEβ Enroll with the specified CA rather than a possible default. The name of the CA should correspond to one listed bygetcert list-cas. π-T NAME,--profile=NAMEβ Request a certificate using the named profile, template, or certtype, from the specified CA. Slay, pick your fighter. π₯--ms-template-spec SPECβ Include a V2 Certificate Template extension in the signing request. This datum includes an Object Identifier, a major version number (positive integer) and an optional minor version number. The format is:<oid>:<majorVersion>[:<minorVersion>]. π§©-X NAME,--issuer=NAMEβ Request a certificate using the named issuer from the specified CA. π«
βοΈ SIGNING REQUEST OPTIONS βοΈ
Heads up, bestie: if none of -N, -U, -K, -E, and -D are specified, a default group of settings will be used to request an SSL server certificate for the current host, with the host Kerberos service as an additional name. So she's got a whole default fit picked out. π
Also: the options -K, -E, -D and -A may be provided multiple times to set multiple subjectAltName of the same type. Stack 'em. π₯
-N NAME,--subject-name=NAMEβ Set the subject name to include in the signing request. The default used isCN=hostname, where hostname is the local hostname. π·οΈ-u keyUsage,--key-usage=keyUsageβ Add an extensionRequest for the specified keyUsage to the signing request. The keyUsage value is expected to be one of these names:digitalSignaturenonRepudiationkeyEnciphermentdataEnciphermentkeyAgreementkeyCertSigncRLSignencipherOnlydecipherOnly
-U EKU,--extended-key-usage=EKUβ Add an extensionRequest for the specified extendedKeyUsage to the signing request. The EKU value is expected to be an object identifier (OID), but some specific names are also recognized. These are some names and their associated OID values:id-kp-serverAuth1.3.6.1.5.5.7.3.1id-kp-clientAuth1.3.6.1.5.5.7.3.2id-kp-codeSigning1.3.6.1.5.5.7.3.3id-kp-emailProtection1.3.6.1.5.5.7.3.4id-kp-timeStamping1.3.6.1.5.5.7.3.8id-kp-OCSPSigning1.3.6.1.5.5.7.3.9id-pkinit-KPClientAuth1.3.6.1.5.2.3.4id-pkinit-KPKdc1.3.6.1.5.2.3.5id-ms-kp-sc-logon1.3.6.1.4.1.311.20.2.2
-K NAME,--principal=NAMEβ Add an extensionRequest for a subjectAltName, with the specified Kerberos principal name as its value, to the signing request. π-E EMAIL,--email=EMAILβ Add an extensionRequest for a subjectAltName, with the specified email address as its value, to the signing request. π§-D DNSNAME,--dns=DNSNAMEβ Add an extensionRequest for a subjectAltName, with the specified DNS name as its value, to the signing request. π-A ADDRESS,--ip-address=ADDRESSβ Add an extensionRequest for a subjectAltName, with the specified IP address as its value, to the signing request. π-l FILE,--challenge-password-file=FILEβ Add an optional ChallengePassword value, read from the file, to the signing request. A ChallengePassword is often required when the CA is accessed using SCEP. ποΈ-L PIN,--challenge-password=PINβ Add the argument value to the signing request as a ChallengePassword attribute. A ChallengePassword is often required when the CA is accessed using SCEP. ποΈ
π οΈ OTHER OPTIONS π οΈ
-B COMMAND,--before-command=COMMANDβ When ever the certificate or the CA's certificates are saved to the specified locations, run the specified command as the client user before saving the certificates. πββοΈ-C COMMAND,--after-command=COMMANDβ When ever the certificate or the CA's certificates are saved to the specified locations, run the specified command as the client user after saving the certificates. π-a DIR,--ca-dbdir=DIRβ When ever the certificate is saved to the specified location, if root certificates for the CA are available, save them to the specified NSS database. πΎ-F FILE,--ca-file=FILEβ When ever the certificate is saved to the specified location, if root certificates for the CA are available, and when the local copies of the CA's root certificates are updated, save them to the specified file. π--for-caβ Request a CA certificate. Big boss energy. π--not-for-caβ Request a non-CA certificate (the default). The humble route. π±--ca-path-length=LENGTHβ Path length for CA certificate. β οΈ Only valid with--for-ca.-w,--waitβ Wait for the certificate to be issued and saved, or for the attempt to obtain one to fail. Sit there and wait, bestie. β³--wait-timeout=TIMEOUTβ Maximum time to wait for the certificate to be issued. β°-v,--verboseβ Be verbose about errors. Normally, the details of an error received from the daemon will be suppressed if the client can make a diagnostic suggestion. Turn this on when you want the full drama. π£οΈ-o OWNER,--key-owner=OWNERβ After generation set the owner on the private key file or database to OWNER. π-m MODE,--key-perms=MODEβ After generation set the file permissions on the private key file or database to MODE. π-O OWNER,--cert-owner=OWNERβ After generation set the owner on the certificate file or database to OWNER. π-M MODE,--cert-perms=MODEβ After generation set the file permissions on the certificate file or database to MODE. π
π BUS OPTIONS π
-s,--sessionβ Connect to certmonger on the session bus rather than the system bus. πΈ-S,--systemβ Connect to certmonger on the system bus rather than the session bus. This is the default. ποΈ
π NOTES π
Locations specified for key and certificate storage need to be accessible to the certmonger daemon process. Like, she has to be able to reach them, ok?
When run as a system daemon on a system which uses a mandatory access control mechanism such as SELinux, the system policy must ensure that the daemon is allowed to access the locations where certificates and keys that it will manage will be stored (these locations are typically labeled as cert_t or an equivalent). π¨ So check your policy, bestie.
More SELinux-specific information can be found in the selinux.txt documentation file for this package. π
π BUGS π
Please file tickets for any that you find at https://fedorahosted.org/certmonger/ β she wants to know. Fr fr. π«Ά
π― SEE ALSO π―
certmonger(8) getcert(1) getcert-add-ca(1) getcert-add-scep-ca(1) getcert-list-cas(1) getcert-list(1) getcert-modify-ca(1) getcert-refresh-ca(1) getcert-refresh(1) getcert-rekey(1) getcert-remove-ca(1) getcert-resubmit(1) getcert-start-tracking(1) getcert-status(1) getcert-stop-tracking(1) certmonger-certmaster-submit(8) certmonger-dogtag-ipa-renew-agent-submit(8) certmonger-dogtag-submit(8) certmonger-ipa-submit(8) certmonger-local-submit(8) certmonger-scep-submit(8) certmonger_selinux(8)
That's the whole page, bestie. Go get those certs signed. π β¨
Much love from the certmonger Manual, dated February 9, 2015, from your girl CERTMONGER(1). Periodt. ππ¦π
π¦ where this page comes from
- alpine 3.24: certmonger-doc 0.79.21-r0 Β· GPL-3.0-or-later
- centos-stream 10: certmonger 0.79.21-1.el10 Β· GPL-3.0-or-later
- centos-stream 9: certmonger 0.79.21-1.el9 Β· GPLv3+
- debian bookworm: certmonger 0.79.17-2 Β· GPL-3.0-or-later WITH OpenSSL exception
- debian trixie: certmonger 0.79.20-2 Β· GPL-3.0-or-later WITH OpenSSL exception
- fedora 43: certmonger 0.79.20-5.fc43 Β· GPL-3.0-or-later
- fedora 43: certmonger 0.79.21-1.fc43 Β· GPL-3.0-or-later
- fedora 44: certmonger 0.79.21-4.fc44 Β· GPL-3.0-or-later
- opensuse-leap 16.0: certmonger 0.79.19-160000.2.2 Β· GPL-3.0-or-later
- opensuse-leap 16.0: certmonger 0.79.19-160000.2.2 Β· GPL-3.0-or-later
- opensuse-leap 16.0: certmonger 0.79.19-160000.2.2 Β· GPL-3.0-or-later
- opensuse-leap 16.0: certmonger 0.79.19-160000.2.2 Β· GPL-3.0-or-later
- ubuntu jammy: certmonger 0.79.14+git20211010-2ubuntu1 Β· GPL-3.0-or-later WITH OpenSSL exception
- ubuntu noble: certmonger 0.79.19-1build4 Β· GPL-3.0-or-later WITH OpenSSL exception
- ubuntu questing: certmonger 0.79.20-2build1
- ubuntu resolute: certmonger 0.79.21-1 Β· GPL-3.0-or-later WITH OpenSSL exception
- ubuntu stonking: certmonger 0.79.21-1build1 Β· GPL-3.0-or-later WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms