File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,9 @@ certificate = $dir/cacert.pem
222222new_certs_dir = $dir/newcerts
223223serial = $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.
226229policy = 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+ \fR copy_extensions\fR
380+ has been enabled in the CA configuration.
381+ .PP
364382Now sign the CSR that was just created:
365383.nf
366384.sp
Original file line number Diff line number Diff line change @@ -204,6 +204,9 @@ certificate = $dir/cacert.pem
204204new_certs_dir = $dir/newcerts
205205serial = $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.
208211policy = policy_loose
209212
@@ -327,6 +330,18 @@ A challenge password []:
327330An 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
330345Now sign the CSR that was just created:
331346.Bd -literal -offset 4n
332347# openssl ca -config openssl.cnf -days 375 -notext -md sha256 \e
You can’t perform that action at this time.
0 commit comments