Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in AWS by (29.3k points)

I had uploaded my spring-boot backend code at ec2, which runs on the non-secure protocol(HTTP) and my angular code run on Cpanel hosting which has SSL on it and its running on https protocol but when my frontend code demand resource from backend code it shows the following error 

POST-https://ec2-3-81-210-160.compute-1.amazonaws.com:8080/login net:: ERR_SSL_PROTOCOL_ERROR

1 Answer

0 votes
by (50.2k points)
edited by

You cannot get the file on a non-secure protocol(i.e. http). Try running it on HTTPS protocol.

For enabling the SSl you need to provide the key(i.e private key). You can generate the key using -genkey.

For more information, check out this AWS Tutorial

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer

Browse Categories

...