MCPcopy Index your code
hub / github.com/pyload/pyload / conf_ssl

Method conf_ssl

module/setup.py:334–348  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

332 self.config["webinterface"]["template"] = self.ask(_("Template"), "modern", templates)
333
334 def conf_ssl(self):
335 print ""
336 print _("## SSL Setup ##")
337 print ""
338 print _("Execute these commands from pyLoad config folder to make ssl certificates:")
339 print ""
340 print "openssl genrsa -out ssl.key 4096"
341 print "openssl req -new -key ssl.key -out ssl.csr"
342 print "openssl req -days 36500 -x509 -key ssl.key -in ssl.csr > ssl.crt "
343 print ""
344 print _("If you're done and everything went fine, you can activate ssl now.")
345
346 ssl = self.ask(_("Activate SSL?"), self.yes, bool=True)
347 self.config["ssl"]["activated"] = ssl
348 self.config["webinterface"]["https"] = ssl
349
350 def set_user(self):
351 gettext.setpaths([os.path.join(os.sep, "usr", "share", "pyload", "locale"), None])

Callers 1

startMethod · 0.95

Calls 2

askMethod · 0.95
_Function · 0.50

Tested by

no test coverage detected