Exam CAS-004 All QuestionsBrowse all questions from this exam
Question 277

An engineering team has deployed a new VPN service that requires client certificates to be used in order to successfully connect. On iOS devices, however, the following error occurs after importing the .p12 certificate file:

mbedTLS: ca certificate is undefined

Which of the following is the root cause of this issue?

    Correct Answer: A

    The error 'mbedTLS: ca certificate is undefined' on iOS devices when using a VPN service with client certificates indicates that the device does not have access to the necessary Certificate Authority (CA) certificates to establish a trusted connection. iOS devices have an empty root certificate chain by default, meaning they do not have the CA certificates pre-installed that are necessary to validate the server's certificate. Therefore, the root cause of this issue is that iOS devices, by default, have an empty root certificate chain.

Discussion
ewbafoowOption: D

Using the iOS keychain to store your private key has the added security advantage of leveraging on the hardware-backed keystores that exist on many iOS devices, allowing the key to be protected by the iOS-level device password, and preventing key compromise even if the device is rooted. If you already have your client certificate and private key bundled into a PKCS#12 file (extension .p12 or .pfx), you can import it into the app private section of the iOS Keychain using Mail, Safari or iTunes. Note sure that the file extension has to be changed to .ovpn12 for the file to be picked up by the OpenVPN Connect App (and not by iOS). Note that on iOS, when you import a PKCS#12 file into the Keychain, only the client certificate and private key are imported. The CA (certificate authority) certificates are NOT imported (unless you manually extract the CA certificates and import them separately, one-at-a-time). Therefore, the CA list must be given in the profile using the ca directive. If you already have a PKCS#12 file, the CA list may be extracted from the file using this openssl command, where the CA certs in client.p12 are written to ca.crt:

23169fdOption: A

Certificate Chain: When connecting to a VPN service that requires client certificates, iOS devices need to have the complete certificate chain, including the Certificate Authority (CA) certificate, in order to verify the authenticity of the server's certificate during the TLS handshake. PKCS#12 File (PFX): A .p12 file (or PFX format) typically contains both the client certificate and its associated private key, and optionally the CA certificate chain. D. The iOS keychain imported only the client public and private keys: While this could cause a different set of errors related to missing keys, it does not directly address the "ca certificate is undefined" error, which specifically relates to the CA certificate chain.

isaphiltrickOption: A

The error "mbedTLS: ca certificate is undefined" on iOS devices when using a VPN service with client certificates points to the absence of CA certificates in the iOS Certificate Trust Store. To resolve this issue, ensure that the .p12 certificate file imported into the iOS device includes the necessary CA certificates along with the client's certificate and private key, or manually install the CA certificates into the iOS device's trusted root store. This will allow the device to verify the authenticity of the VPN server during the connection establishment process.

surfugandaOption: A

QUESTION STATES: Which of the following is the root cause of this issue? While A and D are both independently true statements: option A explains why the error occurred [root cause] option D explains potential recent contribution, but A is already true