In this post we will learn how to enable HTTPS to secure our site using cPanel hosting platform. Having HTTPS enabled on your site is critical when dealing with credentials, personal information or sensitive user information. Otherwise, your credentials are sent in plain text from your computer to the hosting server when you submit the login form. Given that scenario, anybody “listening” or sniffing the conversation could steal credentials and hack the site.
Surfing around I have noticed several cases in which developers encounter a no ContextLoaderListener registered error after adding Spring Security to their application.
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
This small tutorial provides a small three-item checklist focused on how to fix the no ContextLoaderListener registered error.
In a previous tutorial we dealt with RSA key generation and how to save them to PEM files in Java. In this tutorial we will learn how to read RSA keys from PEM files that we previously created. Once again, we will make use of the BouncyCastle library to take benefit from its PEM related classes, such as PemObject and PemReader. [Read more…]
In this tutorial we will learn how to generate RSA keys in Java and write them to PEM files. BouncyCastle will be used to do this task. BouncyCastle is a library that consist, among others, of a JCE/JCA provider (Java Cryptography Extension/Java Cryptography Architecture) and a set of classes to handle PEM files. [Read more…]