Where to find cert.key and cert.pem?

for this

i need find

// src/index.js
const fs = require('fs');

// Add this
Webhook.ssl = {
   key: fs.readFileSync('/path/to/cert.key'),
   cert: fs.readFileSync('/path/to/cert.pem'),

Try this location -


The files should be where @amiedema mentioned but keep this in mind: the certificates may only be accessible to root user, as you can guess for security reasons. If your webapp is running as a non-root user, which it certainly is if you are using Cleaver, you won’t be able to read those ssl certificates from within an app. In this case, you can copy them to some other paths and change the ownership of those files, but I highly discourage you to do it as you’ll be exposing your private key to others.

We only have fullchain.pem and privkey.pem files for ssl purpose. I’m not sure what Jovo needs and I’m sorry we cannot help much setting it up as we don’t support Jovo officially. Supporting all kinds of NodeJS frameworks would be impossible for us. You may want to search how to convert .pem file to .key file and see if that’s any helpful. I’m sure people have run into the same issue elsewhere.

If it is related to nginx site error, that’s where the log would go. If it has 0 logs that probably means there is no access error.


it’s not an jovo issue, but how to find and start index.js with ssl.
it will commun for any project in my opinion

in alexa console, I set :


in webroot i set pem and key generate with this command

openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes

in index.js i change for this

  Webhook.ssl = {
    key: fs.readFileSync('/home/cleaver/sapx.cleancode.ovh/current/cert.key'),
    cert: fs.readFileSync('/home/cleaver/sapx.cleancode.ovh/current/cert.pem'),

and start test failed
current is the rignt path for access ?

Sorry, but I don’t know how to help with this issue. We support nginx proxy SSL but no idea how to set it inside the site itself. It looks like Cleaver may not work for you.

it easy, tell me if using “current” in path can work ?

i try to connect to server and launch manually

So i dont get, why in Hook it’s show OK !!! but really it now work ?
It’s issue inside cleaver in my opinion, it shouldnt display success deployment

if i have receive an error, i will know where to search, but when success …

    leaver@raspy-union:~/cleancode.ovh/current/src$ node index.js --webhook
  INFO: Local FileDb (db-filedb) ----------------------------------------
  /home/cleaver/cleancode.ovh/releases/20200904095441/db/db.json created!
  More Info: >> https://www.jovo.tech/docs/databases/file-db
  Error -----------------------------------------------------------------
  fs is not defined
  ReferenceError: fs is not defined
      at Object.<anonymous> (/home/cleaver/cleancode.ovh/releases/20200904095441/src/index.js:25:10)
      at Module._compile (internal/modules/cjs/loader.js:1138:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
      at Module.load (internal/modules/cjs/loader.js:986:32)
      at Function.Module._load (internal/modules/cjs/loader.js:879:14)
      at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
      at internal/main/run_main_module.js:17:47