appliance_console certificate improvements

- properly chown the key (vs the certificate)
- chmod cert files
- better feedback to the user for errors
- rubocop errors