CERTMONGER(8)
β¨ NAME β¨
dogtag-ipa-renew-agent-submit β and bestie, heads up, this whole page is from the CERTMONGER(8) manual, aka the System Manager's Manual. That's the vibe. π
π SYNOPSIS π
dogtag-ipa-renew-agent-submit [options] [csrfile]
π¦ DESCRIPTION π¦
okay so dogtag-ipa-renew-agent-submit is the little helper bestie that certmonger calls up whenever it needs to make certificate renewal requests to Dogtag instances running on IPA servers. It is not normally run interactively, but lowkey you can run it yourself if you're troubleshooting. no cap. π
The preferred move is to ask for a renewal of an already-issued certificate, using its serial number. Where does that serial number come from? Either it's read from a PEM-formatted certificate handed to you in the CERTMONGER_CERTIFICATE environment variable, or you pass it on the command line with the -s or -D option. If no serial number shows up anywhere, then the client will try to get a brand new certificate by submitting a signing request to the CA. iconic behavior honestly. β¨
The signing request that's gonna get submitted should either live in a file whose name you give as an argument, or be fed into dogtag-ipa-renew-agent-submit via stdin. pick your fighter. π«Ά
certmonger does not yet support retrieving trust information from Dogtag CAs. that's just the tea, bestie. π
π OPTIONS π
-E EE-URL,--ee-url=EE-URLβ The top-level URL for the end-entity interface provided by the CA. In IPA installations, this is typicallyhttp://SERVER:EEPORT/ca/ee/ca. If no URL is specified, the host named in the[global]section in the/etc/ipa/default.conffile is used as the value ofSERVER, and the value ofEEPORTwill be inferred based on the value of thedogtag_versionin the[global]section in the/etc/ipa/default.conffile: ifdogtag_versionis set to10or more,EEPORTwill be set to8080. Otherwise it will be9180. π§-A AGENT-URL,--agent-url=AGENT-URLβ The top-level URL for the agent interface provided by the CA. In IPA installations, this is typicallyhttps://SERVER:AGENTPORT/ca/agent/ca. If no URL is specified, the host named in the[global]section in the/etc/ipa/default.conffile is used as the value ofSERVER, and the value ofAGENTPORTwill be inferred based on the value of thedogtag_versionin the[global]section in the/etc/ipa/default.conffile: ifdogtag_versionis set to10or more,AGENTPORTwill be set to8443. Otherwise it will be9443. π₯-i FILE,--cafile=PATHβ The location of a file containing a copy of the CA's certificate, against which the CA server's certificate will be verified. The default is/etc/ipa/ca.crt. π-C DIR,--capath=DIRβ The location of a directory containing a copy of the CA's certificate, against which the CA server's certificate will be verified. β¨-d DIR,--dbdir=DIRβ The NSS database that contains credentials to authenticate to the CA. π-n NAME,--nickname=NAMEβ The nickname of the certificate used for authentication. π·οΈ-c FILENAME,--certfile=FILENAMEβ The certificate in PEM format used for authentication. π-k FILENAME,--keyfile=FILENAMEβ The private key for the certificate in PEM format used for authentication. It may be encrypted. π-p FILENAME,--sslpinfile=FILENAMEβ A file that contains the pin for the private key file or NSS database. π-P STRING,--sslpin=STRINGβ The pin for the private key file or NSS database. π-s NUMBER,--hex-serial=NUMBERβ The serial number of an already-issued certificate for which the client should attempt to obtain a new certificate, in hexidecimal form, if one can not be read from theCERTMONGER_CERTIFICATEenvironment variable. π’-D NUMBER,--serial=NUMBERβ The serial number of an already-issued certificate for which the client should attempt to obtain a new certificate, in decimal form, if one can not be read from theCERTMONGER_CERTIFICATEenvironment variable. π’-S STATE-VALUE,--state=STATE-VALUEβ A cookie value provided by a previous instance of this helper, if the helper is being asked to continue a multi-step enrollment process. If theCERTMONGER_COOKIEenvironment variable is set, its value is used. πͺ-T NAME,--profile=NAMEβ The name of the type of certificate which the client should request from the CA if it is not renewing a certificate (per the-soption above). If theCERTMONGER_CA_PROFILEenvironment variable is set, its value is used. Otherwise, the default value iscaServerCert. π-t,--profile-listβ Instead of attempting to obtain a new certificate, query the server for a list of the enabled enrollment profiles. π-O param=value,--approval-option=param=valueβ An additional parameter to pass to the server when approving the signing request using the agent's credentials. By default, any server-supplied default settings are applied. This option can be used either to override a server-supplied default setting, or to supply one which would otherwise have not been used. π«-N,--force-newβ Even if an already-issued certificate is available in theCERTMONGER_CERTIFICATEenvironment variable, or a serial number has been provided, don't attempt to renew a certificate using its serial number. Instead, attempt to obtain a new certificate using the signing request. The default behavior is to request a renewal if possible. π±-R,--force-renewβ Negates the effect of the-Nflag. β»οΈ-o param=value,--submit-option=param=valueβ When initially submitting a request to the CA, add the specified parameter and value along with any request parameters which would otherwise be sent. This option is not typically used. π-a,--agent-submitβ Use agent credentials, specified using some combination of the-d,-n,-c, and-kflags, to authenticate to the CA when initially submitting a request to the CA or retrieving the list of enabled enrollment profiles. This is typically required when the enrollment profile being used usesAgentCertAuth-based authentication, and requires that the URL specified using the-Eflag be an HTTPS URL, or when the URL specified using the-Eflag is an HTTPS URL. π₯-u username,--uid=usernameβ When initially submitting a request to the CA, supply the specified value as a user name. This is typically required when the enrollment profile being used usesUidPwdDirAuth-based orNISAuth-based authentication. π«Ά-U userdn,--upn=userdnβ When initially submitting a request to the CA, supply the specified value as the DN (distinguished name) of the user's entry in a directory server which the CA is configured to use for checking the user's password. This is typically required when the enrollment profile being used usesUdnPwdDirAuth-based authentication. π-W PASSWORD,--userpwd=PASSWORDβ When initially submitting a request to the CA, supply the specified value as the password for the user whose name is specified with the-uoption, or whose DN is specified with the-Uoption. This is typically only required when the enrollment profile being used usesUidPwdDirAuth-based,UserPwdDirAuth-based, orNISAuth-based authentication. If the URL specified using the-Eflag is not an HTTPS URL, this value will not be encrypted. π¬-w FILE,--userpwdfile=FILEβ When initially submitting a request to the CA, read from the specified file a password to supply for the user whose name is specified with the-uoption, or whose DN is specified with the-Uoption. This is typically only required when the enrollment profile being used usesUidPwdDirAuth-based,UserPwdDirAuth-based, orNISAuth-based authentication. If the URL specified using the-Eflag is not an HTTPS URL, this value will not be encrypted. π¬-Y PIN,--userpin=PINβ When initially submitting a request to the CA, supply the specified value as the PIN for the user whose name is specified with the-uoption, or whose DN is specified with the-Uoption. This is typically only required when the enrollment profile being used usesUidPwdPinDirAuth-based authentication. If the URL specified using the-Eflag is not an HTTPS URL, this value will not be encrypted. π¬-y FILE,--userpinfile=FILEβ When initially submitting a request to the CA, read from the specified file a PIN to supply for the user whose name is specified with the-uoption, or whose DN is specified with the-Uoption. This is typically only required when the enrollment profile being used usesUidPwdPinDirAuth-based authentication. If the URL specified using the-Eflag is not an HTTPS URL, this value will not be encrypted. π¬-v,--verboseβ Increases the logging level. Use twice for more logging. This option is mainly useful for troubleshooting. π£οΈ
π AGENT KEY AND CERTIFICATE OPTIONS π
okay so this whole little cluster is about where the private key and public certificate live β the ones the client should use to authenticate to the CA's agent interface. and bestie, which values you actually use depends on which cryptography library your copy of libcurl was linked with. that's just how it is. π¦
The location of the certificate used for authentication to the CA needs to be provided in either a combination of PEM files using --certfile and --keyfile or an NSS database using --dbdir and --nickname. The default for --cafile is /etc/ipa/ca.crt. π
-d dbdir,--dbdir=dbdirβ Use an NSS database in the specified directory for this certificate and key. Only valid with-n. ποΈ-n NAME,--nickname=NAMEβ Use the NSS key with this nickname. Only valid with-d. π·οΈ-c FILE,--certfile=FILEβ The PEM file that contains the public certificate. Only valid with-k. π-k FILE,--keyfile=FILEβ The PEM file that contains the private certificate. Only valid with-c. π-p FILE,--sslpinfile=FILEβ The name of a file which contains a PIN/password which will be needed in order to make use of the agent credentials. π-P PIN,--sslpin=PINβ The name of a file which contains a PIN/password which will be needed in order to make use of the agent credentials. π
β¦and there's more, bestie, keep scrolling ππ
β¨ EXIT STATUS β¨
ok so like, the exit code is literally the whole mood of the operation π here's what each one is telling you:
0β slay!! the certificate was issued π and bestie, it will be printed for you.1β the CA is still thinking π€ (yes, thinking, iconic of it). a cookie (state) value will be printed so you can come back later.2β the CA rejected the request π an error message may be printed.3β the CA was unreachable π an error message may be printed.4β critical configuration information is missing π an error message may be printed.5β the CA is still thinking. again. a suggested poll delay (specified in seconds) and a cookie (state) value will be printed π17β the CA indicates that the client needs to attempt enrollment using a new key pair π like okay glow-up era, new keys it is.
lowkey important: those "still thinking" codes are not errors fr fr, they're just the CA taking its sweet time. read the cookie, wait, try again π«Ά
π FILES π
/etc/ipa/default.confβ this is the IPA client configuration file. it gets consulted to determine the URL for the Dogtag server's end-entity and agent interfaces, but only if they weren't supplied as arguments. iykyk β¨
π¦ BUGS π¦
found a bug? no cap, please file tickets for any that you find at https://fedorahosted.org/certmonger/ β the maintainers wanna know π
π SEE ALSO π
go off, read the whole squad:
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-submit(8)certmonger-ipa-submit(8)certmonger-local-submit(8)certmonger-scep-submit(8)certmonger_selinux(8)
and that's the page bestie!! this was the certmonger Manual, section 8, dated October 27, 2015 π«Ά go get those certs, you're the main character of your own PKI πβ¨
π¦ 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