prosodyctl
changeset 8123 3c5f0cb4381a
parent 8122 94a1fdaf12d1
child 8124 a33a87f13155
child 8125 e56a90168890
equal deleted inserted replaced
8122:94a1fdaf12d1 8123:3c5f0cb4381a
   895 			-- Private key matches public key in certificate
   895 			-- Private key matches public key in certificate
   896 		end
   896 		end
   897 	end
   897 	end
   898 	if imported[1] then
   898 	if imported[1] then
   899 		show_message("Imported certificate and key for hosts "..table.concat(imported, ", "));
   899 		show_message("Imported certificate and key for hosts "..table.concat(imported, ", "));
       
   900 		local ok, err = prosodyctl.reload();
       
   901 		if not ok and err ~= "not-running" then
       
   902 			show_message(error_messages[err]);
       
   903 		end
   900 	else
   904 	else
   901 		show_warning("No certificates imported :(");
   905 		show_warning("No certificates imported :(");
   902 		return 1;
   906 		return 1;
   903 	end
   907 	end
   904 end
   908 end