ssl - Nginx self-signed certificate isn't working on a Vagrant VM -
ssl - Nginx self-signed certificate isn't working on a Vagrant VM -
we're running vagrant vms here. on vm, installed nginx. created self-signed certificate. when @ certificate's innards, see:
subject= /c=us/st=in/l=mycity/o=my company/ou=myproduct/cn=silly.com/emailaddress=info@silly.com
this sanitized. believe certificate supposed work silly.com
. interpret correctly?
on laptop, added hostfile entry map silly.com appropriate ip address.
on vm, added next configuration /etc/nginx/conf.d/default.conf
# https server server { hear 443; server_name silly.com; ssl on; ssl_certificate /etc/nginx/ssl/silly.crt; ssl_certificate_key /etc/nginx/ssl/silly.key; }
when browse site, port 80 http screen displayed properly. when browse https://silly.com
, however, https portion rejected , non-ssl screen displayed. (i think clicked 'proceed' while experimenting...)
i commented nginx.conf file lines relating port 80. restarted nginx. same success on port 80 , failure on port 443 did before.
i tested config file nginx -t
. reported no errors.
would offer debugging tip, please?
ssl nginx vagrant
Comments
Post a Comment