Play Framework for https SSL Certificate

Play Framework for https SSL Certificate

Play framework helps to make website building seem easier. It also assists in building web applications with the use of Scala and Java. The Play framework is based on a stateless, lightweight and web friendly architecture. The framework is built on Akka, and it provides predictable and minimal resource consumption, including memory, threads and CPU, in order to achieve highly scalable applications.

Furthermore, the Play is web developer friendly, allowing you to easily make changes and when you’re done, you can simply hit refresh. All you basically need is a browser as well as a text editor. Here is an article that will talk more about the Play Framework for https SSL Certificate.

Configuring SSL Certificate with Play Framework

Configuring the SSL Certificate with Play Framework might seem a bit confusing at first. In fact, a lot of web designers have confessed to have spent several hours in trying to get the work done. But the problem could be because you have not generated the Certificate Request (CSR) on the key tool. When this happens, you could encounter this error when you try to access Play framework on an https URL – “   javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated”.

This is why you should be very careful with the process. The problem can also happen if the key store you have created and imported on the SSL Certificate does not have the public key that was used for the Certificate Request (CSR).

Generating SSL Certificate with GoDaddy and Installing at Play Framework

Refer below for the easiest and fastest way of generating an SSL Certificate with GoDaddy and then installing it with the Play Framework version 2.1 plus.

  • First of all, you need to generate the key pair as like this: keytool -keysize 2048 -genkey -alias tomcat -keyalg RSA -keystore tomcat.keystore.
  • Next generate the CSR through this: keytool -certreq -alias tomcat -file csr.txt -keystore tomcat.keystore.
  • After that, make use of the CSR in applying for the certificate.
  • Add the Intermediate Certificate Bundle as well as the Certificate that were generated on the key store. You need to make sure that this is the same keystroke that you have generated in the private key that was done on step 1.
  • Finally, follow the rest of the instructions in configuring the https with the Play Framework 2.1 plus version. This has already worked great when applied on the self generated key.
  • Make sure that you do a play distribution beforehand. This way, the current software will be compiled to the distribution right on the target subdirectory.

More about Play Framework

The Play framework is known for being solid and fast. In fact, its compiler and runtime will perform all the heavy lifting for you so your apps will run as smoothly and as fast as possible. It also has a massive ecosystem. Its ecosystem around Java is truly massive. You will find libraries for everything and most of these can be used on the Play framework.

 

Previous post:

Next post: