.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "CDIST-TYPE__SNAKEOIL_CERT" "7" "Sep 26, 2023" "7.0.0" "cdist" .SH NAME .sp cdist\-type__snakeoil_cert \- Generate self\-signed certificate .SH DESCRIPTION .sp The purpose of this type is to generate \fBself\-signed\fP certificate and private key for \fBtesting purposes\fP\&. Certificate will expire in 3650 days. .sp Certificate\(aqs and key\(aqs access bits will be \fB644\fP and \fB640\fP respectively. If target system has \fBssl\-cert\fP group, then it will be used as key\(aqs group. Use \fBrequire=\(aq__snakeoil_cert/...\(aq __file ...\fP to override. .SH OPTIONAL PARAMETERS .INDENT 0.0 .TP .B common\-name Defaults to \fB$__object_id\fP\&. .TP .B key\-path \fB%s\fP in path will be replaced with \fB$__object_id\fP\&. Defaults to \fB/etc/ssl/private/%s.pem\fP\&. .TP .B key\-type Possible values are \fBrsa:$bits\fP and \fBec:$name\fP\&. For possible EC names see \fBopenssl ecparam \-list_curves\fP\&. Defaults to \fBrsa:2048\fP\&. .TP .B cert\-path \fB%s\fP in path will be replaced with \fB$__object_id\fP\&. Defaults to \fB/etc/ssl/certs/%s.pem\fP\&. .UNINDENT .SH EXAMPLES .INDENT 0.0 .INDENT 3.5 .sp .EX __snakeoil_cert localhost\-rsa \e \-\-common\-name localhost \e \-\-key\-type rsa:4096 __snakeoil_cert localhost\-ec \e \-\-common\-name localhost \e \-\-key\-type ec:prime256v1 .EE .UNINDENT .UNINDENT .SH AUTHORS .sp Ander Punnar .SH COPYING .sp Copyright (C) 2021 Ander Punnar. 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. .SH COPYRIGHT ungleich GmbH 2021 .\" Generated by docutils manpage writer. .