openssl req -newkey rsa:2048 \ -new -nodes -x509 \ -days 3650 \ -out snitest.com.cert \ -keyout snitest.com.key \ -subj "/CN=snitest.com" \ -addext "subjectAltName = DNS:snitest.com" openssl req -newkey rsa:2048 \ -new -nodes -x509 \ -days 3650 \ -out www.snitest.com.cert \ -keyout www.snitest.com.key \ -subj "/CN=www.snitest.com" \ -addext "subjectAltName = DNS:www.snitest.com" openssl req -newkey rsa:2048 \ -new -nodes -x509 \ -days 3650 \ -out snitest.org.cert \ -keyout snitest.org.key \ -subj "/CN=snitest.org" \ -addext "subjectAltName = DNS:snitest.org" openssl req -newkey rsa:2048 \ -new -nodes -x509 \ -days 3650 \ -out uppercase_wildcard.www.snitest.com.cert \ -keyout uppercase_wildcard.www.snitest.com.key \ -subj "/CN=FOO.WWW.SNITEST.COM" \ -addext "subjectAltName = DNS:*.WWW.SNITEST.COM" openssl req -newkey rsa:2048 \ -new -nodes -x509 \ -days 3650 \ -out wildcard.www.snitest.com.cert \ -keyout wildcard.www.snitest.com.key \ -subj "/CN=*.www.snitest.com" \ -addext "subjectAltName = DNS:*.www.snitest.com" openssl req -newkey rsa:2048 \ -new -nodes -x509 \ -days 3650 \ -out wildcard.snitest.com.cert \ -keyout wildcard.snitest.com.key \ -subj "/CN=*.snitest.com" \ -addext "subjectAltName = DNS:*.snitest.com"