diff options
author | Kim Alvefur <zash@zash.se> | 2012-05-14 18:04:32 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-05-14 18:04:32 +0200 |
commit | 0774f793f1a2aaa5f2c230b4bb21442f03bc58dd (patch) | |
tree | deb2b837fa2b7313f92175deb122cc28a4d11322 /prosodyctl | |
parent | f1e8114ae5277835cf1bc980d20fb71197ab536b (diff) | |
download | prosody-0774f793f1a2aaa5f2c230b4bb21442f03bc58dd.tar.gz prosody-0774f793f1a2aaa5f2c230b4bb21442f03bc58dd.zip |
prosodyctl: Fix for generating certs with UTF-8
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -640,6 +640,9 @@ function cert_commands.config(arg) end nv = show_prompt(("%s (%s):"):format(k, nv or v)); nv = (not nv or nv == "") and v or nv; + if nv:find"[\192-\252][\128-\191]+" then + conf.req.string_mask = "utf8only" + end conf.distinguished_name[k] = nv ~= "." and nv or nil; end local conf_file = io.open(conf_filename, "w"); |