You have to use the HTTP protocol instead, as you don't need to use a SSL Certificate.
HTTP
SSL Certificate
Change it from:
https://localhost:8080
To:
http://localhost:8080
Then you should not have the error again.
if you are opening in 'localhost' , then you have to provide http, because the local computer cannot provide a secure connection(https).so, try this....
This is normal behavior because you don't use the https protocol.