Skip to content

Commit 1377408

Browse files
committed
Document how to add a Subject Alternative Name (SAN).
1 parent f04b440 commit 1377408

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

docs/sudo_logsrvd.man.in

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ certificate = $dir/cacert.pem
222222
new_certs_dir = $dir/newcerts
223223
serial = $dir/serial
224224

225+
# Copy extension from the csr to the cert
226+
copy_extensions = copy
227+
225228
# CA policy if you don't have one defined already.
226229
policy = policy_loose
227230

@@ -361,6 +364,21 @@ An optional company name []:
361364
.RE
362365
.fi
363366
.PP
367+
To add additional DNS names (or IP addresses) to the request, set
368+
the Subject Alternative Name (SAN) by adding the something like
369+
the following to the above command.
370+
.nf
371+
.sp
372+
.RS 4n
373+
-addext 'subjectAltName = DNS:other.example.com, IP:192.168.10.10'
374+
.RE
375+
.fi
376+
.PP
377+
You may include zero or more DNS and IP entries, separated by a comma.
378+
This will only work if
379+
\fRcopy_extensions\fR
380+
has been enabled in the CA configuration.
381+
.PP
364382
Now sign the CSR that was just created:
365383
.nf
366384
.sp

docs/sudo_logsrvd.mdoc.in

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ certificate = $dir/cacert.pem
204204
new_certs_dir = $dir/newcerts
205205
serial = $dir/serial
206206

207+
# Copy extension from the csr to the cert
208+
copy_extensions = copy
209+
207210
# CA policy if you don't have one defined already.
208211
policy = policy_loose
209212

@@ -327,6 +330,18 @@ A challenge password []:
327330
An optional company name []:
328331
.Ed
329332
.Pp
333+
To add additional DNS names (or IP addresses) to the request, set
334+
the Subject Alternative Name (SAN) by adding the something like
335+
the following to the above command.
336+
.Bd -literal -offset 4n
337+
-addext 'subjectAltName = DNS:other.example.com, IP:192.168.10.10'
338+
.Ed
339+
.Pp
340+
You may include zero or more DNS and IP entries, separated by a comma.
341+
This will only work if
342+
.Li copy_extensions
343+
has been enabled in the CA configuration.
344+
.Pp
330345
Now sign the CSR that was just created:
331346
.Bd -literal -offset 4n
332347
# openssl ca -config openssl.cnf -days 375 -notext -md sha256 \e

0 commit comments

Comments
 (0)