mirror of
https://github.com/square/certigo.git
synced 2024-04-21 12:32:40 +00:00
Make a test cert with a custom OID in the DN
This commit is contained in:
+9
-1
@@ -1,6 +1,7 @@
|
||||
TARGETS = \
|
||||
example-root example-leaf example-sha1 example-md5 example-root-bad-ku \
|
||||
example-bad-serial example-small-key example-expired example-elliptic-sha1
|
||||
example-bad-serial example-small-key example-expired example-elliptic-sha1 \
|
||||
example-custom-oid
|
||||
|
||||
all: \
|
||||
$(addsuffix .crt,$(TARGETS)) \
|
||||
@@ -72,3 +73,10 @@ example-elliptic-sha1.key:
|
||||
|
||||
example-elliptic-sha1.crt: example-elliptic-sha1.csr
|
||||
openssl x509 -req -in $< -signkey $(@:.crt=.key) -out $@ -days 2500 -extfile openssl.ext -extensions leaf
|
||||
|
||||
# Custom OID
|
||||
example-custom-oid.csr: example-custom-oid.key
|
||||
openssl req -new -config example-custom-oid.conf -key $< -out $@
|
||||
|
||||
example-custom-oid.crt: example-custom-oid.csr
|
||||
openssl x509 -req -sha256 -in $< -signkey $(@:.crt=.key) -out $@ -days 2500 -extfile openssl.ext -extensions leaf
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
oid_section = OIDs
|
||||
|
||||
[ req ]
|
||||
distinguished_name = dn
|
||||
prompt = no
|
||||
|
||||
[ OIDs ]
|
||||
CustomTestOID=1.3.6.1.4.1.36914
|
||||
|
||||
[ dn ]
|
||||
CN = example-custom-oids
|
||||
CustomTestOID = example
|
||||
Reference in New Issue
Block a user