alecmuffett / certificate-transparency

Automatically exported from code.google.com/p/certificate-transparency
0 stars 0 forks source link

Another time formatting issues #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
ct.crypto.error.CertificateError: Corrupt time: Invalid time representation: 
360314154014+0000

however openssl is able to read the time

            Not Before: Mar 12 03:19:24 2008 GMT
            Not After : Jul 28 02:36:28 2035

not sure what's going on with this one.

-----BEGIN CERTIFICATE-----
MIIDHjCCAoegAwIBAgIJALWdz92v035NMA0GCSqGSIb3DQEBBAUAMG8xCzAJBgNV
BAYTAnVzMRAwDgYDVQQHEwdkdWVud2VnMQ0wCwYDVQQKEwRQSUxSMRkwFwYDVQQD
ExBQSUxSIFdlYkFkbWluIENBMSQwIgYJKoZIhvcNAQkBFhVhZmFib3p6aUBwaWxy
dGVjaC5jb20wIhcNMDgxMDI4MTU0MDU5WhcRMzYwMzE0MTU0MDE0KzAwMDAwPTEL
MAkGA1UEBhMCdXMxEDAOBgNVBAcTB2R1ZW53ZWcxDTALBgNVBAoTBFBJTFIxDTAL
BgNVBAMTBFRlc3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAK6NROua7Yo3
9iT1dqsr/meG4sC4wedeEmUyp9VpvDpS1sHrH0jcss81ffe/tTnREyX2chqvjqh1
R86625pSHmCOMbMAKW6iO4Tc18LOvvgnEPdHxlwMLh8vrbb9/3wWEAiVs4nd4KUD
7rScat1cNootcdcVTw7uuf/sastx/z1RAgMBAAGjge8wgewwHQYDVR0OBBYEFGwh
LY4EcMd4gy5SRYiUWi/V5RWLMIGhBgNVHSMEgZkwgZaAFPL2SfXc7QIbbbBvdXj/
4bScvvrSoXOkcTBvMQswCQYDVQQGEwJ1czEQMA4GA1UEBxMHZHVlbndlZzENMAsG
A1UEChMEUElMUjEZMBcGA1UEAxMQUElMUiBXZWJBZG1pbiBDQTEkMCIGCSqGSIb3
DQEJARYVYWZhYm96emlAcGlscnRlY2guY29tggkAtZ3P3a/TfkwwDwYDVR0RBAgw
BoIEVGVzdDAJBgNVHRMEAjAAMAsGA1UdDwQEAwIF4DANBgkqhkiG9w0BAQQFAAOB
gQAIYhdpcAseNRK8p8uEqwAYTW55eo4+Jk4M3ysVE83gEkJjNq1I9SHp79//suYs
xCpYV3GIBHOFakIa+Scn/tkfLs1IA1AIAYMZHhrgGfF5BlOQGtJHssnUS7tDgApf
fA6jJs41eqhotUj6QNqlCR0F3avYqUHLCAuBCBFOZKevuQ==
-----END CERTIFICATE-----

Original issue reported on code.google.com by nickgsup...@gmail.com on 15 Oct 2013 at 12:54

GoogleCodeExporter commented 9 years ago
another self-signed... accepted but with a larger time value.  Something isn't 
being parsed/converted correctly in the asn.1

Corrupt time: Invalid time representation: 121214093107+0000

