mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
35d1d345c1
Only a single cert in DER or PEM format would be loaded from the provided file. Extend this to include PKCS#7 format and load all certificates found in the file. Signed-off-by: Rob Crittenden <rcritten@redhat.com> https://pagure.io/freeipa/issue/7579 Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
140 lines
5.3 KiB
Groff
140 lines
5.3 KiB
Groff
.\" A man page for ipa-cacert-manage
|
|
.\" Copyright (C) 2014 Red Hat, Inc.
|
|
.\"
|
|
.\" This program is free software; you can redistribute it and/or modify
|
|
.\" it under the terms of the GNU General Public License as published by
|
|
.\" the Free Software Foundation, either version 3 of the License, or
|
|
.\" (at your option) any later version.
|
|
.\"
|
|
.\" This program is distributed in the hope that it will be useful, but
|
|
.\" WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
.\" General Public License for more details.
|
|
.\"
|
|
.\" You should have received a copy of the GNU General Public License
|
|
.\" along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
.\"
|
|
.\" Author: Jan Cholasta <jcholast@redhat.com>
|
|
.\"
|
|
.TH "ipa-cacert-manage" "1" "Aug 12 2013" "FreeIPA" "FreeIPA Manual Pages"
|
|
.SH "NAME"
|
|
ipa\-cacert\-manage \- Manage CA certificates in IPA
|
|
.SH "SYNOPSIS"
|
|
\fBipa\-cacert\-manage\fR [\fIOPTIONS\fR...] renew
|
|
.RE
|
|
\fBipa\-cacert\-manage\fR [\fIOPTIONS\fR...] install \fICERTFILE\fR...
|
|
.RE
|
|
\fBipa\-cacert\-manage\fR [\fIOPTIONS\fR...] list
|
|
.SH "DESCRIPTION"
|
|
\fBipa\-cacert\-manage\fR can be used to manage CA certificates in IPA.
|
|
.SH "COMMANDS"
|
|
.TP
|
|
\fBrenew\fR
|
|
\- Renew the IPA CA certificate
|
|
.sp
|
|
.RS
|
|
This command can be used to manually renew the CA certificate of the IPA CA (NSS database nickname: "caSigningCert cert-pki-ca"). To renew other certificates, use getcert-resubmit(1).
|
|
.sp
|
|
When the IPA CA is the root CA (the default), it is not usually necessary to manually renew the CA certificate, as it will be renewed automatically when it is about to expire, but you can do so if you wish.
|
|
.sp
|
|
When the IPA CA is subordinate of an external CA, the renewal process involves submitting a CSR to the external CA and installing the newly issued certificate in IPA, which cannot be done automatically. It is necessary to manually renew the CA certificate in this setup.
|
|
.sp
|
|
When the IPA CA is not configured, this command is not available.
|
|
.RE
|
|
.TP
|
|
\fBinstall\fR
|
|
\- Install one or more CA certificates
|
|
.sp
|
|
.RS
|
|
This command can be used to install the certificates contained in \fICERTFILE\fR as additional CA certificates to IPA.
|
|
.sp
|
|
Important: this does not replace IPA CA but adds the provided certificate as a known CA. This is useful for instance when using ipa-server-certinstall to replace HTTP/LDAP certificates with third-party certificates signed by this additional CA.
|
|
.sp
|
|
Please do not forget to run ipa-certupdate on the master, all the replicas and all the clients after this command in order to update IPA certificates databases.
|
|
.sp
|
|
The supported formats for the certificate files are DER, PEM and PKCS#7 format.
|
|
.RE
|
|
\fBlist\fR
|
|
\- List the stored CA certificates
|
|
.sp
|
|
.RS
|
|
Display a list of the nicknames or subjects of the CA certificates that have been installed.
|
|
.RE
|
|
.SH "COMMON OPTIONS"
|
|
.TP
|
|
\fB\-\-version\fR
|
|
Show the program's version and exit.
|
|
.TP
|
|
\fB\-h\fR, \fB\-\-help\fR
|
|
Show the help for this program.
|
|
.TP
|
|
\fB\-p\fR \fIDM_PASSWORD\fR, \fB\-\-password\fR=\fIDM_PASSWORD\fR
|
|
The Directory Manager password to use for authentication.
|
|
.TP
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
Print debugging information.
|
|
.TP
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
Output only errors.
|
|
.TP
|
|
\fB\-\-log\-file\fR=\fIFILE\fR
|
|
Log to the given file.
|
|
.RE
|
|
.SH "RENEW OPTIONS"
|
|
.TP
|
|
\fB\-\-self\-signed\fR
|
|
Sign the renewed certificate by itself.
|
|
.TP
|
|
\fB\-\-external\-ca\fR
|
|
Sign the renewed certificate by external CA.
|
|
.TP
|
|
\fB\-\-external\-ca\-type\fR=\fITYPE\fR
|
|
Type of the external CA. Possible values are "generic", "ms-cs". Default value is "generic". Use "ms-cs" to include the template name required by Microsoft Certificate Services (MS CS) in the generated CSR (see \fB\-\-external\-ca\-profile\fR for full details).
|
|
|
|
.TP
|
|
\fB\-\-external\-ca\-profile\fR=\fIPROFILE_SPEC\fR
|
|
Specify the certificate profile or template to use at the external CA.
|
|
|
|
When \fB\-\-external\-ca\-type\fR is "ms-cs" the following specifiers may be used:
|
|
|
|
.RS
|
|
.TP
|
|
\fB<oid>:<majorVersion>[:<minorVersion>]\fR
|
|
Specify a certificate template by OID and major version, optionally also specifying minor version.
|
|
.TP
|
|
\fB<name>\fR
|
|
Specify a certificate template by name. The name cannot contain any \fI:\fR characters and cannot be an OID (otherwise the OID-based template specifier syntax takes precedence).
|
|
.TP
|
|
\fBdefault\fR
|
|
If no template is specified, the template name "SubCA" is used.
|
|
.RE
|
|
|
|
.TP
|
|
\fB\-\-external\-cert\-file\fR=\fIFILE\fR
|
|
File containing the IPA CA certificate and the external CA certificate chain. The file is accepted in PEM and DER certificate and PKCS#7 certificate chain formats. This option may be used multiple times.
|
|
.RE
|
|
.SH "INSTALL OPTIONS"
|
|
.TP
|
|
\fB\-n\fR \fINICKNAME\fR, \fB\-\-nickname\fR=\fINICKNAME\fR
|
|
Nickname for the certificate. Applicable only when a single certificate is being installed.
|
|
.TP
|
|
\fB\-t\fR \fITRUST_FLAGS\fR, \fB\-\-trust\-flags\fR=\fITRUST_FLAGS\fR
|
|
Trust flags for the certificate in certutil format. Trust flags are of the form "A,B,C" or "A,B,C,D" where A is for SSL, B is for S/MIME, C is for code signing, and D is for PKINIT. Use ",," for no explicit trust.
|
|
.sp
|
|
The supported trust flags are:
|
|
.RS
|
|
.IP
|
|
C \- CA trusted to issue server certificates
|
|
.IP
|
|
T \- CA trusted to issue client certificates
|
|
.IP
|
|
p \- not trusted
|
|
.RE
|
|
.SH "EXIT STATUS"
|
|
0 if the command was successful
|
|
|
|
1 if an error occurred
|
|
|
|
.SH "SEE ALSO"
|
|
.BR getcert-resubmit(1)
|