sudo mkdir -p /opt/hosts_daemon/ssl sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 \ -keyout /opt/hosts_daemon/ssl/hosts_daemon.key \ -out /opt/hosts_daemon/ssl/hosts_daemon.crt \ -subj "/C=PL/ST=WLKP/L=POZ/O=linuxiarz.pl/OU=hostsDaemon/CN=0.0.0.0"