CERTMONGER(1)
π CERTMONGER(1) π
okay so bestie, welcome to the certmonger manual page, the General Commands Manual era, and we're talking about the one and only getcert π this is the glow-up guide, no cap.
β¨ NAME β¨
getcert β yeah that's the main character right there π
πΈ SYNOPSIS πΈ
getcert start-tracking [options]
π¦ DESCRIPTION π¦
So basically, start-tracking tells certmonger to monitor a certificate that's already been issued β like, it's already out there living its life, and we're just gonna keep an eye on it π.
And optionally? When that cert gets close to its expiration date, certmonger can use an existing key pair (or generate a whole new one if it can't find one in the location you specified π«Ά), build a signing request with that key pair, and submit the whole thing to a CA for signing. Periodt.
π SPECIFYING EXISTING REQUESTS π
-i NAME,--id=NAMEβ bestie, this one lets you modify the request that already has this nickname β¨. And if you don't specify it, but there's already a tracking entry that matches the key and cert storage options you gave? That entry gets modified instead. Otherwise? Brand new tracking entry, we're adding it to the roster π .
π KEY AND CERTIFICATE STORAGE OPTIONS π
-d DIR,--dbdir=DIRβ use an NSS database in this directory to read the certificate, and if it's possible, the matching key too π.-n NAME,--nickname=NAMEβ grab the certificate with this nickname, and if there's a private key with the same nickname (or one that corresponds to the cert), use that too π«Ά. Heads up: only valid with-d.-t TOKEN,--token=TOKENβ if the NSS database has more than one token available, use the one with this name to access the cert and key. Ngl, this argument only rarely needs to be specified. Only valid with-d.-f FILE,--certfile=FILEβ read the certificate from this file π. And for safety's sake, do not use the same file you specified with the-koption, okay? Don't do it.-k FILE,--keyfile=FILEβ use the key stored in this file to generate a signing request for refreshing the cert π. If no such file is found when it's needed, certmonger generates a new key pair and stores them in the file. Only valid with-f.
π KEY ENCRYPTION OPTIONS π
-p FILE,--pinfile=FILEβ the private key files or databases are encrypted using the PIN stored in this named file as the passphrase π.-P PIN,--pin=PINβ the private key files or databases are encrypted using this specified PIN as the passphrase. But listen: because command-line arguments to running processes are trivially discoverable π, using this option is not recommended except for testing. Like, fr fr, don't.
β TRACKING OPTIONS β
-I NAME,--new-id=NAMEβ assign this nickname to the task π·οΈ. If you don't specify it, a name gets assigned automatically, no worries.-r,--renewβ attempt to get a new certificate from the CA when the expiration date of a cert gets near β°. This is the default setting, bestie.-R,--no-renewβ do not attempt to get a new cert from the CA when expiration nears. If you specify this, an expired certificate will simply stay expired π.
π« ENROLLMENT OPTIONS π«
-c NAME,--ca=NAMEβ enroll with the specified CA instead of a possible default. The name of the CA should correspond to one listed bygetcert list-casπ. Only useful in combination with-r.-T NAME,--profile=NAMEβ request a certificate using the named profile, template, or certtype, from the specified CA π―.--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 π
If and when certmonger attempts to obtain a new certificate to replace the one being monitored, the values added to the signing request get taken from the current certificate β unless preferred values are set using one or more of -uU, -K, -E, and -D. iykyk.
-u keyUsage,--key-usage=keyUsageβ add anextensionRequestfor 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 anextensionRequestfor the specified extendedKeyUsage to the signing request. The EKU value is expected to be an object identifier (OID) π.-K NAME,--principal=NAMEβ add anextensionRequestfor asubjectAltName, with the specified Kerberos principal name as its value, to the signing request π.-E EMAIL,--email=EMAILβ add anextensionRequestfor asubjectAltName, with the specified email address as its value, to the signing request π§.-D DNSNAME,--dns=DNSNAMEβ add anextensionRequestfor asubjectAltName, with the specified DNS name as its value, to the signing request π.-A ADDRESS,--ip-address=ADDRESSβ add anextensionRequestfor asubjectAltName, with the specified IP address as its value, to the signing request π.-l FILE,--challenge-password-file=FILEβ add an optionalChallengePasswordvalue, read from the file, to the signing request. AChallengePasswordis often required when the CA is accessed using SCEP π.-L PASSWORD,--challenge-password=PASSWORDβ add the argument value to the signing request as aChallengePasswordattribute. AChallengePasswordis often required when the CA is accessed using SCEP π.
π«Ά OTHER OPTIONS π«Ά
-B COMMAND,--before-command=COMMANDβ whenever the certificate or the CA's certificates are saved to the specified locations, run this command as the client user before saving the certificates πββοΈ.-C COMMAND,--after-command=COMMANDβ whenever the certificate or the CA's certificates are saved to the specified locations, run this command as the client user after saving the certificates π.-a DIR,--ca-dbdir=DIRβ whenever 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β whenever 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 π.-w,--waitβ wait for the certificate to become valid or to be reissued and saved, or for the attempt to obtain a new one to fail β³.--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 get suppressed if the client can make a diagnostic suggestion.-o OWNER,--key-owner=OWNERβ after generation, set the owner on the private key file or database toOWNERπ€.-m MODE,--key-perms=MODEβ after generation, set the file permissions on the private key file or database toMODEπ§.-O OWNER,--cert-owner=OWNERβ after generation, set the owner on the certificate file or database toOWNERπ€.-M MODE,--cert-perms=MODEβ after generation, set the file permissions on the certificate file or database toMODEπ§.
π 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 π. When run as a system daemon on a system that uses a mandatory access control mechanism such as SELinux, the system policy must ensure the daemon is allowed to access the locations where certificates and keys it will manage get stored (these locations are typically labeled as cert_t or an equivalent) π.
More SELinux-specific info 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/ π« β not me being dramatic, just file them okay?
π 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-request(1) getcert-resubmit(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)
later bestie π
this was the certmonger Manual crew serving you the CERTMONGER(1) page, dated February 9, 2015, and honestly? iconic behavior. mwah πβ¨
π¦ 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