(self, env, domains=None, add_lines="", ssl_stapling=False)
| 38 | env.apache_stop() |
| 39 | |
| 40 | def configure_httpd(self, env, domains=None, add_lines="", ssl_stapling=False): |
| 41 | if not isinstance(domains, list): |
| 42 | domains = [domains] if domains else [] |
| 43 | conf = MDConf(env) |
| 44 | conf.add(""" |
| 45 | <IfModule tls_module> |
| 46 | LogLevel tls:trace4 |
| 47 | </IfModule> |
| 48 | <IfModule ssl_module> |
| 49 | LogLevel ssl:trace4 |
| 50 | </IfModule> |
| 51 | """) |
| 52 | if ssl_stapling: |
| 53 | conf.add(""" |
| 54 | <IfModule ssl_module> |
| 55 | SSLUseStapling On |
| 56 | SSLStaplingCache shmcb:stapling_cache(128000) |
| 57 | </IfModule> |
| 58 | """) |
| 59 | conf.add(add_lines) |
| 60 | for domain in domains: |
| 61 | conf.add_md([domain]) |
| 62 | conf.add_vhost(domain) |
| 63 | return conf |
| 64 | |
| 65 | # MD with stapling on/off and mod_ssl stapling off |
| 66 | # expect to only see stapling response when MD stapling is on |
no test coverage detected