Mobile app version of vmapp.org
Login or Join
Ravi8258870

: Keep a Servlet/JSP web site always on SSL? How to I keep a site always on SSL with padlock symbol always exists. Is there any way to optimize the page for SSL in JSP and Servlets ? Just

@Ravi8258870

Posted in: #Https #Security

How to I keep a site always on SSL with padlock symbol always exists. Is there any way to optimize the page for SSL in JSP and Servlets ?

Just tell about jsp and servlet optimization so answer do not make long discussion

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Ravi8258870

2 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

You can tell if your site is in secure mode using ServletRequest.isSecure(). If you find that the request is not secure, then issue a redirect to the secure version using HttpServletResponse.sendRedirect(location).

As far as optimizing for HTTPS, the only thing that I typically do is make sure that external resources (images, JavaScript, CSS) are all fetched securely. If you try to load HTTP resources into a HTTPS page, browsers will complain.

10% popularity Vote Up Vote Down


 

@Yeniel560

I am not sure what exactly you are asking but here is my suggestion based on what i understand from your question.

To keep your website always on SSL, you need to install an SSL certificate on your server by generating CSR for your domain.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme