Commit d603711
Look up trusted certs consistently on windows (dotnet#56701)
* Search for trusted certificates consistently on Windows
1. Don't use thumbprint so we don't get flagged for using SHA-1
2. Make TrustCertificateCore and RemoveCertificateFromTrustedRoots consistent
* Add a note about our usage of Thumbprint on macOS
* Clean up assumptions about root store
* FindBySubjectName expects a string
* Search by serial number to avoid having to parse subject name
* Fix typo
Co-authored-by: Martin Costello <[email protected]>
* Call DisposeCertificates more consistently
---------
Co-authored-by: Martin Costello <[email protected]>
(cherry picked from commit ed7ea40)1 parent 105a25f commit d603711
File tree
3 files changed
+57
-16
lines changed3 files changed
+57
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
815 | 859 | | |
816 | 860 | | |
817 | 861 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
Lines changed: 8 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 74 | | |
79 | | - | |
80 | 75 | | |
81 | | - | |
82 | | - | |
| 76 | + | |
| 77 | + | |
83 | 78 | | |
84 | 79 | | |
85 | | - | |
86 | 80 | | |
87 | 81 | | |
88 | 82 | | |
89 | 83 | | |
90 | 84 | | |
91 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
92 | 89 | | |
93 | | - | |
94 | 90 | | |
95 | 91 | | |
96 | 92 | | |
| |||
102 | 98 | | |
103 | 99 | | |
104 | 100 | | |
105 | | - | |
106 | 101 | | |
| 102 | + | |
107 | 103 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | 104 | | |
112 | | - | |
| 105 | + | |
113 | 106 | | |
114 | 107 | | |
115 | 108 | | |
| |||
118 | 111 | | |
119 | 112 | | |
120 | 113 | | |
121 | | - | |
122 | 114 | | |
123 | 115 | | |
124 | 116 | | |
125 | 117 | | |
126 | 118 | | |
127 | 119 | | |
128 | | - | |
| 120 | + | |
129 | 121 | | |
130 | 122 | | |
131 | 123 | | |
| |||
0 commit comments