equal
deleted
inserted
replaced
658 if ask_overwrite(conf_filename) then |
658 if ask_overwrite(conf_filename) then |
659 return nil, conf_filename; |
659 return nil, conf_filename; |
660 end |
660 end |
661 local conf = openssl.config.new(); |
661 local conf = openssl.config.new(); |
662 conf:from_prosody(hosts, config, arg); |
662 conf:from_prosody(hosts, config, arg); |
|
663 show_message("Please provide details to include in the certificate config file."); |
|
664 show_message("Leave the field empty to use the default value or '.' to exclude the field.") |
663 for k, v in pairs(conf.distinguished_name) do |
665 for k, v in pairs(conf.distinguished_name) do |
664 local nv; |
666 local nv; |
665 if k == "commonName" then |
667 if k == "commonName" then |
666 v = arg[1] |
668 v = arg[1] |
667 elseif k == "emailAddress" then |
669 elseif k == "emailAddress" then |