| Index: modules/private-stub/files/test.py |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/modules/private-stub/files/test.py |
| @@ -0,0 +1,11 @@ |
| +import subprocess |
| + |
| +for host in ['adblockplus.org', 'share.adblockplus.org', 'youtube.adblockplus.me', 'facebook.adblockplus.me', 'acceptableads.org', 'testpages.adblockplus.org']: |
| + filename = host.replace("www.", "") |
| + subprocess.check_call([ |
| + 'openssl', 'req', |
| + '-x509', '-days', '3650', |
| + '-subj', '/C=DE/ST=Nordrhein-Westfalen/L=Cologne/O=Eyeo GmbH/CN=%s' % host, |
| + '-out', '%s_sslcert.pem' % filename, |
| + '-newkey', 'rsa:2048', '-sha256', '-nodes', '-keyout', '%s_sslcert.key' % filename |
| + ]) |