Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/private-stub/files/test.py

Issue 5326469249105920: Issue 2497 - Set up web servers for share.adblockplus.org, youtube.adblockplus.me, facebook.adblock… (Closed)
Patch Set: Created May 12, 2015, 2:28 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(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 ])
OLDNEW

Powered by Google App Engine
This is Rietveld