# HG changeset patch # User Kim Alvefur # Date 1337011472 -7200 # Node ID 80ab7c50608dbfbfedd5e9cf55e1b6a7ec9881ec # Parent 6f5b53cb3565f886438e07f32d2d66d264ac9571 prosodyctl: Fix for generating certs with UTF-8 diff -r 6f5b53cb3565 -r 80ab7c50608d prosodyctl --- a/prosodyctl Mon May 14 17:58:51 2012 +0200 +++ b/prosodyctl Mon May 14 18:04:32 2012 +0200 @@ -640,6 +640,9 @@ 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");