when i visit my domain,i get a 404 not found error,if i edit it as https://www.work-shine.com by hand,i get a NET::ERR_CERT_COMMON_NAME_INVALID .
In chrome,use F12,you get :
Certificate - missing
This site is missing a valid, trusted certificate (net::ERR_CERT_COMMON_NAME_INVALID).
My domain is:www.work-shine.com
I ran this command:
sudo certbot -nginx certonly
It produced this output:
/usr/lib/python3/dist-packages/ndg/httpsclient/subj_alt_name.py:22: UserWarning: Error importing pyasn1, subjectAltName check for SSL peer verification will be disabled. Import error is: No module named 'pyasn1’
warnings.warn(import_error_msg)
/usr/lib/python3/dist-packages/ndg/httpsclient/ssl_peer_verification.py:25: UserWarning: SubjectAltName support is disabled - check pyasn1 package installation to enable
warnings.warn(SUBJ_ALT_NAME_SUPPORT_MSG)
/usr/lib/python3/dist-packages/ndg/httpsclient/subj_alt_name.py:22: UserWarning: Error importing pyasn1, subjectAltName check for SSL peer verification will be disabled. Import error is: No module named 'pyasn1’
warnings.warn(import_error_msg)
usage:
certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] …
Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
certificate.
certbot: error: unrecognized arguments: –nginx
My web server is (include version):nginx/1.10.3 (Ubuntu)
The operating system my web server runs on is (include version):Ubuntu 16.04 x64
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know):yes xshell5
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):