-----BEGIN CERTIFICATE-----
MIIEDTCCAvWgAwIBAgIBATANBgkqhkiG9w0BAQUFADBKMQswCQYDVQQGEwJVUzEU
MBIGA1UEChMLc3Vicmlnby5uZXQxJTAjBgNVBAMTHENBLWV4ZXMxMTEuc3Vicmln
by5uZXQuNDEyMTUwIhcRMTIxMjE0MDkzMTA3KzAwMDAXDTIyMTIxMzA5MzEwN1ow
SjELMAkGA1UEBhMCVVMxFDASBgNVBAoTC3N1YnJpZ28ubmV0MSUwIwYDVQQDExxD
QS1leGVzMTExLnN1YnJpZ28ubmV0LjQxMjE1MIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEAzRw/wrz/eKMntrvmuuSgr+PFQLlEA7MtTYs5dhDuoUXou2Ny
RaznsjSLXKaZVqQlWlmjEtgAfrfR9ia5zrp3mKx40e/UvSt5WTOJGETENIIBMW0b
Rp/06Ucv9vtImAWqQg0jwEZZXk+tQjlQZynw6UxEAmK9XD6cdMCvquFKCEbhlWD0
K6L72jpjOyhTOU+DYHxuNLZwM0HqG7/pGDgy3dHw5/9CIEGs1fum7e4I1bT7gI5n
fzP2L+fcfRVZnOgWj6yBTDubbRTwWlIraBMLp6d9D4E1UYfExxp0auLR3+M79oSr
X3tpUPzF+lWw4ccKoV3djsW/dFtamCwySksVTQIDAQABo4H5MIH2MB0GA1UdDgQW
BBQl8erkf8xp19QoTCxiaiYgB9qHxzBABggrBgEFBQcBAQQ0MDIwMAYIKwYBBQUH
MAKGJGh0dHA6Ly9leGVzMTExLnN1YnJpZ28ubmV0OjgwL2NhLmNydDByBgNVHSME
azBpgBQl8erkf8xp19QoTCxiaiYgB9qHx6FOpEwwSjELMAkGA1UEBhMCVVMxFDAS
BgNVBAoTC3N1YnJpZ28ubmV0MSUwIwYDVQQDExxDQS1leGVzMTExLnN1YnJpZ28u
bmV0LjQxMjE1ggEBMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMA0G
CSqGSIb3DQEBBQUAA4IBAQC9lhFqrKf/M4+IyUfDsJZu/f35ugwm1V2Iib+datyo
AMHd3R7cdYkTixcbPScJO822PqZNqdHQsVzNSap4seDSY4cOHYDNnYvP6F3d7zYS
ySw8cqu99iA9NWXWdNLHbKZ4nzW8yS/UjS51opfEHaHVDrEB5x8vYTUL1jsBIG7G
RXGFQ+ZTby/CCvHE0Pu41SL0xaGKuWN/FUODIGZR/1SSyXkdaA02JeaBDi2/jsXP
5y2gR70+N8XXNFLbk756uMSv5VgE8YGgMDMdAdv6uM6T7HGFw5FLWypAcG+W/lsu
CRJ5OwxZENg24goO5YCL53orbCB8Bl/GwUb372OoZiMM
-----END CERTIFICATE-----

Original comment by nickgsup...@gmail.com on 15 Oct 2013 at 6:06

GoogleCodeExporter commented 9 years ago
one with time zone...

ct.crypto.cert.CertificateError: Corrupt time: Invalid time representation: 
110629153248-1200

openssl:
            Not Before: Jun 29 15:32:48 2011
            Not After : Jun 26 15:32:48 2021 GMT

-----BEGIN CERTIFICATE-----
MIICNzCCAeGgAwIBAgIPIQAAAVU1xDkgEQYpFTJGMA0GCSqGSIb3DQEBBAUAMIGN
MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTERMA8GA1UEBxMITWls
cGl0YXMxIDAeBgNVBAoTF1Byb21pc2UgVGVjaG5vbG9neSBJbmMuMRAwDgYDVQQD
EwdQcm9taXNlMSIwIAYJKoZIhvcNAQkBFhNzdXBwb3J0QHByb21pc2UuY29tMCIX
ETExMDYyOTE1MzI0OC0xMjAwFw0yMTA2MjYxNTMyNDhaMIGSMQswCQYDVQQGEwJV
UzETMBEGA1UECBMKQ2FsaWZvcm5pYTERMA8GA1UEBxMITWlscGl0YXMxIDAeBgNV
BAoTF1Byb21pc2UgVGVjaG5vbG9neSBJbmMuMRUwEwYDVQQDEwwyMDcuNjIuODAu
NTAxIjAgBgkqhkiG9w0BCQEWE3N1cHBvcnRAcHJvbWlzZS5jb20wXDANBgkqhkiG
9w0BAQEFAANLADBIAkEAv0fqpleeku1/UISz04XQCZFzfgDrJroOC3rXO5NA3OJF
AgHOENCNTmCoiph86zCCczO5J+2kWdpr03bzroXQywIDAQABoxMwETAPBgNVHREE
CDAGhwTPPlAyMA0GCSqGSIb3DQEBBAUAA0EAMqdXRsi7e76gC2HwohGdawHuBQUl
jWfHx+OZjOL0kdMYYLmJPO+gAgLgAEFfjkURjyu0i4TuUDFUsW6yzXEhhg==
-----END CERTIFICATE-----

Original comment by nickgsup...@gmail.com on 15 Oct 2013 at 6:51

GoogleCodeExporter commented 9 years ago
patch forthcoming

Original comment by nickgsup...@gmail.com on 15 Oct 2013 at 2:14

GoogleCodeExporter commented 9 years ago
Also fixed in 
https://code.google.com/p/certificate-transparency/source/detail?r=8e2e1301f4ab9
bb91c8cc201c45cac0863b96b79

Original comment by ekasper@google.com on 18 Oct 2013 at 2:14