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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
+ ])

Powered by Google App Engine
This is Rietveld