hostname = args.shift()
port = args.shift()
- if port.kind_of?(Array)
- ports = port
+ if port.kind_of?(String)
+ ports = port.split()
else
- ports = [ port ]
+ ports = port
end
res = []
- res << "; cert #{certfile} for #{hostname}:#{port}."
- ports.each{ |port|
+ res << "; cert #{certfile} for #{hostname}:#{ports}."
+ ports.each { |port|
cf = certfile
if File.exist?(cf)
cmd = ['swede', 'create', '--usage=3', '--selector=1', '--mtype=1', '--certificate', cf, '--port', port.to_s, hostname]