OLD | NEW |
(Empty) | |
| 1 import subprocess |
| 2 |
| 3 for host in ['adblockplus.org', 'share.adblockplus.org', 'youtube.adblockplus.me
', 'facebook.adblockplus.me', 'acceptableads.org', 'testpages.adblockplus.org']: |
| 4 filename = host.replace("www.", "") |
| 5 subprocess.check_call([ |
| 6 'openssl', 'req', |
| 7 '-x509', '-days', '3650', |
| 8 '-subj', '/C=DE/ST=Nordrhein-Westfalen/L=Cologne/O=Eyeo GmbH/CN=%s' % host, |
| 9 '-out', '%s_sslcert.pem' % filename, |
| 10 '-newkey', 'rsa:2048', '-sha256', '-nodes', '-keyout', '%s_sslcert.key' % fi
lename |
| 11 ]) |
OLD | NEW |