note 120323 added to function.openssl-csr-new
| From: | at operator | Date: | Tue, 13 Dec 2016 14:19:14 +0000 |
| Subject: | note 120323 added to function.openssl-csr-new | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-208579@lists.php.net to get a copy of this message | ||
One command to create modern certificate request with 4 SAN subdomain.
According to RFC you can change CN (common name) and subjectAltName. When cert validated searching
in CN and subjectAltName.
openssl req -new -nodes -config <( cat <<-EOF
[req]
default_bits = 2048
prompt = no
default_md = sha256
req_extensions = re
distinguished_name = dn
[ dn ]
CN = my.tld
C = country
ST = state
L = location
O = ORGANISATION
[ re ]
subjectAltName = DNS.1: www.my.tld, DNS.2: www2.my.tld, DNS.3: www3.my.tld, DNS.4: www4.my.tld
EOF
) -keyout secret.key -out req.csr
----
Server IP: 72.52.91.14
Probable Submitter: 185.129.62.62
----
Manual Page -- http://php.net/manual/en/function.openssl-csr-new.php
Edit -- https://master.php.net/note/edit/120323
Del: integrated -- https://master.php.net/note/delete/120323/integrated
Del: useless -- https://master.php.net/note/delete/120323/useless
Del: bad code -- https://master.php.net/note/delete/120323/bad+code
Del: spam -- https://master.php.net/note/delete/120323/spam
Del: non-english -- https://master.php.net/note/delete/120323/non-english
Del: in docs -- https://master.php.net/note/delete/120323/in+docs
Del: other reasons-- https://master.php.net/note/delete/120323
Reject -- https://master.php.net/note/reject/120323
Search -- https://master.php.net/manage/user-notes.php