Saturday, February 26, 2022

How to setup SSL Key Store in Mule 4

 SSL stands for Secure Socket Layer.
  • - supports Fortezza algorithm.
  • - 3.0 version.
  • - Message digest is used to create master secret.
  • - Message Authentication Code protocol is used.
  • - Is complex than TLS(Transport Layer Security).
  • - Is less secured as compared to TLS(Transport Layer Security).

Important Key terms:
  • SSL - Secure Socket Layer
  • TLS - Transport Layer Security
  • Public Key Infrastructure (PKI)
  • CA - Certificate Authority

Step1: 
Generate Key Store by using following command
C:\Program Files\Java\jdk1.8.0_321\bin>keytool -genkeypair -keystore D:\KeyLocation\keystore.jks -keypass mulesoft -storepass mulesoft -keyalg RSA -sigalg SHA1withRSA -keysize 1024 -alias mule -ext SAN=DNS:localhost,IP:127.0.0.1 -validity 9999
Note: mulesoft is password

C:\Program Files\Java\jdk1.8.0_321\bin>

Open the Key Store by using keystore application. Download from here..

Step2:
Place the keystore.jks file into src/main/resources

Step3:
Configure HTTPS connectore
General>port>8082
TLS>Type>JKS,Path>keystore.jks,Key password=mulesoft,password=mulesoft

GitHub-Code

http.port=8081
https.port=8082
http.private.port=8091
https.private.port=8092



Note: If you are testing from Postman, then disable SSL certificate verification
Postman>File>Settings

https://localhost:8082/Hello


Thanks for reading.



No comments:

Post a Comment