diff options
author | Kim Alvefur <zash@zash.se> | 2015-10-11 20:03:00 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-10-11 20:03:00 +0200 |
commit | ec268ace11395bb845a401852b9f49918947ae52 (patch) | |
tree | 38ce0d5d3bebeb2cc1e63965c9492ee0a8526dc9 /util/openssl.lua | |
parent | 6c79c243796faaa674eb591a15257a965b9f30ae (diff) | |
parent | 7835e7573e12cc36b70110705dd7b5571d26fbb9 (diff) | |
download | prosody-ec268ace11395bb845a401852b9f49918947ae52.tar.gz prosody-ec268ace11395bb845a401852b9f49918947ae52.zip |
Merge 0.10->trunk
Diffstat (limited to 'util/openssl.lua')
-rw-r--r-- | util/openssl.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/util/openssl.lua b/util/openssl.lua index ef3fba96..39fe99d6 100644 --- a/util/openssl.lua +++ b/util/openssl.lua @@ -18,8 +18,8 @@ function config.new() return setmetatable({ req = { distinguished_name = "distinguished_name", - req_extensions = "v3_extensions", - x509_extensions = "v3_extensions", + req_extensions = "certrequest", + x509_extensions = "selfsigned", prompt = "no", }, distinguished_name = { @@ -31,12 +31,16 @@ function config.new() commonName = "example.com", emailAddress = "xmpp@example.com", }, - v3_extensions = { + certrequest = { basicConstraints = "CA:FALSE", keyUsage = "digitalSignature,keyEncipherment", extendedKeyUsage = "serverAuth,clientAuth", subjectAltName = "@subject_alternative_name", }, + selfsigned = { + basicConstraints = "CA:TRUE", + subjectAltName = "@subject_alternative_name", + }, subject_alternative_name = { DNS = {}, otherName = {}, |