Comment to 'Jot Messenger'
Comment to Jot Messenger
  • The box has a domain name attached to it via DNS. I have a live website accessible to the world on it. The certs are created for the domain name and reside on the server. All of my sites on this server and TMD have certs that are current and each cert is assigned to its own domain. 

    Output of sudo lsof -i:22 is below:

    COMMAND  PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
    sshd 1244 root 3u IPv4 17331553 0t0 TCP *:ssh (LISTEN)
    sshd 1244 root 4u IPv6 17331555 0t0 TCP *:ssh (LISTEN)
    I have tried entering:

    https://externalip:5100

    https://ooloo.me:5100

    https://siteonjotserver.com:5100

    https://localhost:5100

    https://127.0.0.1:5100

    I have tried those 3 different fields many ways but there is only one correct way and that is the direct path to the certs. Mine is /etc/ss/certs for the root and /etc/ss/certs/certificate.cert for the cert and /etc/ssl/certs/certiicatekey.cert for the key.

    In regards to app.js, I have sudo forever start app.js as well as sudo forever -w --watchDirectory /etc/ssl/certs start app.js

    sudo forever -w --watchDirectory=/etc/ssl/certs start app.js
    warn: --minUptime not set. Defaulting to: 1000ms
    warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
    info: Forever processing file: app.js
    Not sure why, but now when I do forever list, it's showing stopped

    info:    Forever processes running
    data: uid command script forever pid id logfile uptime
    data: [0] r8D1 /usr/bin/node app.js 29028 29045 /home/jmonroe/.forever/r8D1.log STOPPED

    • Hello,

      If you define the full path to the files, it will not work, because path to the root will be added as prefix to the cert files:

      Example:
      1) In this case it will work:

      "root":"/var/www/vhosts/yourwebsite.com/jot-server/ssl",
      "cert":"cert.crt",
      "key":"cert.crt",

      2) will not work:

      "root":"/var/www/vhosts/yourwebsite.com/jot-server/ssl",
      "cert":"/var/www/vhosts/yourwebsite.com/jot-server/ssl/cert.crt",
      "key":"/var/www/vhosts/yourwebsite.com/jot-server/ssl/cert.crt",

      Please remove previously log.log file and then run Jot Server using forever. If there is any problems you will see log.log again with errors.

      If everything is ok and server is running then you need to check browser console on main messenger page, if there is connection problem, then you need to check the port using telnet command.