TLS Configuration | MuleSoft Documentation (2024)

A TLS service needs to have a private key and a public certificate. The private key never leaves the server. The public certificate is exposed through TLS so clients can verify if they trust the server.

Certificates can be generated by a well-known Certificate Authority (CA) or can be generated locally without external approval (self-signed certificates). Certificates generated from Certificate Authorities include digital signatures and are usually accepted as trusted by any client that includes the CA certificate in its repository of trusted certificates (trust store).

For Mule products, certificates and private keys must be imported into Java keystore files. Trust store files are also keystores that by convention only include public certificates of trusted servers.

The 'tls:trust-store' and 'tls:key-store' elements must reference existing certificates. If you don’t provide any values for the trust-store, the default Java trust store is used. The default trust store is updated with the Java version, so it’s recommended that you use an updated Java version to be sure it includes updates to well known CA certificates.

To generate your own certificates, you can do so by following the steps below using Java Keytool.

Generating a Keystore

  1. To generate a keystore that exposes your server’s credentials, run the command:

    keytool -genkey -alias serverkey -keyalg RSA -keystore server.jks

The generated keystore will contain a private key and a public certificate. This certificate is self signed so it will be not be trusted by clients unless you share the public certificate with them.

Keytool generates certificates using the DSA algorithm by default. You can instead specify it to use the RSA algorithm as in the example above through the '-keyalg RSA' argument.
  1. You will then be prompted for additional details, along with the store password and key password.​

  2. Once this is done, you must export the server’s certificate from the keystore so that it can be shared with clients. To do this, use the following command:

    keytool -export -alias serverkey -keystore server.jks -file server_cert.cer
There is no default Java key store in the standard JDK distribution, so you must generate your own certificates in order to use this element.

If you also wish to get signed by a Certification Authority (CA), you must export your certificate in the standard CSR format. To do so you can run this command:

keytool -certreq -keystore server.jks -alias example.com -file certificate_file

Here, '-file' refers to the name you wish to give to your certificate file. Once generated, send the CSR file to the CA and follow their instructions to obtain their signature.

Once you have obtained the CA’s signature, you can import the signed certificate file through the following command:

keytool -import -keystore keystore -alias example.com -file signed_certificate_file
The alias you assign when importing must not be linked to any existing key or the process will fail.

Generating a Trust Store

The standard JRE distribution includes a default trust store with certificates for several major certificate authorities (CA’s) which is used by default in the 'tls:trust-store' element, but you can generate your own if you wish to have greater security or when using self-signed certificates.
  1. To create a trustStore, run the command:

    keytool -import -alias serverkey -keystore client_truststore.ts -file server_cert.cer

The client will trust the server if a chain of trust can be established, either directly to the server (in case its certificate is in the trust store) or through a signing CA whose certificate is present in the trust store, failing otherwise. This means that a trust store must be defined when using self-signed certificates.

TLS Configuration | MuleSoft Documentation (2024)
Top Articles
Anubis (Anpu) Powers, Enemies, History | Marvel
Gemini Constellation: Facts About the Twins
2018 Jeep Wrangler Unlimited All New for sale - Portland, OR - craigslist
Vaya Timeclock
Craglist Oc
Wausau Marketplace
Think Of As Similar Crossword
Apply A Mudpack Crossword
A.e.a.o.n.m.s
De Leerling Watch Online
Oc Craiglsit
Missing 2023 Showtimes Near Landmark Cinemas Peoria
Procore Championship 2024 - PGA TOUR Golf Leaderboard | ESPN
Rondom Ajax: ME grijpt in tijdens protest Ajax-fans bij hoofdbureau politie
Carson Municipal Code
Menards Eau Claire Weekly Ad
Laveen Modern Dentistry And Orthodontics Laveen Village Az
Team C Lakewood
Governor Brown Signs Legislation Supporting California Legislative Women's Caucus Priorities
Target Minute Clinic Hours
Used Patio Furniture - Craigslist
Urbfsdreamgirl
Divide Fusion Stretch Hoodie Daunenjacke für Herren | oliv
100 Gorgeous Princess Names: With Inspiring Meanings
Armor Crushing Weapon Crossword Clue
Nacogdoches, Texas: Step Back in Time in Texas' Oldest Town
Phone number detective
Ixl Lausd Northwest
Tamilrockers Movies 2023 Download
October 31St Weather
American Bully Xxl Black Panther
Shoreone Insurance A.m. Best Rating
Sinai Sdn 2023
Watchseries To New Domain
The Complete Guide To The Infamous "imskirby Incident"
Ishow Speed Dick Leak
Woodman's Carpentersville Gas Price
The Thing About ‘Dateline’
Smith And Wesson Nra Instructor Discount
Ksu Sturgis Library
Zasilacz Dell G3 15 3579
9 oplossingen voor het laptoptouchpad dat niet werkt in Windows - TWCB (NL)
Craigslist Boats Dallas
Satucket Lectionary
Rs3 Nature Spirit Quick Guide
Clock Batteries Perhaps Crossword Clue
Acuity Eye Group - La Quinta Photos
Www Ventusky
Where Is Darla-Jean Stanton Now
Myhrkohls.con
Minecraft Enchantment Calculator - calculattor.com
Inloggen bij AH Sam - E-Overheid
Latest Posts
Article information

Author: Clemencia Bogisich Ret

Last Updated:

Views: 6412

Rating: 5 / 5 (60 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Clemencia Bogisich Ret

Birthday: 2001-07-17

Address: Suite 794 53887 Geri Spring, West Cristentown, KY 54855

Phone: +5934435460663

Job: Central Hospitality Director

Hobby: Yoga, Electronics, Rafting, Lockpicking, Inline skating, Puzzles, scrapbook

Introduction: My name is Clemencia Bogisich Ret, I am a super, outstanding, graceful, friendly, vast, comfortable, agreeable person who loves writing and wants to share my knowledge and understanding with you.