summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbeck <>1999-03-16 07:25:13 +0000
committerbeck <>1999-03-16 07:25:13 +0000
commit27393bb10cc7b89961602bda4b6a0f92487a8bb5 (patch)
treee0a82d0d7185a2f7f749803e3328196b0d437fd1 /src
parent33bdaa3a00a8b55e1a86100fcb7419c4c3491269 (diff)
downloadopenbsd-27393bb10cc7b89961602bda4b6a0f92487a8bb5.tar.gz
openbsd-27393bb10cc7b89961602bda4b6a0f92487a8bb5.tar.bz2
openbsd-27393bb10cc7b89961602bda4b6a0f92487a8bb5.zip
Add install of reasonable default ssleay.cnf file
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/Makefile6
-rw-r--r--src/lib/libssl/ssleay.cnf65
2 files changed, 71 insertions, 0 deletions
diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile
index 38f2b0ae94..683e40e63b 100644
--- a/src/lib/libssl/Makefile
+++ b/src/lib/libssl/Makefile
@@ -8,4 +8,10 @@ SUBDIR= crypto-patent ssl-patent
8SUBDIR= crypto ssl 8SUBDIR= crypto ssl
9.endif 9.endif
10 10
11distribution:
12 @echo "Installing ${DESTDIR}/etc/ssl/lib/ssleay.cnf"; \
13 ${INSTALL} ${INSTALL_COPY} -g ${BINGRP} -m 444 \
14 ${.CURDIR}/ssleay.cnf ${DESTDIR}/etc/ssl/lib/ssleay.cnf;
15
11.include <bsd.subdir.mk> 16.include <bsd.subdir.mk>
17
diff --git a/src/lib/libssl/ssleay.cnf b/src/lib/libssl/ssleay.cnf
new file mode 100644
index 0000000000..c6480ee465
--- /dev/null
+++ b/src/lib/libssl/ssleay.cnf
@@ -0,0 +1,65 @@
1#
2# SSLeay example configuration file.
3# This is mostly being used for generation of certificate requests.
4#
5
6RANDFILE = /dev/arandom
7
8####################################################################
9[ req ]
10default_bits = 1024
11default_keyfile = privkey.pem
12distinguished_name = req_distinguished_name
13attributes = req_attributes
14
15[ req_distinguished_name ]
16countryName = Country Name (2 letter code)
17#countryName_default = AU
18countryName_min = 2
19countryName_max = 2
20
21stateOrProvinceName = State or Province Name (full name)
22#stateOrProvinceName_default = Some-State
23
24localityName = Locality Name (eg, city)
25
260.organizationName = Organization Name (eg, company)
27#0.organizationName_default = Internet Widgits Pty Ltd
28
29# we can do this but it is not needed normally :-)
30#1.organizationName = Second Organization Name (eg, company)
31#1.organizationName_default = CryptSoft Pty Ltd
32
33organizationalUnitName = Organizational Unit Name (eg, section)
34#organizationalUnitName_default =
35
36commonName = Common Name (eg, fully qualified host name)
37commonName_max = 64
38
39emailAddress = Email Address
40emailAddress_max = 64
41
42[ req_attributes ]
43challengePassword = A challenge password
44challengePassword_min = 4
45challengePassword_max = 20
46
47unstructuredName = An optional company name
48
49[ x509v3_extensions ]
50
51nsCaRevocationUrl = http://www.cryptsoft.com/ca-crl.pem
52nsComment = "This is a comment"
53
54# under ASN.1, the 0 bit would be encoded as 80
55nsCertType = 0x40
56
57#nsBaseUrl
58#nsRevocationUrl
59#nsRenewalUrl
60#nsCaPolicyUrl
61#nsSslServerName
62#nsCertSequence
63#nsCertExt
64#nsDataType
65