File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -82,12 +82,12 @@ public void TestAutoUpgradeVersion0 ()
82
82
File . Copy ( path , tmp ) ;
83
83
84
84
using ( var dbase = new SqliteCertificateDatabase ( tmp , "no.secret" ) ) {
85
- var root = chain [ chain . Length - 1 ] ;
86
-
87
85
// Verify that we can select the Root Certificate
88
86
bool trustedAnchor = false ;
89
87
foreach ( var record in dbase . Find ( null , true , X509CertificateRecordFields . Certificate ) ) {
90
- if ( record . Certificate . Equals ( root ) ) {
88
+ var fingerprint = record . Certificate . GetFingerprint ( ) ;
89
+
90
+ if ( fingerprint == "943471ff1ca3fb2dd843f515df261756cad58673" ) {
91
91
trustedAnchor = true ;
92
92
break ;
93
93
}
@@ -109,12 +109,12 @@ public void TestAutoUpgradeVersion1 ()
109
109
File . Copy ( path , tmp ) ;
110
110
111
111
using ( var dbase = new SqliteCertificateDatabase ( tmp , "no.secret" ) ) {
112
- var root = chain [ chain . Length - 1 ] ;
113
-
114
112
// Verify that we can select the Root Certificate
115
113
bool trustedAnchor = false ;
116
114
foreach ( var record in dbase . Find ( null , true , X509CertificateRecordFields . Certificate ) ) {
117
- if ( record . Certificate . Equals ( root ) ) {
115
+ var fingerprint = record . Certificate . GetFingerprint ( ) ;
116
+
117
+ if ( fingerprint == "943471ff1ca3fb2dd843f515df261756cad58673" ) {
118
118
trustedAnchor = true ;
119
119
break ;
120
120
}
You can’t perform that action at this time.
0 commit comments