Skip to main content

Posts

Showing posts with the label How To

What Is SSL Certificate and how it works?

Deep Dive into SSL Certificate What Is an SSL Certificate? SSL (Secure Sockets Layer) is the common name for TLS (Transport Layer Security), a security protocol that enables encrypted communications between two machines. An SSL certificate is a small data file leveraging this security protocol to serve two functions: Authentication – SSL certificates serve as credentials to authenticate the identity of a website. They are issued to a specific domain name and web server after a Certificate Authority, also known as a Certification Authority (CA), performs a strict vetting process on the organization requesting the certificate. Depending on the certificate type, it can provide information about a business or website's identity and authenticate that the website is a legitimate business. Secure data communication - When SSL is installed on a web server, it enables the padlock to appear in the web browser. It activates the HTTPS protocol and creates a secure connection between th...

How to configure SSL certificate in spring boot?

Let us learn how to generate & configure the ssl certificates in spring boot applications. Step 1. Getting the certificate  We can purchase the SSL certificate from the following SSL providers   Godaddy DigiCert GeoTrust GlobalSign Comodo SSL RapidSSL SSL.com OR, for testing purposes, we can generate a self-signed certificate Before getting started, let us know the format of the SSL certificates: PKCS12:  Public Key Cryptographic Standards is a password-protected format that can contain multiple certificates and keys; it's an industry-wide used format. JKS:  Java KeyStore  is similar to PKCS12; it's a proprietary format and is limited to the Java environment. To know more about how SSL works please go to this link . We can use either keytool or OpenSSL tools to generate the certificates from the command line. Keytool  is shipped with Java Runtime Environment, and OpenSSL can be downloaded from  here . For our demonstratio...

How to deploy the Spring Boot application ( jar/war ) on the live server?

There are various methods to deploy the Spring Boot application. In the previous page, we have described how to generate builds (jar/war) by Maven/Gradle. In this article, we will describe the built deployment process. So before we begin deploying spring boot applications that are built in either jar or war, we need to understand what are the differences between them, both can be built using any of the built tools Gradle and Maven. Table of Contents What are the differences between jar and war? How to generate builts jar or war in spring boot? Deploying a JAR (Java Archive) as a standalone application Deploying a WAR (Web Application Archive) into a servlet container What are the differences between jar and war? jar (Java ARchive) war ( Web Application Resource) JAR stands for J ava AR chive. WAR   stands for W eb A pplication R esource, also stated W eb application AR chive. It is used to aggregate many Java class files and associated metadata and reso...