changeset 6038 | b3ceb7627e27 |
parent 5809 | be997c6a69be |
parent 6035 | 1b5ca55bf895 |
child 6062 | 6cc6b4d407df |
--- a/prosodyctl Sat Mar 22 14:53:17 2014 +0100 +++ b/prosodyctl Tue Mar 25 19:16:38 2014 +0100 @@ -687,7 +687,12 @@ conf.distinguished_name[k] = nv ~= "." and nv or nil; end end - local conf_file = io.open(conf_filename, "w"); + local conf_file, err = io.open(conf_filename, "w"); + if not conf_file then + show_warning("Could not open OpenSSL config file for writing"); + show_warning(err); + os.exit(1); + end conf_file:write(conf:serialize()); conf_file:close(); print("");