File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -7650,6 +7650,49 @@ postalCode = 2.5.4.17
7650
7650
streetAddress = 2.5.4.9
7651
7651
```
7652
7652
7653
+ Full example:
7654
+
7655
+ ```bash
7656
+ ( _fd="private.key" ; _fd_csr="request.csr" ; \
7657
+ openssl req -new -sha256 -key ${_fd} -out ${_fd_csr} \
7658
+ -config <(
7659
+ cat << __EOF__
7660
+ [req]
7661
+ default_bits = 2048
7662
+ default_md = sha256
7663
+ prompt = no
7664
+ distinguished_name = dn
7665
+ req_extensions = req_ext
7666
+ oid_section = new_oids
7667
+
7668
+ [ new_oids ]
7669
+ serialNumber = 2.5.4.5
7670
+ streetAddress = 2.5.4.9
7671
+ postalCode = 2.5.4.17
7672
+ businessCategory = 2.5.4.15
7673
+
7674
+ [ dn ]
7675
+ serialNumber=00001111
7676
+ businessCategory=Private Organization
7677
+ jurisdictionC=DE
7678
+ C=DE
7679
+ ST=Hessen
7680
+ L=Keller
7681
+ postalCode=424242
7682
+ streetAddress=Crater 1621
7683
+ O=AV Company
7684
+ OU=IT
7685
+ CN=example.com
7686
+
7687
+ [ req_ext ]
7688
+ subjectAltName = @alt_names
7689
+
7690
+ [ alt_names ]
7691
+ DNS.1 = example.com
7692
+ __EOF__
7693
+ ))
7694
+ ```
7695
+
7653
7696
For more information please look at these great explanations:
7654
7697
7655
7698
- [RFC 5280](https://tools.ietf.org/html/rfc5280)
@@ -7658,6 +7701,7 @@ For more information please look at these great explanations:
7658
7701
- [Your OpenSSL CSR command is out of date](https://expeditedsecurity.com/blog/openssl-csr-command/)
7659
7702
- [OpenSSL example configuration file](https://www.tbs-certificats.com/openssl-dem-server-cert.cnf)
7660
7703
- [Object Identifiers (OIDs)](https://www.alvestrand.no/objectid/)
7704
+ - [openssl objects.txt](https://github.com/openssl/openssl/blob/master/crypto/objects/objects.txt)
7661
7705
7662
7706
###### List available EC curves
7663
7707
You can’t perform that action at this time.
0 commit comments