pull/109/head
midoks 5 years ago
parent da4f9b6bb0
commit 65467c2387
  1. 2
      class/core/common.py
  2. 2
      class/core/config_api.py

@ -62,6 +62,8 @@ def initInitD():
mw.writeFile(script_bin, content)
mw.execShell('chmod +x ' + script_bin)
mw.setHostAddr(mw.getLocalIp())
if not mw.isAppleSystem():
initd_bin = '/etc/init.d/mw'
if not os.path.exists(initd_bin):

@ -264,7 +264,7 @@ class config_api:
key.generate_key(OpenSSL.crypto.TYPE_RSA, 2048)
cert = OpenSSL.crypto.X509()
cert.set_serial_number(0)
cert.get_subject().CN = '120.27.27.98'
cert.get_subject().CN = mw.getLocalIp()
cert.set_issuer(cert.get_subject())
cert.gmtime_adj_notBefore(0)
cert.gmtime_adj_notAfter(86400 * 3650)

Loading…
Cancel
Save