UWP - https certification valiation issue

Vinod Sahu 0 Reputation points
2025-06-10T16:15:50.5+00:00

I am trying to call an https api on a payment device, it returns a certificate signed by intermediate CA and that signed by root CA.

I have installed root CA in trusted store of windows, added capability in WPF manifest.

It returns error - Partial chain .

This whole setup works in a console app.

If I add the intermediate certificate in trusted store, it works fine.

Are there any configs that can be set in wpf to fetch intermediate certifcate similar to console app.

Developer technologies | Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Harry Vo (WICLOUD CORPORATION) 405 Reputation points Microsoft External Staff
    2025-07-29T10:11:09.1166667+00:00

    Hi @Vinod Sahu

    My name is Harry, Support Engineer who specialize in UWP (Universal Windows Platform). Thank you for reaching out on Microsoft Q&A!

    According to your question, it seems like you are encountering the Partial chain HTTPS certificate validation error because the intermediate certificate not explicitly installed.

    This whole setup works in a console app.

    Console apps often use the default .NET HttpClient or WebRequest stack to automatically retrieve intermediate certificate via AIA (Authority Information Access) if they are not sent by the server.

    Similarly, WPF apps can also use AIA to retrieve intermediate certificate like console apps, but this behavior is not guaranteed as it depends on many factors including HTTP handler, system policy, network access, ...

    Are there any configs that can be set in wpf to fetch intermediate certifcate similar to console app.

    I'm very sorry but there are no WPF-specific configs or manifest settings that control how intermediate certificate are fetched. Fortunately, there are other possible solutions for this issue:

    1. Ensure the server sends the full chain (i.e., includes the intermediate certificate in the TLS handshake). This is the most reliable solution!
    2. Manually install the intermediate certificate in the Local Machine or trusted store like you mentioned in your question.

    Since your title mentions UWP and I'm not sure are you working on UWP or not: Unlike WPF, UWP apps run in a sandbox and do not fetch intermediate certificate automatically. They only rely entirely on the certificate chain provided by the server. Additionally, UWP manifest capabilities do not affect certificate chain behavior.

    However, the two solutions I mentioned above also apply to UWP. Please give it a try!


    You can also find relate documentations here: 

    Authority Information Access in Windows | Microsoft Learn

    Intro to certificates - UWP applications | Microsoft Learn

    I hope this helps you get things back on track quickly! If you agree with our suggestion, feel free to interact with the system accordingly! 

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.