def setup_module(module): print("setup_module: %s" % module.__name__) TestEnv.init() HttpdConf().add_vhost_test1().add_vhost_test2().add_vhost_noh2( ).start_vhost( TestEnv.HTTPS_PORT, "test3", docRoot="htdocs/test1", withSSL=True ).add_line(" Protocols h2 http/1.1" ).add_line(" Header unset Upgrade" ).end_vhost( ).install() # the dir needs to exists for the configuration to have effect TestEnv.mkpath("%s/htdocs/ssl-client-verify" % TestEnv.WEBROOT) assert TestEnv.apache_restart() == 0
def setup_module(module): print("setup_module: %s" % module.__name__) TestEnv.init() HttpdConf().start_vhost(TestEnv.HTTPS_PORT, "ssl", withSSL=True).add_line( " Protocols h2 http/1.1" ).add_line(" SSLOptions +StdEnvVars").add_line(" ").add_line( " <Location /h2only.html>" ).add_line(" Require expr \"%{HTTP2} == 'on'\"").add_line( " </Location>").add_line(" <Location /noh2.html>").add_line( " Require expr \"%{HTTP2} == 'off'\"").add_line( " </Location>").end_vhost().install() # the dir needs to exists for the configuration to have effect TestEnv.mkpath("%s/htdocs/ssl-client-verify" % TestEnv.WEBROOT) assert TestEnv.apache_restart() == 0
def setup_module(module): print("setup_module: %s" % module.__name__) TestEnv.init() HttpdConf( ).start_vhost( TestEnv.HTTPS_PORT, "ssl", withSSL=True ).add_line(" Protocols h2 http/1.1" ).add_line(" SSLOptions +StdEnvVars" ).add_line(" " ).add_line(" <Location /h2only.html>" ).add_line(" Require expr \"%{HTTP2} == 'on'\"" ).add_line(" </Location>" ).add_line(" <Location /noh2.html>" ).add_line(" Require expr \"%{HTTP2} == 'off'\"" ).add_line(" </Location>" ).end_vhost( ).install() # the dir needs to exists for the configuration to have effect TestEnv.mkpath("%s/htdocs/ssl-client-verify" % TestEnv.WEBROOT) assert TestEnv.apache_restart() == 0
def setup_module(module): print("setup_module: %s" % module.__name__) TestEnv.init() HttpdConf().add_vhost_test1().add_vhost_test2().add_vhost_noh2( ).start_vhost( TestEnv.HTTPS_PORT, "test3", docRoot="htdocs/test1", withSSL=True ).add_line(" Protocols h2 http/1.1" ).add_line(" Header unset Upgrade" ).end_vhost( ).start_vhost( TestEnv.HTTP_PORT, "test1b", docRoot="htdocs/test1", withSSL=False ).add_line(" Protocols h2c http/1.1" ).add_line(" H2Upgrade off" ).add_line(" <Location /006.html>" ).add_line(" H2Upgrade on" ).add_line(" </Location>" ).end_vhost( ).install() # the dir needs to exists for the configuration to have effect TestEnv.mkpath("%s/htdocs/ssl-client-verify" % TestEnv.WEBROOT) assert TestEnv.apache_restart() == 0
def setup_module(module): print("setup_module: %s" % module.__name__) TestEnv.init() HttpdConf( ).add_line(" SSLCipherSuite ECDHE-RSA-AES256-GCM-SHA384").add_line( " <Directory \"%s/htdocs/ssl-client-verify\">" % TestEnv.WEBROOT).add_line(" Require all granted").add_line( " SSLVerifyClient require" ).add_line(" SSLVerifyDepth 0").add_line( " </Directory>").start_vhost( TestEnv.HTTPS_PORT, "ssl", withSSL=True).add_line(" Protocols h2 http/1.1").add_line( " " ).add_line(" <Location /renegotiate/cipher>").add_line( " SSLCipherSuite ECDHE-RSA-CHACHA20-POLY1305" ).add_line(" </Location>").add_line( " <Location /renegotiate/verify>").add_line( " SSLVerifyClient require").add_line( " </Location>").end_vhost().install() # the dir needs to exists for the configuration to have effect TestEnv.mkpath("%s/htdocs/ssl-client-verify" % TestEnv.WEBROOT) TestEnv.mkpath("%s/htdocs/renegotiate/cipher" % TestEnv.WEBROOT) assert TestEnv.apache_restart() == 0
def setup_module(module): print("setup_module: %s" % module.__name__) TestEnv.init() HttpdConf( ).add_line(" SSLCipherSuite ECDHE-RSA-AES256-GCM-SHA384" ).add_line(" <Directory \"%s/htdocs/ssl-client-verify\">" % TestEnv.WEBROOT ).add_line(" Require all granted" ).add_line(" SSLVerifyClient require" ).add_line(" SSLVerifyDepth 0" ).add_line(" </Directory>" ).start_vhost( TestEnv.HTTPS_PORT, "ssl", withSSL=True ).add_line(" Protocols h2 http/1.1" ).add_line(" " ).add_line(" <Location /renegotiate/cipher>" ).add_line(" SSLCipherSuite ECDHE-RSA-CHACHA20-POLY1305" ).add_line(" </Location>" ).add_line(" <Location /renegotiate/err-doc-cipher>" ).add_line(" SSLCipherSuite ECDHE-RSA-CHACHA20-POLY1305" ).add_line(" ErrorDocument 403 /forbidden.html" ).add_line(" </Location>" ).add_line(" <Location /renegotiate/verify>" ).add_line(" SSLVerifyClient require" ).add_line(" </Location>" ).add_line(" <Directory \"%s/htdocs/sslrequire\">" % TestEnv.WEBROOT ).add_line(" SSLRequireSSL" ).add_line(" </Directory>" ).add_line(" <Directory \"%s/htdocs/requiressl\">" % TestEnv.WEBROOT ).add_line(" Require ssl" ).add_line(" </Directory>" ).end_vhost( ).install() # the dir needs to exists for the configuration to have effect TestEnv.mkpath("%s/htdocs/ssl-client-verify" % TestEnv.WEBROOT) TestEnv.mkpath("%s/htdocs/renegotiate/cipher" % TestEnv.WEBROOT) TestEnv.mkpath("%s/htdocs/sslrequire" % TestEnv.WEBROOT) TestEnv.mkpath("%s/htdocs/requiressl" % TestEnv.WEBROOT) assert TestEnv.apache_restart() == 0