master
h 30 lines 787 Bytes
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 WindowsCertStore.h
8
9 Abstract:
10
11 Helpers for reading the Windows certificate stores so that the trusted root
12 certificate authorities configured on the host can be mirrored into the
13 container VM.
14
15 --*/
16
17 #pragma once
18
19 #include <string>
20
21 namespace wsl::windows::service::wslc {
22
23 // Collects the certificates from the host's "Trusted Root Certification
24 // Authorities" stores (both the local machine and current user stores) and
25 // returns them serialized as a single PEM bundle.
26 // Duplicate certificates that appear in more than one store are emitted once.
27 // Returns an empty string if no certificates were found.
28 std::string CollectTrustedRootCertificatesPem();
29
30 } // namespace wsl::windows::service::wslc