How can I switch from http https for webmail?

I've tried ./bin/zmtlsctl https and restarted tomcat but this is the output i get

./bin/zmtlsctl: line 33: zmhostname: command not found
./bin/zmtlsctl: line 91: zmprov: command not found