$ openssl req -new -x509 -nodes -sha1 -days 365 -key host.key -out host.cert2 -batch -config config [ req ] distinguished_name = req_dn prompt = no [ req_dn ] C = FR O = zmws.com CN = mywebsite.com emailAddress = xavier@xgarreau.org $ openssl verify host.cert2 host.cert2: /C=FR/O=zmws.com/CN=mywebsite.com/emailAddress=xavier@xgarreau.org error 18 at 0 depth lookup:self signed certificate OK