summaryrefslogtreecommitdiffstats
path: root/certs/localhost.conf
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-10-06 05:53:11 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-10-06 05:53:11 +0200
commitb794f84da1aaf446a3965f9b9363f997b3183872 (patch)
treed59f80c7587b8748b79cdeecfb112892e7ccf083 /certs/localhost.conf
downloadiperouter-b794f84da1aaf446a3965f9b9363f997b3183872.tar.gz
iperouter-b794f84da1aaf446a3965f9b9363f997b3183872.tar.bz2
iperouter-b794f84da1aaf446a3965f9b9363f997b3183872.tar.xz
iperouter-b794f84da1aaf446a3965f9b9363f997b3183872.zip
Initial configuration
Diffstat (limited to 'certs/localhost.conf')
-rw-r--r--certs/localhost.conf31
1 files changed, 31 insertions, 0 deletions
diff --git a/certs/localhost.conf b/certs/localhost.conf
new file mode 100644
index 0000000..02cfc8b
--- /dev/null
+++ b/certs/localhost.conf
@@ -0,0 +1,31 @@
+[req]
+default_bits = 2048
+default_keyfile = localhost.key
+distinguished_name = req_distinguished_name
+req_extensions = req_ext
+x509_extensions = v3_ca
+
+[req_distinguished_name]
+countryName = Country Name (2 letter code)
+countryName_default = DE
+stateOrProvinceName = State or Province Name (full name)
+stateOrProvinceName_default = BW
+localityName = Locality Name (eg, city)
+localityName_default = Karlsruhe
+organizationName = Organization Name (eg, company)
+organizationName_default = IPE
+organizationalUnitName = organizationalunit
+organizationalUnitName_default = PDV
+commonName = Common Name (e.g. server FQDN or YOUR name)
+commonName_default = localhost
+commonName_max = 64
+
+[req_ext]
+subjectAltName = @alt_names
+
+[v3_ca]
+subjectAltName = @alt_names
+
+[alt_names]
+DNS.1 = localhost
+DNS.2 = 127.0.0.1