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
9 Ways To Build Wealth Fast (That Your Financial Advisor Might Not Tell You)
What A New Investor Needs To Know ~ Techswizz
Lexi Vonn
It may surround a charged particle Crossword Clue
Metallica - Blackened Lyrics Meaning
Gamevault Agent
Mychart Mercy Lutherville
Jeremy Corbell Twitter
Overnight Cleaner Jobs
Trade Chart Dave Richard
Bank Of America Appointments Near Me
Truist Drive Through Hours
Uc Santa Cruz Events
Epaper Pudari
Cincinnati Bearcats roll to 66-13 win over Eastern Kentucky in season-opener
Https://Gw.mybeacon.its.state.nc.us/App
Local Collector Buying Old Motorcycles Z1 KZ900 KZ 900 KZ1000 Kawasaki - wanted - by dealer - sale - craigslist
Youravon Comcom
Connect U Of M Dearborn
Highland Park, Los Angeles, Neighborhood Guide
Leader Times Obituaries Liberal Ks
Paychex Pricing And Fees (2024 Guide)
Shasta County Most Wanted 2022
H12 Weidian
Azpeople View Paycheck/W2
Boise Craigslist Cars And Trucks - By Owner
The Banshees Of Inisherin Showtimes Near Broadway Metro
Creed 3 Showtimes Near Island 16 Cinema De Lux
Medline Industries, LP hiring Warehouse Operator - Salt Lake City in Salt Lake City, UT | LinkedIn
Leben in Japan – das muss man wissen - Lernen Sie Sprachen online bei italki
Kiddie Jungle Parma
APUSH Unit 6 Practice DBQ Prompt Answers & Feedback | AP US History Class Notes | Fiveable
Yoshidakins
Amici Pizza Los Alamitos
Goodwill Thrift Store & Donation Center Marietta Photos
Maybe Meant To Be Chapter 43
Best Workers Compensation Lawyer Hill & Moin
Soulstone Survivors Igg
When His Eyes Opened Chapter 2048
Winco Money Order Hours
Cheetah Pitbull For Sale
Husker Football
Pro-Ject’s T2 Super Phono Turntable Is a Super Performer, and It’s a Super Bargain Too
Www.craigslist.com Waco
Best Restaurants West Bend
Sdn Fertitta 2024
Lyndie Irons And Pat Tenore
Premiumbukkake Tour
Wera13X
Jovan Pulitzer Telegram
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.