Skip to content

Commit b758051

Browse files
committed
add 'Object Identifiers' from OpenSSL
- signed-off-by: trimstray <trimstray@gmail.com>
1 parent beb3655 commit b758051

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

doc/HELPERS.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7650,6 +7650,49 @@ postalCode = 2.5.4.17
76507650
streetAddress = 2.5.4.9
76517651
```
76527652
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+
76537696
For more information please look at these great explanations:
76547697
76557698
- [RFC 5280](https://tools.ietf.org/html/rfc5280)
@@ -7658,6 +7701,7 @@ For more information please look at these great explanations:
76587701
- [Your OpenSSL CSR command is out of date](https://expeditedsecurity.com/blog/openssl-csr-command/)
76597702
- [OpenSSL example configuration file](https://www.tbs-certificats.com/openssl-dem-server-cert.cnf)
76607703
- [Object Identifiers (OIDs)](https://www.alvestrand.no/objectid/)
7704+
- [openssl objects.txt](https://github.com/openssl/openssl/blob/master/crypto/objects/objects.txt)
76617705
76627706
###### List available EC curves
76637707

0 commit comments

Comments
 (0)