From 0e5cf44aad70a894851af63d56d10ce2cc4e29b6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 14 May 2012 18:04:32 +0200 Subject: prosodyctl: Fix for generating certs with UTF-8 --- prosodyctl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index 6e112ccf..1819ddd1 100755 --- a/prosodyctl +++ b/prosodyctl @@ -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"); -- cgit v1.2.3