summaryrefslogtreecommitdiffstats
path: root/certs/localhost.conf
diff options
context:
space:
mode:
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