Skip to content

Commit a2f3a6d

Browse files
committed
Add missing openssl.cnf parameters for configuring a CA.
1 parent e5acf5a commit a2f3a6d

2 files changed

Lines changed: 34 additions & 6 deletions

File tree

docs/sudo_logsrvd.man.in

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.\"
33
.\" SPDX-License-Identifier: ISC
44
.\"
5-
.\" Copyright (c) 2019-2024 Todd C. Miller <[email protected]>
5+
.\" Copyright (c) 2019-2025 Todd C. Miller <[email protected]>
66
.\"
77
.\" Permission to use, copy, modify, and distribute this software for any
88
.\" purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +16,7 @@
1616
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1717
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1818
.\"
19-
.TH "SUDO_LOGSRVD" "@mansectsu@" "July 14, 2024" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
19+
.TH "SUDO_LOGSRVD" "@mansectsu@" "September 21, 2025" "Sudo @PACKAGE_VERSION@" "System Manager's Manual"
2020
.nh
2121
.if n .ad l
2222
.SH "NAME"
@@ -176,7 +176,7 @@ for this purpose.
176176
# cd /etc/ssl/sudo
177177
# mkdir certs csr newcerts private
178178
# chmod 700 private
179-
# touch index.txt
179+
# touch index.txt index.txt.attr
180180
# echo 1000 > serial
181181
.RE
182182
.fi
@@ -217,9 +217,23 @@ default_ca = CA_default
217217
dir = /etc/ssl/sudo
218218
certs = $dir/certs
219219
database = $dir/index.txt
220+
private_key = $dir/private/cakey.pem
220221
certificate = $dir/cacert.pem
222+
new_certs_dir = $dir/newcerts
221223
serial = $dir/serial
222224

225+
# CA policy if you don't have one defined already.
226+
policy = policy_loose
227+
228+
[ policy_loose ]
229+
# See POLICY FORMAT section in the "openssl-ca" manual.
230+
countryName = optional
231+
stateOrProvinceName = optional
232+
organizationName = optional
233+
organizationalUnitName = optional
234+
commonName = supplied
235+
emailAddress = optional
236+
223237
[ v3_ca ]
224238
subjectKeyIdentifier = hash
225239
authorityKeyIdentifier = keyid:always,issuer

docs/sudo_logsrvd.mdoc.in

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\"
22
.\" SPDX-License-Identifier: ISC
33
.\"
4-
.\" Copyright (c) 2019-2024 Todd C. Miller <[email protected]>
4+
.\" Copyright (c) 2019-2025 Todd C. Miller <[email protected]>
55
.\"
66
.\" Permission to use, copy, modify, and distribute this software for any
77
.\" purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +15,7 @@
1515
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1616
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1717
.\"
18-
.Dd July 14, 2024
18+
.Dd September 21, 2025
1919
.Dt SUDO_LOGSRVD @mansectsu@
2020
.Os Sudo @PACKAGE_VERSION@
2121
.Sh NAME
@@ -164,7 +164,7 @@ for this purpose.
164164
# cd /etc/ssl/sudo
165165
# mkdir certs csr newcerts private
166166
# chmod 700 private
167-
# touch index.txt
167+
# touch index.txt index.txt.attr
168168
# echo 1000 > serial
169169
.Ed
170170
.Pp
@@ -199,9 +199,23 @@ default_ca = CA_default
199199
dir = /etc/ssl/sudo
200200
certs = $dir/certs
201201
database = $dir/index.txt
202+
private_key = $dir/private/cakey.pem
202203
certificate = $dir/cacert.pem
204+
new_certs_dir = $dir/newcerts
203205
serial = $dir/serial
204206

207+
# CA policy if you don't have one defined already.
208+
policy = policy_loose
209+
210+
[ policy_loose ]
211+
# See POLICY FORMAT section in the "openssl-ca" manual.
212+
countryName = optional
213+
stateOrProvinceName = optional
214+
organizationName = optional
215+
organizationalUnitName = optional
216+
commonName = supplied
217+
emailAddress = optional
218+
205219
[ v3_ca ]
206220
subjectKeyIdentifier = hash
207221
authorityKeyIdentifier = keyid:always,issuer

0 commit comments

Comments
 (0)