Reaching parse server from https fails with ERR_SSL_PROTOCOL_ERROR

I have a parse server connected with my quasar framework. I have some problems connecting to the server with https. Http works fine though.

Running http works without any problems:

quasar.config.js

// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
devServer: {
  https: false,
  port: 8080,
  open: true, // opens browser window automatically
},

boot/parse.js

import Vue from "vue";
let parse = require("parse");

parse.serverURL = "http://XXX.XXX.XXX.XXX:XXXX/parse";

parse.initialize(
  "mylogin","mypassword"
);

Vue.prototype.$parse = parse;

But as soon as I switch to https (by deploying my dev server using mkcert, it fails:

quasar.config.js

// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
devServer: {
  https: true,
  key: fs.readFileSync('./src/certificates/localkey.pem'),
  cert: fs.readFileSync('./src/certificates/localcrt.pem'),

  port: 8080,
  open: true, // opens browser window automatically
},

boot/parse.js

import Vue from "vue";
let parse = require("parse");

parse.serverURL = "https://XXX.XXX.XXX.XXX:XXXX/parse";

parse.initialize(
  "mylogin","mypassword"
);

Vue.prototype.$parse = parse;

With the errorcode:

net::ERR_SSL_PROTOCOL_ERROR

Error: 100 XMLHttpRequest failed: “Unable to connect to the Parse API”

How can I fix this?

Are the other https requests working and only the ones to parse server failing?

yes that is correct. I suspect the parseserver is not set correctly for https. Not sure how to do it though. It is hosted on digital ocean.

Maybe if you share the code that you are using to run Parse Server someone can try to help.