# Reaching parse server from https fails with ERR\_SSL\_PROTOCOL\_ERROR

**URL:** <https://community.parseplatform.org/t/reaching-parse-server-from-https-fails-with-err-ssl-protocol-error/1606>\
**Category:** Parse Server 📡\
**Created:** [April 26, 2021, 4:09pm UTC](https://community.parseplatform.org/t/reaching-parse-server-from-https-fails-with-err-ssl-protocol-error/1606 "2021-04-26T16:09:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![acro](https://community.parseplatform.org/user_avatar/community.parseplatform.org/acro/32/615_2.png) [@acro](https://community.parseplatform.org/u/acro)\
**Post date:** [April 26, 2021, 4:09pm UTC](https://community.parseplatform.org/t/reaching-parse-server-from-https-fails-with-err-ssl-protocol-error/1606/1 "2021-04-26T16:09:00Z")

</div>

I have a parse server connected with my [quasar](https://quasar.dev/) 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](https://blog.filippo.io/mkcert-valid-https-certificates-for-localhost/), 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?

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [April 27, 2021, 5:18pm UTC](https://community.parseplatform.org/t/reaching-parse-server-from-https-fails-with-err-ssl-protocol-error/1606/2 "2021-04-27T17:18:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![acro](https://community.parseplatform.org/user_avatar/community.parseplatform.org/acro/32/615_2.png) [@acro](https://community.parseplatform.org/u/acro)\
**Post date:** [April 28, 2021, 7:01am UTC](https://community.parseplatform.org/t/reaching-parse-server-from-https-fails-with-err-ssl-protocol-error/1606/3 "2021-04-28T07:01:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [April 29, 2021, 5:11pm UTC](https://community.parseplatform.org/t/reaching-parse-server-from-https-fails-with-err-ssl-protocol-error/1606/4 "2021-04-29T17:11:54Z")

</div>

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