Salesforce Certified MuleSoft Platform Integration Architect free question 10 / 10 · Domain 9: Designing integration solutions to meet security requirements
A Mule application exposes an HTTPS listener with a keystore. A reviewer asks which part of the server identity is exposed to the clients during the TLS handshake. Which part is exposed to the clients?
- The keystore file is exposed, and the clients validate it against their own set of trusted certificates
- The public certificate is exposed through TLS, and the private key stays on the server
- The truststore of the server is exposed, and the clients copy the trusted certificates from it
- The key password is exposed, and the clients use it to open the keystore of the server
Show the answer and explanation
Answer: B
Why this is correct
The page explains that a TLS-enabled server contains a private key and a public certificate. The private key never leaves the server, while the public certificate is exposed through TLS. TLS-enabled clients verify that they trust the server by validating the public certificate against their own set of trusted certificates. To use TLS in Mule 4 you import certificates and private keys into a keystore, and the tls:context element configures this for every connector that supports TLS, such as HTTP, FTPS, Email or Sockets.
Why the other options are wrong
"The keystore file is exposed, and the clients validate it against their own set of trusted certificates" … The keystore holds the private key and the certificate of the server and stays on the server. The clients see the public certificate.
"The truststore of the server is exposed, and the clients copy the trusted certificates from it" … A truststore holds the certificates that a party trusts. It is not what the server presents in the handshake.
"The key password is exposed, and the clients use it to open the keystore of the server" … The password protects the key on the server. Clients receive the public certificate and never need to open the keystore.
Key points
In TLS the server shows its public certificate and keeps the private key to itself.