Nuxt Js Laravel API Unable to verify first certificate

Viewed 83

Some Background about tech stack

We are using Vue.JS for front end and APIs are in Laravel. Frontend and backend are separate repositories. We have deployed it on Google Kubernetes Engine. We decided to move the frontend from Vue.Js to Nuxt.js

Problem:

When we hit any API from Nuxt.js, it throws below error

client.js?06a0:57 Error: unable to verify the first certificate

The websites which are on Vue.js have never gave this error and still works fine.

Things tried so far:

We have implemented https package but that results in docker container crashing in kubernetes. We have implemented new SSL certificates on our API domain by uploading SSL certificates but nothing seems to work so far.

Is it something that has to be configured from JS side of things or is it a problem with API domain SSL. Any help or comments appreciated at this point.

1 Answers

Turns out the issue was with SSL certificates. It was not configured correctly on GKE. I had to create valid certificate chain my self by combining two files given by SSL.

Related