I built a website and then deploy it on the server. But when i open the url then i get the following error

But when i click on “Continue to this website” , then i get the following message

How can i get rid of both these messages. I mean when i open my website then it get open normally instead of first showing certificate error, and also how can i overcome the https error warning message.
Thanks
If you configured your server certificate correctly, the first message should disappear. In a development environment it should no bother you as long as it works in production.
Glassfish comes with an invalid certificate as default. You need to replace this by a valid one.
The second message indicates that you include content on your page that doesn’t come over a secured connection (maybe an include/resource with the url
http://instead ofhttps://). Check if your included resources are delivered via https as well.