Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 48 additions & 47 deletions tests/monotouch-test/Security/CertificateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,28 @@ public class CertificateTest {

// Subject: CN=mail.google.com
static public byte [] mail_google_com = {
0x30, 0x82, 0x04, 0x69, 0x30, 0x82, 0x03, 0x51, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x10, 0x58,
0x24, 0xbc, 0x8a, 0x94, 0x4d, 0x92, 0x1b, 0x10, 0xff, 0x5a, 0xb0, 0x02, 0x86, 0x69, 0x35, 0x30,
0x30, 0x82, 0x04, 0x6a, 0x30, 0x82, 0x03, 0x52, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x10, 0x72,
0xcd, 0x64, 0xe0, 0x1f, 0xb6, 0x09, 0x45, 0x10, 0x85, 0xa3, 0x90, 0x91, 0xb5, 0x31, 0x28, 0x30,
0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x30, 0x3b,
0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x55, 0x53, 0x31, 0x1e, 0x30,
0x1c, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x13, 0x15, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x20, 0x54,
0x72, 0x75, 0x73, 0x74, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x31, 0x0c, 0x30,
0x0a, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x03, 0x57, 0x52, 0x32, 0x30, 0x1e, 0x17, 0x0d, 0x32,
0x35, 0x30, 0x33, 0x31, 0x30, 0x30, 0x38, 0x33, 0x37, 0x34, 0x36, 0x5a, 0x17, 0x0d, 0x32, 0x35,
0x30, 0x36, 0x30, 0x32, 0x30, 0x38, 0x33, 0x37, 0x34, 0x35, 0x5a, 0x30, 0x1a, 0x31, 0x18, 0x30,
0x35, 0x30, 0x38, 0x32, 0x35, 0x30, 0x38, 0x34, 0x31, 0x35, 0x30, 0x5a, 0x17, 0x0d, 0x32, 0x35,
0x31, 0x31, 0x31, 0x37, 0x30, 0x38, 0x34, 0x31, 0x34, 0x39, 0x5a, 0x30, 0x1a, 0x31, 0x18, 0x30,
0x16, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x0f, 0x6d, 0x61, 0x69, 0x6c, 0x2e, 0x67, 0x6f, 0x6f,
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x30, 0x59, 0x30, 0x13, 0x06, 0x07, 0x2a, 0x86, 0x48,
0xce, 0x3d, 0x02, 0x01, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07, 0x03, 0x42,
0x00, 0x04, 0x79, 0x8b, 0x9c, 0x3f, 0x45, 0x18, 0x85, 0xaf, 0xb6, 0xf2, 0x49, 0x03, 0x72, 0x54,
0x9f, 0x71, 0xba, 0xf3, 0xec, 0x98, 0xf0, 0x2a, 0x76, 0xec, 0x3c, 0x61, 0xb7, 0xd9, 0x8a, 0x63,
0x30, 0x65, 0xb9, 0x99, 0x11, 0xb2, 0x8c, 0x4a, 0x01, 0xb9, 0x17, 0x62, 0x24, 0x56, 0xd4, 0x26,
0x93, 0x92, 0x37, 0xde, 0x9a, 0x75, 0x28, 0xc4, 0xcd, 0x97, 0x90, 0xe6, 0xd0, 0x6c, 0xee, 0xb5,
0x51, 0xbd, 0xa3, 0x82, 0x02, 0x53, 0x30, 0x82, 0x02, 0x4f, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x1d,
0x00, 0x04, 0x20, 0x93, 0x8d, 0xe7, 0x03, 0x69, 0x50, 0xe4, 0xe8, 0xbf, 0xb7, 0xc8, 0x34, 0x8e,
0x26, 0x09, 0x7f, 0x1d, 0x0f, 0xa8, 0x36, 0xe9, 0x31, 0x5b, 0xa2, 0x26, 0xbf, 0xaf, 0x3c, 0x77,
0x3b, 0xdb, 0x1c, 0xcf, 0x79, 0xee, 0x97, 0xe1, 0x2c, 0xf6, 0xb3, 0x30, 0x14, 0x53, 0x01, 0x7d,
0xf6, 0xf6, 0x24, 0xd9, 0xb2, 0x8e, 0x41, 0x79, 0x08, 0x6e, 0xa9, 0xae, 0xd8, 0x15, 0xdd, 0x60,
0xac, 0xc6, 0xa3, 0x82, 0x02, 0x54, 0x30, 0x82, 0x02, 0x50, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x1d,
0x0f, 0x01, 0x01, 0xff, 0x04, 0x04, 0x03, 0x02, 0x07, 0x80, 0x30, 0x13, 0x06, 0x03, 0x55, 0x1d,
0x25, 0x04, 0x0c, 0x30, 0x0a, 0x06, 0x08, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01, 0x30,
0x0c, 0x06, 0x03, 0x55, 0x1d, 0x13, 0x01, 0x01, 0xff, 0x04, 0x02, 0x30, 0x00, 0x30, 0x1d, 0x06,
0x03, 0x55, 0x1d, 0x0e, 0x04, 0x16, 0x04, 0x14, 0x95, 0x0c, 0x0b, 0xc7, 0x37, 0x6b, 0x47, 0x69,
0x40, 0x81, 0x87, 0x9b, 0x85, 0x6a, 0x83, 0x62, 0x31, 0xbd, 0xc8, 0xe7, 0x30, 0x1f, 0x06, 0x03,
0x03, 0x55, 0x1d, 0x0e, 0x04, 0x16, 0x04, 0x14, 0x3d, 0x7b, 0xd5, 0xa8, 0x51, 0xe3, 0x5e, 0x99,
0xeb, 0xf5, 0x89, 0x39, 0x58, 0x60, 0xc2, 0x99, 0x00, 0x86, 0xc8, 0x72, 0x30, 0x1f, 0x06, 0x03,
0x55, 0x1d, 0x23, 0x04, 0x18, 0x30, 0x16, 0x80, 0x14, 0xde, 0x1b, 0x1e, 0xed, 0x79, 0x15, 0xd4,
0x3e, 0x37, 0x24, 0xc3, 0x21, 0xbb, 0xec, 0x34, 0x39, 0x6d, 0x42, 0xb2, 0x30, 0x30, 0x58, 0x06,
0x08, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x01, 0x04, 0x4c, 0x30, 0x4a, 0x30, 0x21, 0x06,
Expand All @@ -65,40 +65,41 @@ public class CertificateTest {
0x1f, 0x04, 0x2f, 0x30, 0x2d, 0x30, 0x2b, 0xa0, 0x29, 0xa0, 0x27, 0x86, 0x25, 0x68, 0x74, 0x74,
0x70, 0x3a, 0x2f, 0x2f, 0x63, 0x2e, 0x70, 0x6b, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x2f, 0x77,
0x72, 0x32, 0x2f, 0x6f, 0x42, 0x46, 0x59, 0x59, 0x61, 0x68, 0x7a, 0x67, 0x56, 0x49, 0x2e, 0x63,
0x72, 0x6c, 0x30, 0x82, 0x01, 0x03, 0x06, 0x0a, 0x2b, 0x06, 0x01, 0x04, 0x01, 0xd6, 0x79, 0x02,
0x04, 0x02, 0x04, 0x81, 0xf4, 0x04, 0x81, 0xf1, 0x00, 0xef, 0x00, 0x75, 0x00, 0x13, 0x4a, 0xdf,
0x1a, 0xb5, 0x98, 0x42, 0x09, 0x78, 0x0c, 0x6f, 0xef, 0x4c, 0x7a, 0x91, 0xa4, 0x16, 0xb7, 0x23,
0x49, 0xce, 0x58, 0x57, 0x6a, 0xdf, 0xae, 0xda, 0xa7, 0xc2, 0xab, 0xe0, 0x22, 0x00, 0x00, 0x01,
0x95, 0x7f, 0x6a, 0xec, 0x29, 0x00, 0x00, 0x04, 0x03, 0x00, 0x46, 0x30, 0x44, 0x02, 0x20, 0x75,
0x62, 0x0d, 0xa5, 0xfb, 0x0c, 0xa3, 0x6b, 0x0e, 0xb5, 0x5f, 0xd0, 0xff, 0x64, 0xd0, 0xa1, 0xb0,
0xe2, 0x50, 0x93, 0xf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, 0x02, 0xc4, 0xd8, 0x47, 0x2c, 0x86, 0x66, 0x77,
0xaf, 0x99, 0x6e, 0xca, 0xe1, 0x4b, 0x79, 0x1d, 0xbe, 0xf3, 0xc1, 0xeb, 0x08, 0x2b, 0x95, 0x60,
0x9c, 0x02, 0xdc, 0x64, 0xde, 0xff, 0x89, 0x42, 0xd1, 0xa3, 0x95, 0x34, 0xbf, 0x37, 0x4e, 0x67,
0xe1, 0x59, 0x02, 0xf0, 0x1b, 0x45, 0x12, 0x02, 0x81, 0x1c, 0xa6, 0xe8, 0x93, 0x69,
};

// Subject: C=US, O=Google Trust Services LLC, CN=GTS Root R1
public static byte [] gts_root_r1 = {
Expand Down Expand Up @@ -286,7 +287,7 @@ void CheckMailGoogleCom (SecCertificate cert, nint expectedRetainCount)
Assert.That ((nuint) (uint) mail_google_com.Length, Is.EqualTo (cert.DerData.Length), "DerData");
if (TestRuntime.CheckXcodeVersion (8, 3)) {
Assert.That (cert.GetCommonName (), Is.EqualTo ("mail.google.com"), "GetCommonName");
Assert.That (cert.GetSerialNumber ().ToStableString (), Is.EqualTo ("<5824bc8a 944d921b 10ff5ab0 02866935>"), "GetSerialNumber");
Assert.That (cert.GetSerialNumber ().ToStableString (), Is.EqualTo ("<72cd64e0 1fb60945 1085a390 91b53128>"), "GetSerialNumber");

var emailAddresses = cert.GetEmailAddresses ();
Assert.IsTrue (emailAddresses is null || emailAddresses.Length == 0, "GetEmailAddresses");
Expand All @@ -299,7 +300,7 @@ void CheckMailGoogleCom (SecCertificate cert, nint expectedRetainCount)
}
if (TestRuntime.CheckXcodeVersion (9, 0)) {
NSError err;
Assert.That (cert.GetSerialNumber (out err).ToStableString (), Is.EqualTo ("<5824bc8a 944d921b 10ff5ab0 02866935>"), "GetSerialNumber/NSError");
Assert.That (cert.GetSerialNumber (out err).ToStableString (), Is.EqualTo ("<72cd64e0 1fb60945 1085a390 91b53128>"), "GetSerialNumber/NSError");
Assert.Null (err, "err");
}
if (TestRuntime.CheckXcodeVersion (10, 0)) {
Expand Down
4 changes: 2 additions & 2 deletions tests/monotouch-test/Security/TrustTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ public void Trust_FullChain ()

void Trust_FullChain (SecTrust trust, SecPolicy policy, X509CertificateCollection certs)
{
// that certificate is valid between March 10th, 2025 and June 2nd, 2025, so we validate with a date in that range
trust.SetVerifyDate (new DateTime (2025, 4, 1, 0, 0, 0, DateTimeKind.Utc));
// that certificate is valid between Aug 25th, 2025 and Nov 17th, 2025, so we validate with a date in that range
trust.SetVerifyDate (new DateTime (2025, 10, 1, 0, 0, 0, DateTimeKind.Utc));

SecTrustResult trust_result = SecTrustResult.Unspecified;
var result = Evaluate (trust, out var trustError, true);
Expand Down
Loading