diff --git a/app/models/smime_certificate.rb b/app/models/smime_certificate.rb index 60e99e697..46958db8c 100644 --- a/app/models/smime_certificate.rb +++ b/app/models/smime_certificate.rb @@ -4,7 +4,7 @@ class SMIMECertificate < ApplicationModel validates :fingerprint, uniqueness: true def self.parse(raw) - OpenSSL::X509::Certificate.new(raw.gsub!(/(?:TRUSTED\s)?(CERTIFICATE---)/, '\1')) + OpenSSL::X509::Certificate.new(raw.gsub(/(?:TRUSTED\s)?(CERTIFICATE---)/, '\1')) end # Search for the certificate of the given sender email address diff --git a/lib/secure_mailing/smime/incoming.rb b/lib/secure_mailing/smime/incoming.rb index 1af48377b..8a6c560a1 100644 --- a/lib/secure_mailing/smime/incoming.rb +++ b/lib/secure_mailing/smime/incoming.rb @@ -103,37 +103,12 @@ class SecureMailing::SMIME::Incoming < SecureMailing::Backend::Handler success = false comment = 'Unable to find certificate for verification' - ::SMIMECertificate.find_each do |cert| - verify_certs = [] - verify_ca = OpenSSL::X509::Store.new - if cert.parsed.issuer.to_s == cert.parsed.subject.to_s - verify_ca.add_cert(cert.parsed) + result = verify_certificate_chain(p7enc.certificates) + if result.present? + success = true + comment = result - # CA - verify_certs = p7enc.certificates.select do |message_cert| - message_cert.issuer.to_s == cert.parsed.subject.to_s && verify_ca.verify(message_cert) - end - else - - # normal - verify_certs.push(cert.parsed) - end - - success = p7enc.verify(verify_certs, verify_ca, nil, OPENSSL_PKCS7_VERIFY_FLAGS) - next if !success - - comment = cert.subject - if cert.expired? - comment += " (Certificate #{cert.fingerprint} with start date #{cert.not_before_at} and end date #{cert.not_after_at} expired!)" - end - break - rescue => e - success = false - comment = e.message - end - - if success @mail[:attachments].delete_if do |attachment| signed?(attachment.dig(:preferences, 'Content-Type')) end @@ -145,6 +120,46 @@ class SecureMailing::SMIME::Incoming < SecureMailing::Backend::Handler } end + def verify_certificate_chain(certificates) + return if certificates.blank? + + subjects = p7enc.certificates.map(&:subject).map(&:to_s) + return if subjects.blank? + + existing_certs = ::SMIMECertificate.where(subject: subjects).sort_by do |certificate| + # ensure that we have the same order as the certificates in the mail + subjects.index(certificate.subject) + end + return if existing_certs.blank? + + if subjects.size > existing_certs.size + Rails.logger.debug { "S/MIME mail signed with chain '#{subjects.join(', ')}' but only found '#{existing_certs.map(&:subject).join(', ')}' in database." } + end + + begin + existing_certs_store = OpenSSL::X509::Store.new + + existing_certs.each do |existing_cert| + existing_certs_store.add_cert(existing_cert.parsed) + end + + success = p7enc.verify(p7enc.certificates, existing_certs_store, nil, OPENSSL_PKCS7_VERIFY_FLAGS) + return if !success + + existing_certs.map do |existing_cert| + result = existing_cert.subject + if existing_cert.expired? + result += " (Certificate #{existing_cert.fingerprint} with start date #{existing_cert.not_before_at} and end date #{existing_cert.not_after_at} expired!)" + end + result + end.join(', ') + rescue => e + Rails.logger.error "Error while verifying mail with S/MIME certificate subjects: #{subjects}" + Rails.logger.error e + nil + end + end + def p7enc OpenSSL::PKCS7.read_smime(@mail[:raw]) end diff --git a/lib/secure_mailing/smime/outgoing.rb b/lib/secure_mailing/smime/outgoing.rb index af231a2b7..c0295ad72 100644 --- a/lib/secure_mailing/smime/outgoing.rb +++ b/lib/secure_mailing/smime/outgoing.rb @@ -68,12 +68,32 @@ class SecureMailing::SMIME::Outgoing < SecureMailing::Backend::Handler raise "Expired certificate for #{from} (fingerprint #{cert_model.fingerprint}) with #{cert_model.not_before_at} to #{cert_model.not_after_at}" if !@security[:sign][:allow_expired] && cert_model.expired? private_key = OpenSSL::PKey::RSA.new(cert_model.private_key, cert_model.private_key_secret) - OpenSSL::PKCS7.write_smime(OpenSSL::PKCS7.sign(cert_model.parsed, private_key, @mail.encoded, [], OpenSSL::PKCS7::DETACHED)) + + OpenSSL::PKCS7.write_smime(OpenSSL::PKCS7.sign(cert_model.parsed, private_key, @mail.encoded, chain(cert_model), OpenSSL::PKCS7::DETACHED)) rescue => e log('sign', 'failed', e.message) raise end + def chain(cert) + lookup_issuer = cert.parsed.issuer.to_s + + result = [] + loop do + found_cert = SMIMECertificate.find_by(subject: lookup_issuer) + break if found_cert.blank? + + subject = found_cert.parsed.subject.to_s + lookup_issuer = found_cert.parsed.issuer.to_s + + result.push(found_cert.parsed) + + # we've reached the root CA + break if subject == lookup_issuer + end + result + end + def encrypt(data) certificates = SMIMECertificate.for_recipipent_email_addresses!(@mail.to) expired_cert = certificates.detect(&:expired?) diff --git a/spec/fixtures/smime/CaseInsenstive@eXample.COM.crt b/spec/fixtures/smime/CaseInsenstive@eXample.COM.crt index 58fae7ec7..26890c41f 100644 --- a/spec/fixtures/smime/CaseInsenstive@eXample.COM.crt +++ b/spec/fixtures/smime/CaseInsenstive@eXample.COM.crt @@ -1,37 +1,41 @@ -----BEGIN TRUSTED CERTIFICATE----- -MIIGZDCCBEygAwIBAgIUAfZ9Sb8pCb7RN34x7oUVKZ/ftY8wDQYJKoZIhvcNAQEL -BQAwgZcxHTAbBgkqhkiG9w0BCQEWDmNhQGV4YW1wbGUuY29tMQswCQYDVQQGEwJE -RTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJsaW4xGTAXBgNVBAoMEEV4 -YW1wbGUgU2VjdXJpdHkxFjAUBgNVBAsMDUlUIERlcGFydG1lbnQxFDASBgNVBAMM -C2V4YW1wbGUuY29tMCAXDTIwMDUyODExMzg0NFoYDzIyMjAwNDEwMTEzODQ0WjCB -ozEpMCcGCSqGSIb3DQEJARYaQ2FzZUluc2Vuc3RpdmVAZVhhbXBsZS5DT00xCzAJ -BgNVBAYTAkRFMQ8wDQYDVQQIDAZCZXJsaW4xDzANBgNVBAcMBkJlcmxpbjEZMBcG -A1UECgwQRXhhbXBsZSBTZWN1cml0eTEWMBQGA1UECwwNSVQgRGVwYXJ0bWVudDEU -MBIGA1UEAwwLZXhhbXBsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK -AoICAQDaNxe6VMcsIVG+Y/aNlNsUWzEZvSycDGKH+1AZ2NBjeEyNRuoiBdbosyxk -mPm6fZ4Prcr2ufI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VudDEUMBIGA1UEAwwLZXhhbXBsZS5jb22C +AQEwJQYDVR0RBB4wHIEaQ2FzZUluc2Vuc3RpdmVAZVhhbXBsZS5DT00wEwYDVR0l +BAwwCgYIKwYBBQUHAwQwDQYJKoZIhvcNAQELBQADggIBALC6bdhGHmInuIj9Dh7O +fXwzIO4YkeWfvNN6JgAniaGQ5EQUmSTtEH1CLROlSBLBt+SxslyjgMQ0rmmu3F1V +BPATnDI0mNZ1SalPKdI1YieKs/QSYmjTt/g8heUETF4zd/Gh7gbaonsebI8bgFFb +3FAvdam1sNbpHW9I0nfs3FIEBc0GiuTW5BWyUbpTMUJpBq7b367KX1G8h7T4axQJ +edYZb/zP7x0GRGJuNg6N4W63IFV6nVLbUkAItZmarlX3/R4CMFdMKcCcciQRHKZV +RdpGVp2y4rvmTPtOZRMsR+4u2o40nq56rUOzxH04AHLiQ0/1/dTrp5elir5eV8wQ +JLGklpNMfYk7MxRETiwi9ZOI7ma4iGoC4MS/8seuyqa54OZlrpe5enVZb+ThZGk2 +nyOcCKnXseCv+reGd6fVbnKvUePdEusXfHpwEKWwphKQB3WQbgUYcaFTXU/F0o2f +G79eIW9TZunaIy8paDaJjxI/KfYsE/J+w/wmdtWEke6qvY/EE+bOmQXV+rb0d2Re +0Vo2D1tO7GkhtG5DVBuGoXinqSuxRZNOZe0tXDgUBqtX5mbEo7OY1ZpPQgNUFpLb +Doz6O57ZzNnighdUJ8LmuGd7V/cJCseuL3jXhoLSPI7EdQ9lglGA3nIJo8VeRdmk +kc6bPiA8IZNvrwrupTCLX3nvMCIwCgYIKwYBBQUHAwSgFAYIKwYBBQUHAwIGCCsG +AQUFBwMB -----END TRUSTED CERTIFICATE----- diff --git a/spec/fixtures/smime/CaseInsenstive@eXample.COM.csr b/spec/fixtures/smime/CaseInsenstive@eXample.COM.csr index 40011bda2..03ae02520 100644 --- a/spec/fixtures/smime/CaseInsenstive@eXample.COM.csr +++ b/spec/fixtures/smime/CaseInsenstive@eXample.COM.csr @@ -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rzKnNhy9s4MlQeBa9ARzhK1gQ6dc25Ov +IL9uOXMn+jwZHFveWtDLGR2lpLBECMAXd2OkEqFdk6iME9K8IK5swPAkBL6Epnh2 ++8gnhVqgidGWdl64SF1sltWpnnMX4QM6GDVPGxOum5fIFZia61pIlcSZwa9hereY +U8OHPhcCeBTklVhVK5BAQJuS67pD5WebbNIlk/FzSLsRPllVgfOvTaiwv2mEZ2qY +T5ph846i47LQ3wTyfKLMz5BJsNBnEoJZkDReN+VyaQs2kVVclq7ndBO0pud4ngMh +MNUCAwEAAaAAMA0GCSqGSIb3DQEBCwUAA4ICAQCLW2t3Hh3NTn1r3uTRIxF096sk +SMyDngG//YT7GTsuX4j1kGLqluQa5uWk7xI3cAd2xc+R++/oDbfNIP2L8xkq5Gds +zO5g6461SaQul7SgxAtknAs4kUJope0K9FLv4n2oqt6+5IargS4WNy6KnoOVxK46 +0as8i9np3vMZNJITXU0VUVzszO2UDx+Qmx4f1tPTm/0h7U1aCwvzNqVr+Cd9xkie +qbw71SnHGKuyrH66GV/cGlY7vQbYCuyJAXA/qKW48/GNeg0kTP4ZEvkHRIbcs9a7 +664JC3StJfwkWGpvQOMJxBETXgJX/JQs7PbVhFCWh9zNtm/2n1SKP8DUKHGKdrOS +monyZVLRjPJx2nNdkGWWfoQv7dauWoE8hcxDLpQdg4OQUoulMA2tmtOb0OF1FMkz +TixYkG9i8BlZFyC/mdKr0bStc3Ble09ztoLUIs7x8+b0sgbB3hAq5FwGV2nBGnqh +etam/2IaDKzwMLPc1uasZOfI7ru1Z8Ff1VPx08K8h/6n9Ii+iRoUCPbDDtVaL/ih +5leW8ZoTdECB/A8xAjpbWtFGLEH1Je8+iss5YxA2LnToahrih7d4Jfa6tLgjeQb7 +IuFzUcBVLpjW2TGRFetC8PmG8AUrevgo4CYeaz5c+0/N8/EwYgPJ/+Ssd6XyO7UJ +GqDpdMZJx6tx97KPBw== -----END CERTIFICATE REQUEST----- diff --git a/spec/fixtures/smime/CaseInsenstive@eXample.COM.key b/spec/fixtures/smime/CaseInsenstive@eXample.COM.key index dab0bc3e2..e246552ff 100644 --- a/spec/fixtures/smime/CaseInsenstive@eXample.COM.key +++ b/spec/fixtures/smime/CaseInsenstive@eXample.COM.key @@ -1,54 +1,54 @@ -----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED -DEK-Info: AES-256-CBC,897152EBDB085F8EFC4E413FBF5A35FD +DEK-Info: AES-256-CBC,5D7F2D252AEDDB36881E1B7FD72C1159 -ZsrS0f0YULnVTL62P6y0oXMgVOwCxuMMmOlvItfFS1a2JUaPFavBgEJ36FbzbV3J -nBdH0+dxuJttF1pA9aok7ESCELPcmTt6M3N2KSbhfiM3r/VQ2q6OyimX0LGsFH86 -rCM35lPfcLgwDvSvMatLPaTf7gQHAARit5jYZmdUHmtB/2/gAXPCQBWVINdEY0Ck -UD468KVqo+CBA3oQ6nL8r5zcVz3QMDaBUt0VwP+iUEF15RNLnqSV33aiN1zi4LjF -pFI6UCX2AHSVBAXz9o+XzIaE3KdBnTijKn0vtijFwiq7p0YpfSLnQCLyXMwOCLaA -rXxg8aaW5sXvVZ5cDjwlArzNBDmt8GUu72/x7ijqQBa0Mt7K2PvEWpV23VMVIVOa -tnOSrUl+aoOpeJ3ixGfpSq5I7wsaWBIcBYR6nW0fnOsj3RzW3Ithrb5J043rxoud -TDj0Po/5lZUZlvF4RzEReVhpXNxdEtPTW4A7GP8QncPoYneZu60my0fl2FXEhcp3 -v0AHxZHwSzngNmh+MBtDhHrZo0me8R+D6HmqRe8H1B98k7fSO86IMGTJXUtw0kIo -5AeSqLje9OAA5/IiZpIXoH8vBAPhHDqzN3KC2vtpkfM+cQ8f/CF/lbgtE+tEcDQp -VxnAX9FesEDLhG7/H/CduGdnVzDr4zAteUZbQlg0Mv9uWK9UJzvpQZUvh52BnkMT -WzmLYcfAZTYt2rSM4d+qZLGfidbdHhNdcm4EceUzoIijiV8pHsjNxFJr7YBvhk0F -pMZTkmKDdU5rhNUv2X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KCIub2XvxkYUY0ga5MLqvkbn+0 +QOqXqM21iZZgbXL4bBOJNjUynjeZAKOQCmeYokDdvCb4UaJHgANHGZV1y92yX1DX +HwIXXRWRocq5kamaCfObycQivToSIq799uwXPWmV58zmYwg5xmc9+yj95XuHYpUH +jwScK+Fq7/vTMTbicfNwx5bIKZr9zHckPjIadtWivmV2d/ywbR/kLGRDcX27W0DZ -----END RSA PRIVATE KEY----- diff --git a/spec/fixtures/smime/ChainCA.crt b/spec/fixtures/smime/ChainCA.crt new file mode 100644 index 000000000..8b325dfe3 --- /dev/null +++ b/spec/fixtures/smime/ChainCA.crt @@ -0,0 +1,33 @@ +-----BEGIN CERTIFICATE----- +MIIFtzCCA58CAQMwDQYJKoZIhvcNAQELBQAwgaMxKTAnBgkqhkiG9w0BCQEWGklu +dGVybWVkaWF0ZUNBQGV4YW1wbGUuY29tMQswCQYDVQQGEwJERTEPMA0GA1UECAwG +QmVybGluMQ8wDQYDVQQHDAZCZXJsaW4xGTAXBgNVBAoMEEV4YW1wbGUgU2VjdXJp +dHkxFjAUBgNVBAsMDUlUIERlcGFydG1lbnQxFDASBgNVBAMMC2V4YW1wbGUuY29t +MCAXDTIxMDQyMTE0MjIwMloYDzIyMjEwMzA0MTQyMjAyWjCBnDEiMCAGCSqGSIb3 +DQEJARYTQ2hhaW5DQUBleGFtcGxlLmNvbTELMAkGA1UEBhMCREUxDzANBgNVBAgM +BkJlcmxpbjEPMA0GA1UEBwwGQmVybGluMRkwFwYDVQQKDBBFeGFtcGxlIFNlY3Vy +aXR5MRYwFAYDVQQLDA1JVCBEZXBhcnRtZW50MRQwEgYDVQQDDAtleGFtcGxlLmNv +bTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBALlCLGeoHOLGZslOfQg+ +JzCW4OzRQwn63xfIEuoKc3isCtnWs1/JHz1SV6VZp5rSwshlz8PmLlrh0il5IIHF +C5XNlUTdtUOu+ojCNL3DKq7G/BFCOq2JIYH1GSahdrF3TsmEA4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0Kznbfge7UvAV1J+zdbv1JzS2yM+9bR/fYoo4q7 +jxzCo+z0HCyb4Y2qY1CZJFnGQl2Kumm+ArtpzuwchPyHvDr2SmDB1rsh9l/mIOZM +S/cjHbcZVdUJPzs087oueS5ma89NYNlAc7qqNW81BWTGiaYanDmThZaD5f7tUEq1 +tCImVoyzklYQ/41c/zwMaX6vcdwVO7fHqSPd +-----END CERTIFICATE----- diff --git a/spec/fixtures/smime/ChainCA.csr b/spec/fixtures/smime/ChainCA.csr new file mode 100644 index 000000000..b32d20409 --- /dev/null +++ b/spec/fixtures/smime/ChainCA.csr @@ -0,0 +1,29 @@ +-----BEGIN CERTIFICATE REQUEST----- +MIIE4jCCAsoCAQAwgZwxIjAgBgkqhkiG9w0BCQEWE0NoYWluQ0FAZXhhbXBsZS5j +b20xCzAJBgNVBAYTAkRFMQ8wDQYDVQQIDAZCZXJsaW4xDzANBgNVBAcMBkJlcmxp +bjEZMBcGA1UECgwQRXhhbXBsZSBTZWN1cml0eTEWMBQGA1UECwwNSVQgRGVwYXJ0 +bWVudDEUMBIGA1UEAwwLZXhhbXBsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4IC +DwAwggIKAoICAQC5QixnqBzixmbJTn0IPicwluDs0UMJ+t8XyBLqCnN4rArZ1rNf +yR89UlelWaea0sLIZc/D5i5a4dIpeSCBxQuVzZVE3bVDrvqIwjS9wyquxvwRQjqt +iSGB9RkmoXaxd07JhAOBPie0mQDB7KI3GTr+k2HCopesmCtsHNgknJ43S/15ijoB +fx3fzYwDcrg4ADGXQgZtbuwvZ3oZPPFTLwYeblkTY8tpFasFcJWr1DSDLbQGrXgG +wsNP/XbeHtQRGNbvQw19xoRasP1wyLYvkey/y0lnEdLEVJ2/peNs2Z1ncvIIu77+ +2IKARAKEc8IW7Qv68W7k4G15fDBqYRclvxPN9KO1FnptpCFlBFykz/m7ldq9v7eh ++txrIBWSDaB7T3C9iFgZgKFoq6Kdj2h1xoq91LngtB5/JTht4KPGVfOh0ibeX7iC +Q1BpQ0xW7pJ5hMUYOaZUKy57/0PmtCeFg9NeM/GAGEy8EqAeC1WD9SvXkwvujBAx +KALT3Egf70LkX2vm7131wwtVoCYkgl/tlqaP+cLLnGAQ9Jhzx5McjLVtWsJ3C6tt +qtQ9gnfieSg3ILmrga0WOVX9GAzsfqHzrzNl+QQeAqaTAj487zecGy7t0+AvqoFu +vla/ogEUl5ZtaEsMnORSuFOGKf21s6K+nuWUYmaT9T5bVP1wgbFh4msDMwIDAQAB +oAAwDQYJKoZIhvcNAQELBQADggIBAGEZE4KA42LQmdInVryemwDhjaxTbAvuZG1W +BJMx/wmyj8As5QSRTeheGu3toRUm8JbC8MU8+ilij6Y8iEQ6aXgFLBxBmWIpRb+c +N85W4IHSMIJ0bs7TvABlxluqUYxXMjaDMUGz/G81BorhTB+FvBOw+0ya70juTsiC +fj2y7BbVebF+JBGlQs/N20mlaD42If5PQz++UTU0hD12w+by7d6wx9WTrc5aLw70 +THCfYzlPJVa1t1bXxKIOSGeYIIBujpbh36YhgqOeUbdAGJwS9OcRvaI27nR2z47l +OL7VFxMbcI4BpaG+gSIAm2GuHDQWEbNI2E6aGCZ/YpJMDoJiA+kSdBil0RsOzBcA +AZOUYcguEkSmRNspzBGFYDJC2XZnTtzg9TuG5xcU6RmAfVEQ4EtXFXO2sdXgPyHT +yhvb2+zZLFh7y4JLv8iMgh6fyhhux9PrWg6Uh9ZUPFWHEop54LPmhIYny7zUNQsF +X5vz3VrKE38QMiSj997t+D+maayDgC1GAXg85ZBI47jlOMVQ3uXPssskB1/XYB39 +6gmVo3dy8AUQhEsXjnm+LI6k1lOizJxzuaMViqxuVZj7x4ySI5ALvV4ikhYjMegK +aPsqN79VVsgeR3LIW50SQFfg3HSXxL6lO09M93sA1dZsEqSEX100iIGAhBbhRxuo +GH1o7mMf +-----END CERTIFICATE REQUEST----- diff --git a/spec/fixtures/smime/ChainCA.key b/spec/fixtures/smime/ChainCA.key new file mode 100644 index 000000000..3a94558ae --- /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fpzS3TCOaRjyAgeqqmP3PUna4QUsJbuC +A8mKpH1ViikQLES3ejd1cSahAsM63vY= +-----END PRIVATE KEY----- diff --git a/spec/fixtures/smime/ca.secret b/spec/fixtures/smime/ChainCA.secret similarity index 100% rename from spec/fixtures/smime/ca.secret rename to spec/fixtures/smime/ChainCA.secret diff --git a/spec/fixtures/smime/ExpiredCA.crt b/spec/fixtures/smime/ExpiredCA.crt new file mode 100644 index 000000000..653354027 --- /dev/null +++ b/spec/fixtures/smime/ExpiredCA.crt @@ -0,0 +1,35 @@ +-----BEGIN CERTIFICATE----- +MIIGHzCCBAegAwIBAgIUXxtxnYAUn1rxTm3SRmI6uG/cWjYwDQYJKoZIhvcNAQEL +BQAwgZ4xJDAiBgkqhkiG9w0BCQEWFUV4cGlyZWRDQUBleGFtcGxlLmNvbTELMAkG +A1UEBhMCREUxDzANBgNVBAgMBkJlcmxpbjEPMA0GA1UEBwwGQmVybGluMRkwFwYD +VQQKDBBFeGFtcGxlIFNlY3VyaXR5MRYwFAYDVQQLDA1JVCBEZXBhcnRtZW50MRQw +EgYDVQQDDAtleGFtcGxlLmNvbTAeFw0xMTA0MjkwNjQ0NTJaFw0xMTA0MzAwNjQ0 +NTJaMIGeMSQwIgYJKoZIhvcNAQkBFhVFeHBpcmVkQ0FAZXhhbXBsZS5jb20xCzAJ +BgNVBAYTAkRFMQ8wDQYDVQQIDAZCZXJsaW4xDzANBgNVBAcMBkJlcmxpbjEZMBcG +A1UECgwQRXhhbXBsZSBTZWN1cml0eTEWMBQGA1UECwwNSVQgRGVwYXJ0bWVudDEU +MBIGA1UEAwwLZXhhbXBsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK +AoICAQCfWNvmRnwYPzV/5//Z6l89+mySkZ9fNCd8k7dvsqVlp6ZVyOeIBd47Z3cT +Tsk9wo0PG+TJkzJBzrIARVoiCzm9wIEkVTYiMx/Ln9lMRqb3BqAefer2Fx9mSbUw +Z1YLYBr7TBfY9Eugmz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gstxFsNFYt1Ya4odYpR9s7EELOgJE +e0Uz26dMBz8Epwfo/WF2uuZtqK4LHaaXoGuaQAXJ1pt17Kg6pOZ6SlGVm2lMgadF ++fK/LgTDXErFvn207cp54Wz/89xZeNbbdNuZR/P7WdPpNPVULuAYqdPzggJ6t0xD +ASU2Qb5vkBlUlLOA+J7AvtN8XohVtsOAr+1817OCcCvs76euBiTwbwew0ZldIipa +sNDIPSJP0zFXd/T/vIDVCtKRud2QiaqISIuIpaKFJXkcudDVw/rRSh9o/DXhnnWT +ZqCqwFqci6pYLnboaRKyz5DsT1CWQSCUBTKuvkXaGbpBExk= +-----END CERTIFICATE----- diff --git a/spec/fixtures/smime/ExpiredCA.key b/spec/fixtures/smime/ExpiredCA.key new file mode 100644 index 000000000..b8ce9e54d --- /dev/null +++ b/spec/fixtures/smime/ExpiredCA.key @@ -0,0 +1,54 @@ +-----BEGIN RSA PRIVATE KEY----- +Proc-Type: 4,ENCRYPTED +DEK-Info: AES-256-CBC,E208BBCB8457D2F4E25DFD3C951FC0B6 + +S9oWwja3ljXpabWvl9HTlmgmF4ODtgXi5exUO/aRUip8OIqOB6rUPlDN2EIkm3BF +9Dot5y6T2NC7LuQK9/P4CRzJpRtAqomZ7yTllhU2ysAT/zBvl4iqB1WlXL5Trdi6 +4XypGkYaKa+cIGY81gbU3PaeqF/3jbWEP7jah8lqvrbakjmVVcIl1JMvdWdyCLl+ +lN/6SAIi3o/H9nolnWEwkFzbLDg5jrbbXKPtZLBV3Sduiqy94ptvPuLBHQER5WPe +lB22CuoTA4Ps9Jj4hvT7Nj+ymU9SeCujUWxxMDiqQW+hQxgVMOiqfhWL4TLyfHop +R9WNxh0EVMki4wsvtA3KgISFe6krgHfViWhuEAmkmJYWOWTBtbeN7FcQPRlC4apW +lBzqVwD/wbiCrcMzxhAoGhnzn/sR3GbxRltPXpapoMUy2JHfXmr1Pp9Wp84bZ0Zh +GOEihR0cJqsPvwAF5UVmBvL7A+tq6xlF1Qf+zrHr3RQi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r4/uL3Zo5p90hVnHKKpf5 +yQK3W/ErYFoeskcDCWW7luRD9vdtIHQ6mLCsBaCnNBlpCMyJZLCHecAg06pspnt3 +6Oiae0JKThFLuBuHlBkOE3jr8rtkpNLR/XyOHAVlIO3Dgu7yk4Od/aS3aBj445ln +iDnu257QlzV4sN019VrASCE5q0Xzx43SkxbHWQid0Ym7CVHtMxA+xMyUfPAzXijs +o/yPNhDYLtf5tJ+dkJAPgQ81Jphji0JRSPonjgUhiDfv0p8GnJyt04X43PDGXk3n +N9HguUCTMnF/CoXO5H7SeU+MIo/yJQIIUARm3hHJLtHE+Kr7+i8G404wlU4abfcI +aZbthph8WCvsqs49/tdXkz6EvfnBzwy4W+YJhfcKjWwC95DinWSYp5edGaeK6Psm +42D6/QiBC2dM7RmY1PFaUaGmEST03OQb2NmIMbWCmsDEzCxu9Yw+CeREfVyoL+kH +5snYHjtTUMSjz7APgYKGeTpeXmsdmjjQLSdRs6nJpfGoGCNhhl2g/7CyeMUAjBrS +-----END RSA PRIVATE KEY----- diff --git a/spec/fixtures/smime/expiredca.secret b/spec/fixtures/smime/ExpiredCA.secret similarity index 100% rename from spec/fixtures/smime/expiredca.secret rename to spec/fixtures/smime/ExpiredCA.secret diff --git a/spec/fixtures/smime/IntermediateCA.crt b/spec/fixtures/smime/IntermediateCA.crt new file mode 100644 index 000000000..77d6a6227 --- /dev/null +++ b/spec/fixtures/smime/IntermediateCA.crt @@ -0,0 +1,33 @@ +-----BEGIN CERTIFICATE----- +MIIFtjCCA54CAQIwDQYJKoZIhvcNAQELBQAwgZsxITAfBgkqhkiG9w0BCQEWElJv +b3RDQUBleGFtcGxlLmNvbTELMAkGA1UEBhMCREUxDzANBgNVBAgMBkJlcmxpbjEP +MA0GA1UEBwwGQmVybGluMRkwFwYDVQQKDBBFeGFtcGxlIFNlY3VyaXR5MRYwFAYD +VQQLDA1JVCBEZXBhcnRtZW50MRQwEgYDVQQDDAtleGFtcGxlLmNvbTAgFw0yMTA0 +MjExNDI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hrX7m61NuvqdkfEJ1E1kmMne5xqo +QeDjdRJtN2r3Ybdo5SjuzLLAg2iIGAU8z/hiA97dFzZuC9mS+NZuNnck2VWhLOsu +KqZwNSpDQq8AcgggMKMfU96xlft9rpwZmJlYIr2MlV9bPAmA0BGr/6oEuPPHxgEy +GtVED5BCJqdvQlQFpSVRlcbaJvrzZ5IqBvFkWQLe8T07vmttm8mAHVVd0MlGQJHX +TpaHbS76wdbneHx8sA3rS0HeVaTGa6cfDYlWcpSH0SNa8+a5rqzHmTsHfrO8qQy3 +xGUSOc/F8aNSMj7/siux0myLCNTUaIGaz86192UGp3JdpA3TQu30vwxyldtuIyxL +bh/+4XLy1FqZBq+Fx6HlhcBgvHiv4Twg7Hj0jH9OBGYEi1NKS5GfT//VEzTFRapm +5cuexQIbnr022BCUOiBQF/EL1dq/f4Vg+dRPq2X7YOQDxjVWCgJ1GwcllDzIfbkd +PzP09PH9yW2ZG5FU6BRg+3Y49tdUfd+WxxoKWR8W0XrSyG7gWY9e1fB68mN3H8rn +AFhOBWMDCNEbNZlv7AOfl5tLY1OGot2zbBYrBWv3FLTe2VeW4YtaQW3mJjdrSAUb +0hGRWVcL3m6vBcofqSovjh7E2LGmo5oyBRM= +-----END CERTIFICATE----- diff --git a/spec/fixtures/smime/IntermediateCA.csr b/spec/fixtures/smime/IntermediateCA.csr new file mode 100644 index 000000000..99757e7e0 --- /dev/null +++ b/spec/fixtures/smime/IntermediateCA.csr @@ -0,0 +1,29 @@ +-----BEGIN CERTIFICATE REQUEST----- +MIIE6TCCAtECAQAwgaMxKTAnBgkqhkiG9w0BCQEWGkludGVybWVkaWF0ZUNBQGV4 +YW1wbGUuY29tMQswCQYDVQQGEwJERTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQH +DAZCZXJsaW4xGTAXBgNVBAoMEEV4YW1wbGUgU2VjdXJpdHkxFjAUBgNVBAsMDUlU +IERlcGFydG1lbnQxFDASBgNVBAMMC2V4YW1wbGUuY29tMIICIjANBgkq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D/DQgQHY9HfSln+BBc7e6nxR1C8NYoYFvxDmwef+EnPfCp8l ++wm3C3yFrmjeJZKghymhyI7AB9JNwpvsnGkBBHmU6xIsO03ALhyMXceFUNdEFgQJ +vwu0hHzZyiPdzSVkMnTwh6rhDhxm3jRHulwez+AacJ6sD7pZ7DCGSBIYw9hdCgK4 +yzt7MpiR/CjMzdichJu8ECxsXK12St5Ls18Fp9g16T2jNEHGetMUsDzfppEUffyc +cgToKyRswkqKppag69Lzj4305r7toJwmUB3TyIcQEGIO1DbCF5fUz0RN7d4OFRLI +XxwTBJPAIBJUcrZI9XxRuS/nJl/g4wVNJmM4sxs21PV/Ex3J04oP1bAyY2T3f3L8 +0w5OwMlyv1ATW1qZwQ== +-----END CERTIFICATE REQUEST----- diff --git a/spec/fixtures/smime/IntermediateCA.key b/spec/fixtures/smime/IntermediateCA.key new file mode 100644 index 000000000..cbb2ba0dc --- /dev/null +++ b/spec/fixtures/smime/IntermediateCA.key @@ -0,0 +1,52 @@ +-----BEGIN PRIVATE KEY----- +MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQDr+WGVKcNrmkFK +J5NHs6eCbix0x5mQjl7bRKZ7uQVV4hQFsQyHA51fafy/x7nFf/RaDoY5JFZtMYV0 +d4MDXXNMDlWIZrW5ECrROD6Jq4uNrFE+S+NF7Hx9qWBFvwCnMgZcVie9fow/5SuT +YZQ89/U9NRruExbyYQlXqBlHUo3hcYsurptHDeuaNpexvqao8lTFuUk85Nojdxey ++9yzAPCkObC/Yr1hp7igMIEzKiE0+hnCReK7CVnwqs6SOmz+tvRBb2w44eUIloDH +oLNm/j/g1DjvwnX5TdbjsKpU0qwLDQkpLF70CkUai9w8VhMU8fHxCYVx3iqH8YvN +e1ehMt970biFKsm9nbhuc3kaXS4FMuKXIqCuqiwW7fWxN9WrGQtB9O650vUV0+GR +hhMOZa4dYEPGdujtQBokGgZaKEMLtXP9IDdAhAEKgWCgKBy1X3Y2bYxj/SrpbMU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yUl +u4sPHxT2yAsfKhmOaZDxHyLyP3lpLw24Qu6gvPL8k03xJFjXEiQ3fwjFKM16BAUT +9q2l5low5UAgZIHOm/QE0zld7fPLv5ioZWSGIsXAK5B6q8aTyM3lWJebUxSlgAOE +0HzinnhACjHgQl76O2SDpn4NXWE6fDAKBFD/zDnStOSSyJfWm6bIdEm5eE9Fagok +PcQZAoIBAEBYAjzsjsOaWOi3S1tMhsnidhhEqp1RLBGUO1af5dYFmgo+4Nh7FUvB +LcdcJaxyIyu2puM9czJ7Ej3sZCU/btump0IsZE/7S/M0Y7A/kztBdtAWNrCeTIre +vu2Y8gkqOscr7W4Jq37GhMWUEh/v46aBzILTHc6NxPcmC4g2Jw9Wtsgakk82HZpz +SqroXae/pxzjbUvtuzmVptmS+RWd+hbqKCl8Dh25aI19LXN4T67m/yMPDyFwQq2X +NpjVV1SY983CM7r5w6nAENd/vaQE9HKR47G6/scCXjNDk05Z3cg0NorLqUn9KmPx +yg0OPRX5/lGeLLWLFecjLNc7Kw2mVxU= +-----END PRIVATE KEY----- diff --git a/spec/fixtures/smime/oldca.secret b/spec/fixtures/smime/IntermediateCA.secret similarity index 100% rename from spec/fixtures/smime/oldca.secret rename to spec/fixtures/smime/IntermediateCA.secret diff --git a/spec/fixtures/smime/RootCA.crt b/spec/fixtures/smime/RootCA.crt new file mode 100644 index 000000000..7a2d897d7 --- /dev/null +++ b/spec/fixtures/smime/RootCA.crt @@ -0,0 +1,33 @@ +-----BEGIN CERTIFICATE----- +MIIFrjCCA5YCAQEwDQYJKoZIhvcNAQELBQAwgZsxITAfBgkqhkiG9w0BCQEWElJv +b3RDQUBleGFtcGxlLmNvbTELMAkGA1UEBhMCREUxDzANBgNVBAgMBkJlcmxpbjEP +MA0GA1UEBwwGQmVybGluMRkwFwYDVQQKDBBFeGFtcGxlIFNlY3VyaXR5MRYwFAYD +VQQLDA1JVCBEZXBhcnRtZW50MRQwEgYDVQQDDAtleGFtcGxlLmNvbTAgFw0yMTA0 +MjEx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jrgb5RHI+saBWOtfS4HBIWYouyayqwBn +B1QnaTsEjFl/yirkwETvbrHfcVbG1h8PoBnekJWFMKwUel/SSFPfIwoshTZSfvXW +wwp81AsNMd0QXXk8jBI9TwBDZ068QiC821XynuoRZcDiM63w4ylhCPJ6DTZ4bHBn +Esr6IIqaTFKTzmbbRyasJjML7ycPrgz3WKmFDh4TvpC9L3KKjZ0iNvJfFSqDxdZZ +U24otkmG1Nu8pdj4wB8KGmBON2F5wNRxP+Cnng32GXOandK0l3INNISZesR7LY+g +swGRnluzNpBt7BxLJVbuJkjjNYxjGgaXBhr77n4MmUk9jfFkcKofOzkHWhqKbCRG +8BZruOPeW7c7iqdMHMMUtKHheTdeeeedeMQlta6BvrrMcj4Qa44XmnGFkANVQznz +WiAz0hhMW7R1jt5LLH8h448nwzvn2Y5scGgRbhkxTgnMQ8JET28gyuc6jtIu+xn9 +ZZdwAuu1/2WMAnB0KMecVGuvbzZmXNSUG+tGPvNWqBPnnU6cOqrtJjh7RPogrmJt +Q6w6Ui/yVqcM3XUsPKUP445Gz84YEhVW3S8goGzRVciJmj8KWVR7tfvN+1VyKLVU +/Vl4eS8dIVLfwxd69dsANohe +-----END CERTIFICATE----- diff --git a/spec/fixtures/smime/RootCA.csr b/spec/fixtures/smime/RootCA.csr new file mode 100644 index 000000000..9dfd87d53 --- /dev/null +++ b/spec/fixtures/smime/RootCA.csr @@ -0,0 +1,29 @@ +-----BEGIN CERTIFICATE REQUEST----- +MIIE4TCCAskCAQAwgZsxITAfBgkqhkiG9w0BCQEWElJvb3RDQUBleGFtcGxlLmNv +bTELMAkGA1UEBhMCREUxDzANBgNVBAgMBkJlcmxpbjEPMA0GA1UEBwwGQmVybGlu +MRkwFwYDVQQKDBBFeGFtcGxlIFNlY3VyaXR5MRYwFAYDVQQLDA1JVCBEZXBhcnRt +ZW50MRQwEgYDVQQDDAtleGFtcGxlLmNvbTCCAiIwDQYJKoZIhvcNAQEBBQADggIP +ADCCAgoCggIBALKSu6viKLv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bmnfd2YCBmOuaA41S3JC +tLMl21CEdbtVi4Y9jokvMnJtlPsBxZFz4P0JrRk3iP3KhULH5ITmoWm+JPcXEi85 +NfG9LSXATsbwcOm1fO7VOd0NurGCfqidyl3CDC3qSebhspLg2ThZwfUG9eY1uHnO +JRRRRTvf9O1zyb0XdtWO1R6495Qgs5YrbTinJXI/4B+73X+0dqDPIhiW4etaIo7/ +TsYZ512jIuikY7mHqjtZ3YiBOZgtacNmI0mHoLPyN2SPCoPXlDXB5pchyuTWO11q +HhRV0h9U8K3RO9XZep71guh89s242Kzw9Nh+amynAGDF9x62K9hzDjTR4y3GqF7Q +UT9Sjf4= +-----END CERTIFICATE REQUEST----- diff --git a/spec/fixtures/smime/RootCA.key b/spec/fixtures/smime/RootCA.key new file mode 100644 index 000000000..9b9819daa --- /dev/null +++ b/spec/fixtures/smime/RootCA.key @@ -0,0 +1,52 @@ +-----BEGIN PRIVATE KEY----- +MIIJRAIBADANBgkqhkiG9w0BAQEFAASCCS4wggkqAgEAAoICAQCykrur4ii78ytU +JuQevLbopIOHIky/kEis/QVLc9ymhHG/8ktM9TtExmQPq15HmjO+2HZV5+d0zmvx +PDhiQkhLAkykmvFMEivjvQhK/og5PVaVTNcW2YNy3ExFzRtCUP13FpdFa4ZKxt9y +syScxd9MMe6S2my+h7iElQ/sR5aiKzuA9GnA2kVsqxeOM68Yo8WeIRYCh6sZj8h4 +7cKJMf1dROS3jrmcfqgwltv23fs71aWNRRTGW1Scmdl4KlzCGQopxnXljGms9R0o +Ogq4hnnKX2Fo1iwRECustTrepdDP5zFwmNipcO3kJjY5/o0JVdNdEcWRQj4vXtL3 +iYS6aQGxEIwYPDOoFRwHZHNNLHQatxgEqhDOFyYHy3SwBh701oufeSW7E2bkRSeL +lVSpdiWL0XyGtdOmpIkINONMu5R0Zvm6wbVgKyRtivnRmyYp2ApVSMhMz7A7diC0 +9Efu+Of5+UqUqOHuGLetp8ZHDWeF2vphYgkEqf3x3Uvb6uFdWV0mbIhQf4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DmDIK1HW6P +t/u2rOUw7V4ZVu8EkDj3+OUyGnnbJGgiPPy/Qg3y6YZWrmE6nI+o9nT3quCNAA/f +1wRp+cCK4/ePWQtU1AZkNTabwAIv0wLO3apP2vzXlDSKYNSgS23h6ToPgagshaJ9 +ponhAoIBAQDMiNJGau2Y/4I2Qghcv1ASjbEfDherJG6sL/z69i76zKNsI42wk+FB +NthpTvDL++zr8Xu1M908n6XLrjWfYht7YW1wpqdiMjw8sdl0rzBd3GB6KW6NpU8n +cDCWUbAV8CtAK+jna0HwleJEirLxor+gvLnnaDkPsF/V0ZqTOhyaZ2hOnmJDZ3hn +YT3G9ZYsK23NvfCmrSKoKpTEHvOcwFSJmRmCltgooE88NOyem4nNUJU8dSlhQHJ0 +xOEBTn5IZ8IXNJJQ7ruEQOFIimNKzM2Tb/8z9j5W50Smew3f0/fkq83Jmz+r86eB +PTKtWs0t9xNWUUy4YE4MDlsk7fHnWlMc +-----END PRIVATE KEY----- diff --git a/spec/fixtures/smime/oldsmime1@example.com.secret b/spec/fixtures/smime/RootCA.secret similarity index 100% rename from spec/fixtures/smime/oldsmime1@example.com.secret rename to spec/fixtures/smime/RootCA.secret diff --git a/spec/fixtures/smime/ca.crt b/spec/fixtures/smime/ca.crt deleted file mode 100644 index a21cece14..000000000 --- a/spec/fixtures/smime/ca.crt +++ /dev/null @@ -1,35 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIGEzCCA/ugAwIBAgIUdRCemO0RlIZ2tZTwO/1W2eeR/eEwDQYJKoZIhvcNAQEL -BQAwgZcxHTAbBgkqhkiG9w0BCQEWDmNhQGV4YW1wbGUuY29tMQswCQYDVQQGEwJE -RTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJsaW4xGTAXBgNVBAoMEEV4 -YW1wbGUgU2VjdXJpdHkxFjAUBgNVBAsMDUlUIERlcGFydG1lbnQxFDASBgNVBAMM -C2V4YW1wbGUuY29tMCAXDTIwMDUyMDEzNDcxMFoYDzIyMj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R0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAgEAa6/qeDl7R1iv -rRR66oAjjkt9m191fO41c/f+kA8qOeCNKuZRGWHYPRJYg2P72uQFANHawl8jcFlW -3gFNJ/+i7CxEhxeIFxIYX+wFEgqCBZCd1Ao+4i68C4EAVNVmtPxC96aGstzgamg/ -qIv70DpLDpTC6ZcD/qHbJQb2Qspsuz1jvkELQ3on77utHEaJcBn6C1qKotRIplWH -OKTczLtCgx/BI5QGV+XjzaJXm34l5LS3fA2Y+f2faSWz6lBjSZnTTxijBQfrMDqr -2h6CkEWniPeEY85Knbh7tdc7l0Q+mtUEXrw+8hrDRu8bVAfeGsx4464gd4ulZrmH -bBVqTxsarhih/UsB37Pk+lAueB5T/aqbr4QJj1mu+hukQcqySUCbl5b8S9sgfbB0 -RP+N9OgqRnkLlnds5eG3+XJl4G6h0iWEKP/XapQcf6VBZTvs17AxVnPDvDUKirTG -ecvAj8m07orp33Ng/5obFYxgLaJEBh2bA1NIVvPQzaYxDssp21JOawyUiWEAc9u0 -itycRBjSYxp8Q84HSj2Mw0+RQ4LKpclUlBeuN9tKo155lJanGVOm3Dy7QhpI0nxT -LMOTqLLv5EJo+5ok1IUTLBkvtPvFsYVZuauJyDdTUc7fpdILXXO9jGIKcBzf7ima -FglHwSJZSR2WTTsmd6f/9grOUVNt51I= ------END CERTIFICATE----- diff --git a/spec/fixtures/smime/ca.key b/spec/fixtures/smime/ca.key deleted file mode 100644 index ecf4b81bf..000000000 --- a/spec/fixtures/smime/ca.key +++ /dev/null @@ -1,54 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -Proc-Type: 4,ENCRYPTED -DEK-Info: AES-256-CBC,C883629DF6D2EB2F339DA0E9DDE3A287 - -k8zGHkcIbwXp/99xhnmtvtmZQW6Q9lxEB0cjAgUdC9llRRBFnEF+0WdRsY47iBs5 -V8pcjT05/JN4v3rKoT5Lg2C1/HpNfseknVVw7i9tSV1Votc/GxwnRHR9j1g3aIVG -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xbnH -1+WCKYuIG07WazgAEhdI7dZkM4IxlOAvKb80G4BhmgdhmUMrGdfPXuwcxwdSwAyR -wLrNw5PgUH4DY24nubLW9qKG5e0V/GCZjYYSF4jF20wmUAF+ISXmGP2K7TfNHTxx -mtfOlZ0nDZI6roE/FALvEILI74CRY5BotAZIaRGuFAUorV4xQtjD4Uc97UKtPn24 -0O+izdgtvv2Sig+85glMNMfd5Y+xuxWiAYnxgF4i9sZvoWd7cTnBDyV7YF8gKAcv -Je/lwf/+93jehYZWPyWkXvteTnp80USUhvTliSNpQpS919L02nM5OsPA+9wbq2RS -dfD9iRUPhp2jHyJs4VECdSZs6eAOsSSCYKyb+ZYr4lf/O6n9sXXSwB4VFr7ZS/3N -HzXBwCbu77ferErRrcsbcDtRwn/fUSO35uOKm6cyAeb+JSKS+eZee/wMoQOjMfun -jaujUsPDmC2XottiVccPdzK8fQQDQAlvg2wpBVk3L5dC+USnVhUVNHZxe28GMRvA -isoEITkVRxik1+EqntwTOuf1FApZsxzZxvRT8zvqiIr10Qk5vctt65tWDJhZCWBk -3JaUjWOvv7aCpKAyjeKSBxlnDkK+4g0mEN6kMnjz4FzaFcDpgfczI+ZvHgDytYpL -EfVZFq8ID3guC49XVBbcbKYlSqgn1Nvu6PessH23uKPqszJQyHaUHEMeh9T6wm/S -gd4Cb2jJoRgkewiYEmzEf8ZOsmHTac4uRj0B22UiUJqATkmXS8AEPK/rcTwavsiI -bH3CiOdBHJYYuh+P9QTn6k/JVex4AMf7Iou5XLZEhDmr5FFBmDuvQ2gD74P5QZgP -+kLRM+0q3jX1ABuYPCECSDuJOjkhv1jRMFA6CLXx8ivcfFUIwvXxAHKMpjUqggL8 ------END RSA PRIVATE KEY----- diff --git a/spec/fixtures/smime/chain@example.com.crt b/spec/fixtures/smime/chain@example.com.crt new file mode 100644 index 000000000..f67e74c2a --- /dev/null +++ b/spec/fixtures/smime/chain@example.com.crt @@ -0,0 +1,40 @@ +-----BEGIN TRUSTED CERTIFICATE----- +MI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arVCdxot39OdFF1klo +Z8IujFT89VOxkVBXNxfohoLEmzbP+96pm7M1gLnrZQemzEjT/XVX1Jpj61gQI4B4 +UZMQDpxJC17Jf9R3h4wz5cM+SR4SYYQU11YhfQx9nI0q94z4PPU5r9HxhvgT62Jr +jAdzUQ/DbqKiXvEOWVdwv7ngQYv5t1XfBvpFRmpd+tWvXNgwokY4kKcxtVngYcIC +460mH8KjvhDC2jYBeOk1Bk7u2UHWgfsNMlCjSIqulvLfyylMHajSmUta3tN4a6TI +Vb5pWIKSoywRMCIwCgYIKwYBBQUHAwSgFAYIKwYBBQUHAwIGCCsGAQUFBwMB +-----END TRUSTED CERTIFICATE----- diff --git a/spec/fixtures/smime/chain@example.com.csr b/spec/fixtures/smime/chain@example.com.csr new file mode 100644 index 000000000..155e2ea99 --- /dev/null +++ b/spec/fixtures/smime/chain@example.com.csr @@ -0,0 +1,29 @@ +-----BEGIN CERTIFICATE REQUEST----- +MIIE4DCCAsgCAQAwgZoxIDAeBgkqhkiG9w0BCQEWEWNoYWluQGV4YW1wbGUuY29t +MQswCQYDVQQGEwJERTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJsaW4x +GTAXBgNVBAoMEEV4YW1wbGUgU2VjdXJpdHkxFjAUBgNVBAsMDUlUIERlcGFydG1l +bnQxFDASBgNVBAMMC2V4YW1wbGUuY29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A +MIICCgKCAgEA7bCGOsjuITVjIlThzj0l3shQ8Hm6Ncknknh89TVG4b92pQb+iAzZ +FOJtWZIGyKNhkHpra7jsDSuINDTcDeZ+y9J+3o2lfrQ1xeWamXzNqhCa8rcbvk6K +gqvo0F7Hhvuuuka28POeyZ03vq6l9I5F6dfBsUfsB7y+/QjvaA0Chmk+eJHGqinp +HxSTFcHvhrtUtZgmCPkYBCvpe0u3q9XPt338WW3SQdB0wJC+YadddvSmrj404ZTM +PH5+QiLN+fq5GDNLt2iyNLPmi2opC2niNifUrKz0ENPhC4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j/IEdYh8sIJ93K8KSlyYNfZ6vtIuE7wvzolO+F+8qvTAJxwGZ1jv1/73a8R1MUfW +IOo2jg== +-----END CERTIFICATE REQUEST----- diff --git a/spec/fixtures/smime/chain@example.com.key b/spec/fixtures/smime/chain@example.com.key new file mode 100644 index 000000000..278f95141 --- /dev/null +++ b/spec/fixtures/smime/chain@example.com.key @@ -0,0 +1,54 @@ +-----BEGIN RSA PRIVATE KEY----- +Proc-Type: 4,ENCRYPTED +DEK-Info: AES-256-CBC,0B9AC9B9AFF482B0D6EE33EBB73F70E8 + +3NmSikaeg2LJxGSjQH9hFQ8+DsXPow3zi3HZdC/p/0u8KUDBvcQxEWE1r8MiKgEg +UZIcdOAatz7xTLT8OO4K+a9eq8oCmUY6XUjFTnnST6/oCOSNV+QsQvo6kZKQBEU9 +eLe+gqB9ilvShqnAW0XHuwXzHj1oMgPc9/ex3d5QXeAlRvNMrKqZuZtuvfBxhQ2M +WSFzUgXSAfENKAzbCxfC220tawhwudAL6kL1FJH3JwZkuaIR/uQjNKEVgCDfeq9l +n9cXNw8wDxnYZQYxV8dgFrQOx1xOPBHQyi5f+6kY0t2SkSyr668PtSpNetgJVwDx +sbDIAtPvp+fks6CmMT+fw3MpiKP7z43qpemWsk0NZgF8wgb3aq/aW5+6X3grUcDH +xkDNAve8VSY7d0D7hV3GqYTGGvUHiKw/ShCf5nqdqtAUIe1uQMfJGO0/1ujbKW8z +NgjvucmLLqb85pKnJXMG4JNOeOQIyDKnQCMmTdNkD2oXRWv8unzcwj4E7+B3w2mV +3vIkJL9P7t8XQ2VxOAaDTQBSojHts/PZli0/sqybw70YDc8LQlTL/kNgL6CurXf9 +NGbatn2BHR1gSwwhEVLekIN7sfP6nUtbkV0QbzHwY8vX8s7sDBO9ykJrHIg27TSt +hGFzD6v4YxDunEoNdjerwEgPqqOAFa6MWi9QiVuckQJFAYTCf2+32L0M5MJpwqvm ++lfUlruN3TlM79US+gh4fA1Ebt79VIdnlbhCMOMHCMrzueqigRWg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VlW +hqZI8Ct/6W3mTNMAWiOH86y+z8LCZxkT7/V+j/kgBidZAut9hHT8BJk4vu0w2kUn +rtc1oIlXHQgCrXyJJ09id/jnEx38UsdDiIqrl+YkqppgAQYYZO0QST+0CKjMnnMD +Pt6KxrlHoJe9CJSl93pqwkHGgyWI/PAQQ7a+XCXYvFCCz/8KKrA8PYS7OtiSlfRC +5lAEXR9hJmKpczs3XN+ZoWy2liUbnljVdSr/LhB6Pktpz7ryWbgMxE4iehicTym/ +-----END RSA PRIVATE KEY----- diff --git a/spec/fixtures/smime/oldsmime2@example.com.secret b/spec/fixtures/smime/chain@example.com.secret similarity index 100% rename from spec/fixtures/smime/oldsmime2@example.com.secret rename to spec/fixtures/smime/chain@example.com.secret diff --git a/spec/fixtures/smime/expiredca.crt b/spec/fixtures/smime/expiredca.crt deleted file mode 100644 index 0a290508a..000000000 --- a/spec/fixtures/smime/expiredca.crt +++ /dev/null @@ -1,35 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIGHzCCBAegAwIBAgIUYIratodSaS58JtEjE1cPRBaOADcwDQYJKoZIhvcNAQEL -BQAwgZ4xJDAiBgkqhkiG9w0BCQEWFWV4cGlyZWRjYUBleGFtcGxlLmNvbTELMAkG -A1UEBhMCREUxDzANBgNVBAgMBkJlcmxpbjEPMA0GA1UEBwwGQmVybGluMRkwFwYD -VQQKDBBFeGFtcGxlIFNlY3VyaXR5MRYwFAYDVQQLDA1JVCBEZXBhcnRtZW50MRQw -EgYDVQQDDAtleGFtcGxlLmNvbTAeFw0xMDA1MjMxMzQ3MTVaFw0xMDA1MjQxMzQ3 -MTVaMIGeMSQwIgYJKoZIhvcNAQkBFhVleHBpcmVkY2FAZXhhbXBsZS5jb20xCzAJ -BgNVBAYTAkRFMQ8wDQYDVQQIDAZCZXJsaW4xDzANBgNVBAcMBkJlcmxpbjEZMBcG -A1UECgwQRXhhbXBsZSBTZWN1cml0eTEWMBQGA1UECwwNSVQgRGVwYXJ0bWVudDEU -MBIGA1U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sWcShpprJpxjnCkScYgMIpdPTsMDwGDIm8vLME -rhV1tMnaLwJghpaeBvIezo4tgUvEThzrzDKJ4s25E7Hu95lHZm4EGFqXl8uyMEqU -NMzhPODWRyznmrj4+Mh4D4/fK5QwPWYj5nyFLcP9ItMPVIQTPJrskrYQODXYVlTk -fVj8HeI+8vQ5Gv4op20KN5Or/l10xlqCKWxP/1VPLMVCKR0eQNHICbS5VNO+eKBz -KFe2mc2VC1Vw9n6WJWMb5PMexR6ZRPPICRRtkIxQzrEjXbci+a8fwYnRHb7amUZN -qGNB/14xa8IAtdQb4l54B/xb/YZPDuxLiUiWF4CUkzER1ITH57yGVYrMjuBO4Hfh -nWT9PMOHSwDu88+ElX+axvgPX9OmW0s0aOiAcgPVba2Q86cWER9ag07xyGPQ7Zgi -f+L8MeemYl0CPDVMPjp+o+gm5eMzOAbakNuVfiNzGYbJYBT4OqurXRKPn6AKFhgg -NkiZz+lwHxJ8b6Tm9xITXQdyMa/6jUOgYECu9RJO4qd38sg= ------END CERTIFICATE----- diff --git a/spec/fixtures/smime/expiredca.key b/spec/fixtures/smime/expiredca.key deleted file mode 100644 index a379d1b8d..000000000 --- a/spec/fixtures/smime/expiredca.key +++ /dev/null @@ -1,54 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -Proc-Type: 4,ENCRYPTED -DEK-Info: AES-256-CBC,AFFF2A7AF6117991109A4B9D75D38008 - -tJc+dKbzF4ptKQWjrfnUsIa0Ihb44cVYtEQ63ouhN13xVNFSx0N0bBl4TehPo3c5 -OFG6asNMadxSSsZKUl3IKrZkcysUBD+U6qBg4ysdR4FO1yeUaoX7UpyIGSvl6fSY -reuBu+3IOTveUQNSFBrlIGe6/KpLNupG9dYUnXkRD8oCNYacb0K78JL8388YKgzn -XnXSUoKhlTa7jyRZASE5gdTEdMXjl5FAlWvtIUotkg5/oOa9clVg9psli/3GbHdp -BDa69kimwjvTHbeeqx4wk4tZ/G5bOq6H5LLMT0eD6R1e2upObpMWsfxgLO9L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lioYwN4Rme80AmzwnT1up1ZHa1O2ec+2dQudnLI7b3HIHj3qmw7n -M0SDnthGBVED1izQKfTpovzKfWkQ4oIZLAktxy3TEUVgM0ni6zoNK9dQrm/QNuKC -sMeV3HoxoZhioxxzhUDDuwZFr1oPhLn8p4gnwoTXBqZEiENjdy5w+pZ/r5InVmM5 -CT9sglDIz3Uge6o6OA0kvNif/R1BFH8crMoWCZM10SA3N51emByYd0G0Hdv8/qNw -/13gJXwlOl3pMIkOpjhWcHrLh43VubMnF8ldmSd8AVuvUlztr8KK+C1prUV3HBzg -01HLizyWbKEHeFEFCajAdLPxl5QJZj0RRMEGGOeMUv+xVtIzrYb7Qzvlmfivr42n -6T9qQvT9zfRttMA+bl8XOcGGVEfYDR7p0O0Xg3QAb4v4k5NtbA8AMjrHOWqQRpFj -yVf9nJlLm2MhvVA6CTRzk1tIRtndQDBUWWrDB7jXMOlxUgJsRZDlGYn1DgvYyVNZ -LIzTMNgeIKiC6vvUQNPcPn5U0SE6/BbaM9+G6vWqyWWr1ryaihu1xygBksvSFSLA -9hVIIoiZ+g5Gir7ZBsl/q2ZU9/k852lVQu6EaBI7GWRu8h7ZV1o/YxSwuiMLX0CN -fUFbpJW+LeNjeoKBfzyNjPTrFmOQIWS0FSL6Ktc5W+5b2qJZ8yxSrUxn1YzHdHhA ------END RSA PRIVATE KEY----- diff --git a/spec/fixtures/smime/expiredsmime1@example.com.crt b/spec/fixtures/smime/expiredsmime1@example.com.crt index fa1d90f69..65e894055 100644 --- a/spec/fixtures/smime/expiredsmime1@example.com.crt +++ b/spec/fixtures/smime/expiredsmime1@example.com.crt @@ -1,37 +1,37 @@ -----BEGIN TRUSTED CERTIFICATE----- -MIIGZzCCBE+gAwIBAgIUCSX5LFwjHF203lCsQWh3FmcEo3IwDQYJKoZIhvcNAQEL -BQAwgZ4xJDAiBgkqhkiG9w0BCQEWFWV4cGlyZWRjYUBleGFtcGxlLmNvbTELMAkG +MIIGZzCCBE+gAwIBAgIUSgPVhv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AwE= +BgEFBQcDBDANBgkqhkiG9w0BAQsFAAOCAgEAW5Yio1MuJ+90SijCOsD3UgmGW0fo +V/quX8x9PEDR4nCt1PM4fQbKtTOPgDCz7LVGP+hgQWG3nCbIwj7llGrNKJK6iHmP +niIr99c/t4YJHcFA4au1bwiTDLfci3S83G2jvvVvEpLemubgnoYk+2Wy3fi85+Ai +Id1KFxXNrsfYCm0+ch6tgQb1qdEbV1J6Ltx9d1lMOrv+i1vWGXIL7HTohmEaxSnm +qRUJToLcFPTbJcOSAL2tuMlkXMJaWxoOUDcuY9LSLanERqnsrObZJ6LX5q3Bxg/O +grDXav9eVZO+aDxkLQifYRGCUZFfQ5QWIBstgPX5qtQgwvTxIBanGwgq8BEDEKsB ++4hOvbcy0ZRnOGn0+HEsFRxu8EElgT7SoWtny1noMad1V5xD46ArCxW2GHBZn21+ +l2AObW4kcVRVeRDHQ7Bo6W1/Gk+WW7IKeNuaKfV0xlxtN/3lNU/3WIqvslAiuBkh +KPDBJNe+UTt17xQqUE1n2hrbigdIoKUi79ChL9LD0VdpTym18VzhB7O1OaQR3ABN +XN9g0K7hSy2tW1JOTBLclyP0J8XgH31nvxOHq4cz06IF/5tyhD5bu1zZqUXdDQeL +P2TkhSOPV/SErnuqFts+hffMgdcU99FFvCEilXaCcsVL7G1IzmnhtRPbC4B82eAJ +yCQd9spuocL+UiwwIjAKBggrBgEFBQcDBKAUBggrBgEFBQcDAgYIKwYBBQUHAwE= -----END TRUSTED CERTIFICATE----- diff --git a/spec/fixtures/smime/expiredsmime1@example.com.csr b/spec/fixtures/smime/expiredsmime1@example.com.csr index 5f2058ca6..b8b74d306 100644 --- a/spec/fixtures/smime/expiredsmime1@example.com.csr +++ b/spec/fixtures/smime/expiredsmime1@example.com.csr @@ -3,27 +3,27 @@ MIIE6DCCAtACAQAwgaIxKDAmBgkqhkiG9w0BCQEWGWV4cGlyZWRzbWltZTFAZXhh bXBsZS5jb20xCzAJBgNVBAYTAkRFMQ8wDQYDVQQIDA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N1UV5c8A0+AsRnWHRqD24LjfezGCDtjWq5VvLjUOL +7A/K+7nuGHeB6AW0sxVyS8fSrPIOsnm4t3rCnFCeryxjVFnbazwu5H/Req+m/9hq +kaOsVaYoqlVKTBCqsuN0d78C/VSbsQTAAlf+xZnIry9s/WHBJPqtvutWuOG5OvpI +ewIDAQABoAAwDQYJKoZIhvcNAQELBQADggIBAGsEF1dLRxzGVqD6byzcjfOIMdMK +nfeE0P9DVOq7FEP28eLSzY04evoW3RY38v0WZhp4KQrptOhGydQQWLTWM3Xy5knE +tkoT6UnYI/hus1aCiM/8winnTV545NtGN5fAZtslyjfVv2uaoKrwGbxdw5ewGoE5 +nQSueMck17k9fa4fqs1UDvk2UmZGrDyL6REY4rypKmNRkkwUmbLxyT34t8UDYzBO +CoCWmvup7x/we2iwqv2r3glxRurgOK6wDPsnW3AMCZT3aoU0FzggGsfognQwlqVR +vYKA9bd50JEpCBMmWCox1+Yc/aRGEyhWnPDv5zZwVgqPeXFdB1pJkRMcYQIvnV44 +zgwNM6hBGYgsHaP3LZ3fQz/+gdbWrJfuZFEpHVoVyAg7cHq9nUVW4HfsQcskElo8 +XDOeDnlJiYFuQycOTZ2ZWXb4zBUMsoGh9B5uoq/X1ah42+xxsznT9jF/FC74XY72 +7d/Dhyh5ORZlFyIs8buc9k4MIsrn2q5q2wMZf1PtOrowU89bo0uFIPzn4/Wh6iPT +feL0O7xYkxclrm52nBhUXWVrzYtjyXSwJrsriIvfeF7JZglJ4kuJv4pOIY337AOb +PXVANggcJc+xdmFQpx4MMC6mcQOsYKI5Dg6SV7ILCwxzgGpFzesSR+uH/0BjShHN +VzOEA6i8yXoQXq7B -----END CERTIFICATE REQUEST----- diff --git a/spec/fixtures/smime/expiredsmime1@example.com.key b/spec/fixtures/smime/expiredsmime1@example.com.key index ada4921c2..d3bec634b 100644 --- a/spec/fixtures/smime/expiredsmime1@example.com.key +++ b/spec/fixtures/smime/expiredsmime1@example.com.key @@ -1,54 +1,54 @@ -----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED -DEK-Info: AES-256-CBC,8CE77F705A91FC4378059C551C7C5A05 +DEK-Info: AES-256-CBC,78830C9BE3D572CF41DCC33126C1CF2F -7onTv/ISNP2DEhcTf8ux8v+4zPBI3XwfMRxO6+lyB1SyHIwLmFTNTNC3O4dTqpk4 -PGpwsLe7IsuHwrCheodGO1zUSalg8o4ta2YjzFxXScUWNLKawTV/pqHTzT/4DdSo -xN0WFJK9umft/UJZZ3b80UaWRxD5xRRw63GALFFCsH5rfTypdiJsG7BIHQFh+hV7 -yj7kFzOy9Sp4MT2W8PEcG62JeLr7zz50GHLzyJJH/G0kNOrMD7m8S1Sy5KPm5d+f -vEVsAdvlNbzP0jzG8ljSv6UrpSEz5IcrBsSIGrYtt7xcswWLyaBH1gbdzxU7gThT -o7fGUHoYwYwe92vS+lLUrkBsqNTYGEPSv4eSeq9O92sSsNgeq+DceVmWAKnvNF0F -+aUAR2YsJXC8kTREiaJDrEZrGrRWJASKPdkzMXWXGFT+9bw2rQ5TDiOKpA2Nh46o -rRHpc2nfrWfRzwcUV2731z7y7P56HRyw41RdmnBuzgcZmC2K0Dl5Z15FqNKvfF0A -lSW5PZJUzdk6WLZE94zSJ4jNo+JPsLHmxj0xTOMSwsrt8mtpObE2rmqDRtaY8pQ/ -kERvwsYcanr569ePAHtZpqN6e0FeC7qFOil6ppqwDbnH6MGj+IupAT73vb6K5uoU -fV25dB8qyC+bucKp/t9W2a81YsMTXyyzWQzSsGM+dMoiylxNzQtYarrv5BfRS/jq -sRe5hvNmaB+OsQOMam3l3JKEhQ/EFULIVracVh6fIrEav7Qstkfy7wVq4rTygHH7 -By1378WhbjC2+pwSbKWaMvXFSFNh7mTFKxQnoiMYrVzTq3alI25PrqfEsZmb4MAU -kwI01gvoReSdYKjEq26Q7Q7D16UFMs/K27kMO9Du6kv1C1qioG8k+9rL+8KX+mrF -JDo6VFhzZsOIwdBDLK3ZQ739o77jqpI9etOKFZwqgfuE+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idxRHHIJcSawTkcOB0TVhBT8D7AOD99s4j1MINPoP8cEaBoTooN53BM -/lZP10qpfghr1LKQAScjQUC2l3H03653bKj7Coql0SpVNYji+hWv9xnyWEMK5yLi -MtebDddjruzf+8gaLkDd4Qhdm5cILd1VWvf1I+MagK2jNKONpYDg2T+rilTDX3KP -iwArCVMCY8b2E60rJynovx39yhA5VO9+nS99mfibqCsu+QWlMaHbLdCa0dhmLE+w -18bLDiKvGRuBY+2VySS05GFLWJtkYXQmT3trEKVHYxO4Asv+EnnuQA7TKEALXJCO -KydmElZLnUihOhDA3D9cOlKwtghM74lWFtaXxorIXJknxV2PLwVMb9OFPf6wQvvj -gHa4Vx2phWYtHDY71Sngt1z8PVvPP05B0FWhEANT7B8cldBMQvenitENCVu/oiQr -tZoLnSFZ204hujUYak8YwnvAGywibdr0NAtOX38pFSypPE9OW7QwA5mmurmnMcuw -BhqeqCRTF34bRfFpYGlwDH4y7YymzXGrZkML/TuBXMuXHb17d4e77Most2wYz690 -Lmr1Yj5C/rmmFrExvbfXJztRkNMba/8l4RqRzaK8lc02PgaRduoSQ1Pj4Wm9QlH5 -APj9fu0Fd1SDIsEO5wSQPNRjOIjjpbqEDN82lFzLge18rVlvQcihwFFdhCSs9XET -ysDgGTP4VG9AzYw9yKMalWdkmKpYjCl1v+YISaJVtvlRvApWGrS8GM2T+tOgCOaF -sL01BvzIeiRykO4Gc574WcoJNCe8U+kWJtjpmAotC8wX3zt30dbi2ZaAR53vwx7p -BS60uDF2zQW2KpaNX3h3G22HBlDPDcmlBoh1eziY4IuNhd8DVnepQvhc6toJsFs+ -/lwE/JxeRuwoQXxIRk7ZjJF4x+laeNEJvZagtWT5p8EWP80sbOydS/E+p44QRUHJ -0sGV14s7/GA1D/b856Ov8vmKq5YGEZ/yan0jBg0NKh/cTnEVmKQVpLSgikKj7rVv -EW5Z7IfFQnWkCvZD9+oxy+9E6mkh8QvonvL0grAneC/C7b7iR9JXpDbtwG2giRge -dDx4+YOGf6t/iZdE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P+zJIckNXEI16a -----END RSA PRIVATE KEY----- diff --git a/spec/fixtures/smime/expiredsmime2@example.com.crt b/spec/fixtures/smime/expiredsmime2@example.com.crt index fd851f1f6..2e8c425bc 100644 --- a/spec/fixtures/smime/expiredsmime2@example.com.crt +++ b/spec/fixtures/smime/expiredsmime2@example.com.crt @@ -1,37 +1,37 @@ -----BEGIN TRUSTED CERTIFICATE----- -MIIGZzCCBE+gAwIBAgIUCSX5LFwjHF203lCsQWh3FmcEo3MwDQYJKoZIhvcNAQEL -BQAwgZ4xJDAiBgkqhkiG9w0BCQEWFWV4cGlyZWRjYUBleGFtcGxlLmNvbTELMAkG +MIIGZzCCBE+gAwIBAgIUSgPVhvQkzjV5WXJBoGqkrffqMj8wDQYJKoZIhvcNAQEL +BQAwgZ4xJDAiBgkqhkiG9w0BCQEWFUV4cGlyZWRDQUBleGFtcGxlLmNvbTELMAkG A1UEBhMCREUxDzANBgNVBAgMBkJlcmxpbjEPMA0GA1UEBwwGQmVybGluMRkwFwYD VQQKDBBFeGFtcGxlIFNlY3VyaXR5MRYwFAYDVQQLDA1JVCBEZXBhcnRtZW50MRQw -EgYDVQQDDAtleGFtcGxlLmNvbTAeFw0xMDA1MjMxMzQ3MThaFw0xMDA1MjQxMzQ3 -MThaMIGiMSgwJgYJKoZIhvcNAQkBFhlleHBpcmVkc21pbWUyQGV4YW1wbGUuY29t +EgYDVQQDDAtleGFtcGxlLmNvbTAeFw0xMTA0MjkwNjQ0NTNaFw0xMTA0MzAwNjQ0 +NTNaMIGiMSgwJgYJKoZIhvcNAQkBFhlleHBpcmVkc21pbWUyQGV4YW1wbGUuY29t MQswCQYDVQQGEwJERTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJsaW4x GTAXBgNVBAoMEEV4YW1wbGUgU2VjdXJpdHkxFjAUBgNVBAsMDUlUIERlcGFydG1l bnQxFDASBgNVBAMMC2V4YW1wbGUuY29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A -MI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yZsmfN+RMrbWlTwVbC +lBa/+2zf54qE2DkwIjAKBggrBgEFBQcDBKAUBggrBgEFBQcDAgYIKwYBBQUHAwE= -----END TRUSTED CERTIFICATE----- diff --git a/spec/fixtures/smime/expiredsmime2@example.com.csr b/spec/fixtures/smime/expiredsmime2@example.com.csr index 622f6f785..f6bb20b02 100644 --- a/spec/fixtures/smime/expiredsmime2@example.com.csr +++ b/spec/fixtures/smime/expiredsmime2@example.com.csr @@ -3,27 +3,27 @@ MIIE6DCCAtACAQAwgaIxKDAmBgkqhkiG9w0BCQEWGWV4cGlyZWRzbWltZTJAZXhh bXBsZS5jb20xCzAJBgNVBAYTAkRFMQ8wDQYDVQQIDAZCZXJsaW4xDzANBgNVBAcM BkJlcmxpbjEZMBcGA1UECgwQRXhhbXBsZSBTZWN1cml0eTEWMBQGA1UECwwNSVQg RGVwYXJ0bWVudDEUMBIGA1UEAwwLZXhhbXBsZS5jb20wggIiMA0GCSqGSIb3DQEB -AQUAA4ICDwAwggIKAoICAQCfsqLrCIBVQPywMQQglALMjW0/ZVuuLoXmS5t+7ZJW -lQIviL+oL+O3WfVZ+l4pPTvLHu2FmG4x7AKuB8g403L/ietVNJgevWpn7ICSSbg1 -5MIwuSMFGKuC3hL9UpYmwqECm7PYl2WKo8+0QqFR8NCs3x+EZ4nbNyUEWjxYRG7P -IyGh/bO7aeKrFEHHe8Jql/ynPedaQ/fKxn6q8opr6x7YTWtPq33truqmBb6V6l4a -6SBJE0Yaw5EJ4FzBa12zVO2BKoDCVuA0IVq8vYDrL34oSCM4zOGyLwLN/TlMtssv -hjqwsV65nyuHCImN6NH/mqOxScVIFcjDbS6VMmx8Q7Sm4LSKsH4nnK34G0plaHZP -O+GpEgqf5TJnUH3VfJKw84aBrXaYrgdfeVjvx12a3dcMMRwv/T9zUgS5PImsOIcK -y6brSBayy5jIZF+cMmspWQV3qgBKHphgi8QFCFjSJvWqx9rbYNGqLG43jVAXAVr1 -BGFyY6raX7o2rxSXOdFj/nsrYh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657YVlJ52FW8O5ZbRm48hDpY1nHyPCo7fQX5Aayq2qS +spUXggdelFw5Fwu+Yxp0whGwnn01dHGBDZhJXhkTHBBY+I9eH72p0ZfvUq5TqK5V +03Q3s0AsvwwM3EsYCgXt/xaOeOabwvqaT1wjT2NZN16bMlJFqy6UHNZEoQeh410L +dZfu2l3Q0WgkTb1p -----END CERTIFICATE REQUEST----- diff --git a/spec/fixtures/smime/expiredsmime2@example.com.key b/spec/fixtures/smime/expiredsmime2@example.com.key index d7999ec23..c0bb41ced 100644 --- a/spec/fixtures/smime/expiredsmime2@example.com.key +++ b/spec/fixtures/smime/expiredsmime2@example.com.key @@ -1,54 +1,54 @@ -----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED -DEK-Info: AES-256-CBC,2D01520A669DCCAAC31310846FD3F95A +DEK-Info: AES-256-CBC,B118997405683349F559112BE9480FA1 -uVTH48B5k3TxkQgfo3lXllNxXLICC5UZXv6znRxk35fJD7PnDpeOMDijlW7S4+gi -CrnOzm6ImRy8it0jMU2M/kzsT3vfOXMW7/kP4Su+nqOGiL1A98Rm6UKqj3MXaXnL -aNYgaJT+m9DyTU3ih1jz9azXfy+iotFMng2Flo/xeqxODTu5O1xzhx1F7TowpWGK -uQL1jv6uzTTtsq9xjyS3PeVIloviwETTNMgS21eqQ6uK5rJWSqJQTj8wqHLme5I0 -YNrvDXPOYjMUrA5EvfyzyZmgriQaJuCmkjot4EqzQd5UCfPxbugRaKY297oMkfAK -NTW1OGOiuCX+OS2v191Aaz/b+Zs0GNj/iYf747EvO5s8usGlNCTBM6CGOst72ldW -ns0x1HO7JoMyP8S9Cv1J99KG0yKXPJs0WQDGL7XnOh5hwZgQ3LJskmur/v+ltKra -zN/TQOGnKqFs/MKnlTc8560DVsoFdaZAC+IU9eM0+hqMlVCgFS1bYuYK1o/Q/S7b -H6GavupTiYaV+8psRGfe3XUkm/hSyzFBg8/W8kxS14ZqVoWd0vmuZTXDLDWnp60K -+dxUokKac3FQw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Png +7TL/Zer/TD32wLXb7VX4bvoMRO+MQD5mi2C+xXft5ENHsabLTDSQKT7BvJBEsSIB +VnPtm9+NcJ1rgSL81SdO9vQwKPHtF8F4iGh+y+1xxc9c29W62jHWMNPH3EG4p08j +DeJrhCPhQ2U+A4fVrQqJbD7qXzwjk6CfmNDOe8vxcCRcSNEsxGtNUiM5LHPdWvAE +tUofNawWst00c8d2eKllm+kPcjGPstbTaMMag/3Sh4kzWRYaOVbTxLFyYm4VDXj1 +JvtmxzDvGagMkDes7337j/AdoOAL0T+HnJpsk9vZrCVh7yQQhDoqHvKjPk/qGKBU +XZqK1Ue7mSvk7QVAh/7cTZ+gDQMzSC+PHZYNfBXlRjQtvIx8yd/pibT4qGVO5ukM -----END RSA PRIVATE KEY----- diff --git a/spec/fixtures/smime/generate/docker-entrypoint.sh b/spec/fixtures/smime/generate/docker-entrypoint.sh index 8e2b23015..212e9ffff 100755 --- a/spec/fixtures/smime/generate/docker-entrypoint.sh +++ b/spec/fixtures/smime/generate/docker-entrypoint.sh @@ -2,16 +2,40 @@ echo "Zammad S/MIME test certificate generation" -if [[ ! -e "$CERT_DIR/ca.key" ]] || [[ ! -e "$CERT_DIR/ca.crt" ]] +if [[ ! -e "$CERT_DIR/RootCA.key" ]] || [[ ! -e "$CERT_DIR/RootCA.crt" ]] then - echo "Generating ca.key" - openssl genrsa -aes256 -passout file:pass.secret -out $CERT_DIR/ca.key 4096 + echo "Generating RootCA.key and RootCA.csr" + openssl req -new -newkey rsa:4096 -nodes -out $CERT_DIR/RootCA.csr -keyout $CERT_DIR/RootCA.key -extensions v3_ca -subj "/emailAddress=RootCA@example.com/C=DE/ST=Berlin/L=Berlin/O=Example Security/OU=IT Department/CN=example.com" - echo "Generating ca.crt" - openssl req -new -x509 -days 73000 -key $CERT_DIR/ca.key -passin file:pass.secret -out $CERT_DIR/ca.crt -subj "/emailAddress=ca@example.com/C=DE/ST=Berlin/L=Berlin/O=Example Security/OU=IT Department/CN=example.com" + echo "Generating RootCA.crt" + openssl x509 -signkey $CERT_DIR/RootCA.key -days 73000 -req -in $CERT_DIR/RootCA.csr -set_serial 01 -out $CERT_DIR/RootCA.crt - echo "Generating ca.secret" - cp pass.secret $CERT_DIR/ca.secret + echo "Generating RootCA.secret" + cp pass.secret $CERT_DIR/RootCA.secret +fi + +if [[ ! -e "$CERT_DIR/IntermediateCA.key" ]] || [[ ! -e "$CERT_DIR/IntermediateCA.crt" ]] +then + echo "Generating IntermediateCA.key and IntermediateCA.csr" + openssl req -new -newkey rsa:4096 -nodes -out $CERT_DIR/IntermediateCA.csr -keyout $CERT_DIR/IntermediateCA.key -subj "/emailAddress=IntermediateCA@example.com/C=DE/ST=Berlin/L=Berlin/O=Example Security/OU=IT Department/CN=example.com" + + echo "Generating IntermediateCA.crt" + openssl x509 -CA $CERT_DIR/RootCA.crt -CAkey $CERT_DIR/RootCA.key -passin file:pass.secret -days 73000 -req -in $CERT_DIR/IntermediateCA.csr -set_serial 02 -out $CERT_DIR/IntermediateCA.crt + + echo "Generating IntermediateCA.secret" + cp pass.secret $CERT_DIR/IntermediateCA.secret +fi + +if [[ ! -e "$CERT_DIR/ChainCA.key" ]] || [[ ! -e "$CERT_DIR/ChainCA.crt" ]] +then + echo "Generating ChainCA.key and ChainCA.csr" + openssl req -new -newkey rsa:4096 -nodes -out $CERT_DIR/ChainCA.csr -keyout $CERT_DIR/ChainCA.key -subj "/emailAddress=ChainCA@example.com/C=DE/ST=Berlin/L=Berlin/O=Example Security/OU=IT Department/CN=example.com" + + echo "Generating ChainCA.crt" + openssl x509 -CA $CERT_DIR/IntermediateCA.crt -CAkey $CERT_DIR/IntermediateCA.key -passin file:pass.secret -days 73000 -req -in $CERT_DIR/ChainCA.csr -set_serial 03 -out $CERT_DIR/ChainCA.crt + + echo "Generating ChainCA.secret" + cp pass.secret $CERT_DIR/ChainCA.secret fi for EMAIL_ADDRESS in smime1@example.com smime2@example.com smime3@example.com smimedouble@example.com CaseInsenstive@eXample.COM @@ -37,14 +61,14 @@ do openssl x509 -req \ -days 73000 \ -in $CERT_DIR/$EMAIL_ADDRESS.csr \ - -CA $CERT_DIR/ca.crt \ - -CAkey $CERT_DIR/ca.key \ + -CA $CERT_DIR/RootCA.crt \ + -CAkey $CERT_DIR/RootCA.key \ -out $CERT_DIR/$EMAIL_ADDRESS.crt \ -addtrust emailProtection \ -addreject clientAuth \ -addreject serverAuth \ -trustout \ - -CAcreateserial -CAserial /tmp/ca.seq \ + -CAcreateserial -CAserial /tmp/RootCA.seq \ -extensions smime \ -extfile "$extfile" \ -passin file:pass.secret @@ -54,19 +78,53 @@ do fi done +echo "Generating from CA chain" +for EMAIL_ADDRESS in chain@example.com +do + if [[ ! -e "$CERT_DIR/$EMAIL_ADDRESS.crt" ]] + then + echo "Generating $EMAIL_ADDRESS.key" + openssl genrsa -aes256 -passout file:pass.secret -out $CERT_DIR/$EMAIL_ADDRESS.key 4096 + + echo "Generating $EMAIL_ADDRESS.csr (certificate signing request)" + openssl req -new -key $CERT_DIR/$EMAIL_ADDRESS.key -passin file:pass.secret -out $CERT_DIR/$EMAIL_ADDRESS.csr -subj "/emailAddress=$EMAIL_ADDRESS/C=DE/ST=Berlin/L=Berlin/O=Example Security/OU=IT Department/CN=example.com" + + echo "Generating $EMAIL_ADDRESS.crt (certificate)" + + + openssl x509 -req \ + -days 73000 \ + -in $CERT_DIR/$EMAIL_ADDRESS.csr \ + -CA $CERT_DIR/ChainCA.crt \ + -CAkey $CERT_DIR/ChainCA.key \ + -out $CERT_DIR/$EMAIL_ADDRESS.crt \ + -addtrust emailProtection \ + -addreject clientAuth \ + -addreject serverAuth \ + -trustout \ + -CAcreateserial -CAserial /tmp/ChainCA.seq \ + -extensions smime \ + -extfile "config.cnf" \ + -passin file:pass.secret + + echo "Generating $EMAIL_ADDRESS.secret" + cp pass.secret $CERT_DIR/$EMAIL_ADDRESS.secret + fi +done + echo "Generating expired" FAKETIME=-10y date -if [[ ! -e "$CERT_DIR/expiredca.key" ]] || [[ ! -e "$CERT_DIR/expiredca.crt" ]] +if [[ ! -e "$CERT_DIR/ExpiredCA.key" ]] || [[ ! -e "$CERT_DIR/ExpiredCA.crt" ]] then - echo "Generating expiredca.key" - FAKETIME=-10y openssl genrsa -aes256 -passout file:pass.secret -out $CERT_DIR/expiredca.key 4096 + echo "Generating ExpiredCA.key" + FAKETIME=-10y openssl genrsa -aes256 -passout file:pass.secret -out $CERT_DIR/ExpiredCA.key 4096 - echo "Generating expiredca.crt" - FAKETIME=-10y openssl req -new -x509 -days 1 -key $CERT_DIR/expiredca.key -passin file:pass.secret -out $CERT_DIR/expiredca.crt -subj "/emailAddress=expiredca@example.com/C=DE/ST=Berlin/L=Berlin/O=Example Security/OU=IT Department/CN=example.com" + echo "Generating ExpiredCA.crt" + FAKETIME=-10y openssl req -new -x509 -days 1 -key $CERT_DIR/ExpiredCA.key -passin file:pass.secret -out $CERT_DIR/ExpiredCA.crt -subj "/emailAddress=ExpiredCA@example.com/C=DE/ST=Berlin/L=Berlin/O=Example Security/OU=IT Department/CN=example.com" - echo "Generating expiredca.secret" - cp pass.secret $CERT_DIR/expiredca.secret + echo "Generating ExpiredCA.secret" + cp pass.secret $CERT_DIR/ExpiredCA.secret fi for EMAIL_ADDRESS in expiredsmime1@example.com expiredsmime2@example.com @@ -83,14 +141,14 @@ do FAKETIME=-10y openssl x509 -req \ -days 1 \ -in $CERT_DIR/$EMAIL_ADDRESS.csr \ - -CA $CERT_DIR/expiredca.crt \ - -CAkey $CERT_DIR/expiredca.key \ + -CA $CERT_DIR/ExpiredCA.crt \ + -CAkey $CERT_DIR/ExpiredCA.key \ -out $CERT_DIR/$EMAIL_ADDRESS.crt \ -addtrust emailProtection \ -addreject clientAuth \ -addreject serverAuth \ -trustout \ - -CAcreateserial -CAserial /tmp/expiredca.seq \ + -CAcreateserial -CAserial /tmp/ExpiredCA.seq \ -extensions smime \ -extfile config.cnf \ -passin file:pass.secret diff --git a/spec/fixtures/smime/oldca.crt b/spec/fixtures/smime/oldca.crt deleted file mode 100644 index 4c6778f69..000000000 --- a/spec/fixtures/smime/oldca.crt +++ /dev/null @@ -1,35 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIGFzCCA/+gAwIBAgIUMmCv8hoMpL1DxnfbdnB7B8toiJYwDQYJKoZIhvcNAQEL -BQAwgZoxIDAeBgkqhkiG9w0BCQEWEW9sZGNhQGV4YW1wbGUuY29tMQswCQYDVQQG -EwJERTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJsaW4xGTAXBgNVBAoM -EEV4YW1wbGUgU2VjdXJpdHkxFjAUBgNVBAsMDUlUIERlcGFydG1lbnQxFDASBgNV -BAMMC2V4YW1wbGUuY29tMB4XDTEwMDUyMzA3MDUwOFoXDTEwMDUyNDA3MDUwOFow -gZoxIDAeBgkqhkiG9w0BCQEWEW9sZGNhQGV4YW1wbGUuY29tMQswCQYDVQQGEwJE -RTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJsaW4xGTAXBgNVBAoMEEV4 -YW1wbGUgU2VjdXJpdHkxFjAUBgNVBAsMDUlUIERlcGFydG1lbnQxFDASBgNVBAMM -C2V4YW1wbGUuY29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAtnoR -t1oSnGD2p6EF/RwRH2qrj0crDtVMubda6sls6tO14a/4qQ/za6WcSKRaPdVtsZ1j -r5yK8QaiaSZ4/jmfmuSpUvu0F7rQyhZ+bNI+ibF6YTHe2DGkdjH4rouoC7WEtfLz -saSYvojXOCelelbiMf94w6uDvMCRu5A47AHgFRAYWh3PD/kPuxefd2OYpZBjUVF0 -fOs6tkPWpPzt03Xu8RiJP1/UkLk/ZISLvG5VriMOG+KeOMFAz7gDNaGxoKJ7wlUb -A8Ht0FbQ5ZaYaDlmG0ENhnMoM74h6jxbPlRHvuDzAccZfb9m0e+HX9xP5Q8Cp+ib -EMpSe0SBE3N56a7aCPHTiXoC2wYL32rMUhjC2dgLT/UwBDiMiIksDm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V72kQ5IOvQG/qj78tbVvsoxabY+cDvSrb1NA3aaoQC8T+1Q91YpQa -8c1mJgWpM0EAmsUKjGvE3swfKDtSOPndr6vo ------END CERTIFICATE----- diff --git a/spec/fixtures/smime/oldca.key b/spec/fixtures/smime/oldca.key deleted file mode 100644 index 33b7882af..000000000 --- a/spec/fixtures/smime/oldca.key +++ /dev/null @@ -1,54 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -Proc-Type: 4,ENCRYPTED -DEK-Info: AES-256-CBC,1B90035BC983D129D9910AA0D912DDE2 - -WhX+qKY6nc6SGhUBYsxQtju7rzg/DdV1YCWoj0eydeIVYQyDPua8HzkSPCVBX++Y -+voyWentJu9v8SnrQnOr0dI+rilpi8ibr6tkdrEiyLLWMHO11w5UEjb/R0VOJBG3 -2f0N0d/58xiur5Mi+x7v/YpEPU5CqNSro14SSIpSHv110mC8Se03tO3DzlnGAAPM -JIcrkgEFmzzf7sOo0R3hEgNsM72ehFRomz/RsTfr2lRMNK5/s4Qd2+90cImG2QbN -dGVhTMUUgkPFcIXQ3u2Vd3AowDCUi6KCCiMfs9laBSSf2TvH5d+V3wWVCNPHz63A -NnmDQ4s7Cor3fVtrsus4KB2Aeg0+4gYA02MPymJ3Oqqjh0EsnF+DKPx9MRfdX0i6 -oZsRDxO+97zrBj8HSKxly1lDtrvTXLM4+25RL+PDUH7/inZOctm7m0F7zn+k9EeY -p9DQDRTXFgVyMxqtFnFZtXf8YsOINDux/Ecidis+10QotJxswXWD/uEI8sKjnIXU -BuWQZW/YqoT0Zlf7QdRYqx4cK6Ht2C6k8icwPzfubsG0b2zOz9sHMSOXS0vbWaEb -T9szeFizubGW9jDWHpNmZqWhKyzH9EHfjZHVOa61Wot5P2ROfl3loTiOGd2TYRwD -WqlBIthMUJVJ6hGqQY2wFfEdCGpL/h/gI+KA2m9GwbrrtxhulA/54OyfgyurOw/P -M6or0rsYgy0n3lMElBCiMrlxfxg97O2x1Py1rIIlzO0N0VJVeKZHczsECNp9c6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ev -rid1CdNCxtedX/fwKX55x94oeF9+g0hkQlKK/E5+3CtDg7nKRyMFP4jG0IM5FaBU -GkE7/5y14TXPtX+B48l4K31/eHdsOBcuGthrrF4MjgKLe3eELUHlHom6syMPxUwe -SRz53DIzXNuux3M6POkPozJHO/MUVOfavUh/v9E05daqKg/9mjkmxMKtsr9ZTNew -130LA0N/HHthJKCZeNLsUQY8J6M3kUXVuOw8cb6cCLuVkT8WIgropcJCXhy8chha ------END RSA PRIVATE KEY----- diff --git a/spec/fixtures/smime/oldsmime1@example.com.crt b/spec/fixtures/smime/oldsmime1@example.com.crt deleted file mode 100644 index 5934ad9bd..000000000 --- a/spec/fixtures/smime/oldsmime1@example.com.crt +++ /dev/null @@ -1,37 +0,0 @@ ------BEGIN TRUSTED CERTIFICATE----- -MIIGWzCCBEOgAwIBAgIUIUrCfVRV1i03o1zHmhtNv8XMpBQwDQYJKoZIhvcNAQEL -BQAwgZoxIDAeBgkqhkiG9w0BCQEWEW9sZGNhQGV4YW1wbGUuY29tMQswCQYDVQQG -EwJERTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJsaW4xGTAXBgNVBAoM -EEV4YW1wbGUgU2VjdXJpdHkxFjAUBgNVBAsMDUlUIERlcGFydG1lbnQxFDASBgNV -BAMMC2V4YW1wbGUuY29tMB4XDTEwMDUyMzA3MDUwOVoXDTEwMDUyNDA3MDUwOVow -gZ4xJDAiBgkqhkiG9w0BCQEWFW9sZHNtaW1lMUBleGFtcGxlLmNvbTELMAkGA1UE -BhMCREUxDzANBgNVBAgMBkJlcmxpbjEPMA0GA1UEBwwGQmVybGluMRkwFwYDVQQK -DBBFeGFtcGxlIFNlY3VyaXR5MRYwFAYDVQQLDA1JVCBEZXBhcnRtZW50MRQwEgYD -VQQDDAtleGFtcGxlLmNvbTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIB -AOlZ96ydfW6IGP3roFTyqDTs37MAdHH2VyEYU0qxM98HhDcpXn3iNVe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5bkR2YtbZzOgVF/eumyH95yk3BchM0A -scIyxWzHvf8Vss3Idp2djMmSI6tm4wQMvRZ3ScdLBtlStz+J0D3UNhV2lTjdewwn -oJ0RRSj58AVZlD4BFQ0GCg+gwsEhH71CWOuyFWtbzxKhdVojNKHkc6FioKnNffym -nge5o8wYuEETBsu2fHgMTSYxn1jOIVQZuHHXtN/BjXAZUZdKiz7jxZuNiZw43dMg -g5diNC0+VzsMEwINFd5/vQ9R1CX91RFXnZZ5MpM6IGYEHJ7QPRmLmxFtGcFi/f/U -lFCoK0nsOCIcWzFX4PJjAKTvWMekrrp09ImL0IRx+2L7RTA9R6x4DG17ZawTYA1L -uUvvVrbSjfmEIttlktEfL7g9xoDBWxsH7GpfBk4SKNg5jgGpeH5GxzQNPBeqwfeB -XH/n30Ym0jW+y0hDKvnPdjcvz0cJYHe4W3/srtqUu1aJmPa8he7jdejJSpkeUSAw -IjAKBggrBgEFBQcDBKAUBggrBgEFBQcDAgYIKwYBBQUHAwE= ------END TRUSTED CERTIFICATE----- diff --git a/spec/fixtures/smime/oldsmime1@example.com.csr b/spec/fixtures/smime/oldsmime1@example.com.csr deleted file mode 100644 index eed51f03d..000000000 --- a/spec/fixtures/smime/oldsmime1@example.com.csr +++ /dev/null @@ -1,29 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIIE5DCCAswCAQAwgZ4xJDAiBgkqhkiG9w0BCQEWFW9sZHNtaW1lMUBleGFtcGxl -LmNvbTELMAkGA1UEBhMCREUxDzANBgNVBAgMBkJlcmxpbjEPMA0GA1UEBwwGQmVy -bGluMRkwFwYDVQQKDBBFeGFtcGxlIFNlY3VyaXR5MRYwFAYDVQQLDA1JVCBEZXBh -cnRtZW50MRQwEgYDVQQDDAtleGFtcGxlLmNvbTCCAiIwDQYJKoZIhvcNAQEBBQAD -ggIPADCCAgoCggIBAOlZ96ydfW6IGP3roFTyqDTs37MAdHH2VyEYU0qxM98HhDcp -Xn3iNVeyyOTbeCwy7yw67EdMwukX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2ybWTOsJDtiZoaBVoVYr2Z+jXuUyXAXl1rfcmMGNzZ3PYqhTPV -KWBpPiQogyCllL3J2Yf7BD2FRSyjnbsm6Do5rdJLLCFrcltrJ9nOCvLWmawIusl7 -jymxpxAf/gOsHO3OfOJARhrL2jaSalaY8BcjLuUJCQ7u1zCDLgHnW+/CPMjDphcF -L+2plCWZr5gtkypczMJFw5ZOlK+SwI0TydCoWkQQxLjaWnqoxigsx3jF9W2uCQDX -iJZ6c2DEnLU= ------END CERTIFICATE REQUEST----- diff --git a/spec/fixtures/smime/oldsmime1@example.com.key b/spec/fixtures/smime/oldsmime1@example.com.key deleted file mode 100644 index ba3952b75..000000000 --- a/spec/fixtures/smime/oldsmime1@example.com.key +++ /dev/null @@ -1,54 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -Proc-Type: 4,ENCRYPTED -DEK-Info: AES-256-CBC,075058C49FC97E93DC2A6598E450A08C - -xskKR5EEormOQAsY17yBq+yojFhO8awIeNtLILVj5fElywccYSasmh3GzMCr+v8G -hHHXaQwzwkJTglCx9dxCeP++ChnKF+05VHbG3i40PR15Fe94jlMvi3VL3c7wmMvy -pOefj4OZkSUsGa84xwSEVmTd3wYZzlwoZiFrY48jp3Lu5Yv/gYFWTCI3lmJSvDCD -GgqEzu2c+gVje8zAE5QQ/1UMtxw+aqYCrLm0YwHvOSpO0mRWHSUsY7QmiSU+598D -IBXpNfubcZDFF3akq34MOxAnP60oCRi/xdePaYg3cg3FZ03OPr+VY9fFGXpl3Z9R -M0dyVNVsIBb0Ou45dgmVxlXK/VJzEMV1QJnjYhQGJ6BguFbXhFITTAljOYzuMuKk -y2p14vDHJXAUFqPBbAMv1Yrq6rX6Tppl8uHHMBDEEvdJr3c18pAb1S7Ghu0nV5U4 -DArM8EL22neoNmpr82wG+bQV4j5bQwmcgMYSjhsDrEpt8593w+6OWrOzQHnZX4p/ -9M9/Gkk/i7dvAyBmnIIQhH6V9DFq518e9PGgSIrqhjpG4qDZYrO9OCC26AF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QrMf9/uuluJmeTE0 -+f4kC/+hptnBLW97LMfAl608kc2ArSuepGNfzwalnfmwKsDpiC/GQJlUuv0x5IGe -Is5xwkvaykIK0DaDWTdE1RwH3M6UCcbtoX2V3gXulut8BNooIx9pFV6xMF0THUvC -yIrpU0Oe+HRXjz1rJf6TUDZGuy2pPeJZqnfdzwAy8oo8fUm8h+kcEIj5vb4yfn/N -T2prqu5n+CLhkaoi+kkSL7sF5ckCkSyAydYuSRG1DRP7XBynt+Dj+qRedjo/9drl -VtCyZrodLpakgwBuwMVallbZP/ILag87Lbje03GbyWOxGPPRN3yx7Qo+7t0b6kvz -GlYfWGrBMTK8EZFUUfGZMTOJasl/ipKM60a112ncBgzBlLwQ1mEzGFRFud6mKuwx -X4e5PgSQuGxtLFyfjpZL2ZHDeoouss5TNoiKfp1Obid8H2dD2S6IbRtOf6pKPIv5 ------END RSA PRIVATE KEY----- diff --git a/spec/fixtures/smime/oldsmime2@example.com.crt b/spec/fixtures/smime/oldsmime2@example.com.crt deleted file mode 100644 index 8ef99aabd..000000000 --- a/spec/fixtures/smime/oldsmime2@example.com.crt +++ /dev/null @@ -1,37 +0,0 @@ ------BEGIN TRUSTED CERTIFICATE----- -MIIGWzCCBEOgAwIBAgIUIUrCfVRV1i03o1zHmhtNv8XMpBUwDQYJKoZIhvcNAQEL -BQAwgZoxIDAeBgkqhkiG9w0BCQEWEW9sZGNhQGV4YW1wbGUuY29tMQswCQYDVQQG -EwJERTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJsaW4xGTAXBgNVBAoM -EEV4YW1wbGUgU2VjdXJpdHkxFjAUBgNVBAsMDUlUIERlcGFydG1lbnQxFDASBgNV -BAMMC2V4YW1wbGUuY29tMB4XDTEwMDUyMzA3MDUxMFoXDTEwMDUyNDA3MDUxMFow -gZ4xJDAiBgkqhkiG9w0BCQEWFW9sZHNtaW1lMkBleGFtcGxlLmNvbTELMAkGA1UE -BhMCREUxDzANBgNVBAgMBkJlcmxpb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hkiG9w0BAQsFAAOCAgEAbsc1EVFSRrFivUskd1RyHPeYGaPQilru1UKOINKlblaT -5niNK053XLgKgNYNyhmrJiOmIKPnV0iuTzLOjYsQbY0hArtoHYoMjWYwrPEL6cPq -KAcbvnE3Me8KXEDT1K0ysgwbW4jUyN2qFWbM6cEVu+mv7YOAsTt3J56gbRY71cQh -5wYP6qM3AfQ8aY3e18dEW4h7vLZL/VIvs7jW5NjBzJapfzuj4gvXNKobmAOeWXF3 -xAVT93dlgEo5EFexizgyUUG2Oeu/TlN2ssTHfNhgSLfmN20Q1PZf1CqCSS+FbFTp -IgKI07cHQZTM5Uk5M+MZKhmJDIWVKIDMOED2XGeITuKXDJjvU6nFnzEdEcwhiT/w -gxn+qcOo5v7HmmOxVXhtBCsCtZPsx/2DEjRUw5jEDvSsV2+HbCws8+Ry5Q4VT7l6 -NX8vhsmyXVLBDBGAhBY4HcV+L5FzluacixGdE+eP3ndN3pOOOQ1cMVTFCotYn/IJ -bZH8mCWfLkuPqkemnIWve4Xv1zVPteMroz56g+M2PnoxPqZbBrYyUEWo3RsYmLFi -Vne8VKWl2OwA/dVoxN4Cpr0JAqXPfYfeWA/f/ZJFTEfTDUN9+MYZyI11obcs2qEp -zjcHzyJKbpQUaeaTKqb6JGSXanHCaW8ud7rTTpH4X65xSoFqb4vd077WpkatBu4w -IjAKBggrBgEFBQcDBKAUBggrBgEFBQcDAgYIKwYBBQUHAwE= ------END TRUSTED CERTIFICATE----- diff --git a/spec/fixtures/smime/oldsmime2@example.com.csr b/spec/fixtures/smime/oldsmime2@example.com.csr deleted file mode 100644 index 191ed2c03..000000000 --- a/spec/fixtures/smime/oldsmime2@example.com.csr +++ /dev/null @@ -1,29 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIIE5DCCAswCAQAwgZ4xJDAiBgkqhkiG9w0BCQEWFW9sZHNtaW1lMkBleGFtcGxl -LmNvbTELMAkGA1UEBhMCREUxDzANBgNVBAgMBkJlcmxpbjEPMA0GA1U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hOvfoUrFLu05JQexYUjGjP3EVN2EVuOJLgW -w15m2wEjJk1CBptAl4AWWCKAvgwvwzHvzkaooUDZyZ2Q/rKeaM4zBu3/8/SXc7lQ -xFLfzvBuZIQX72o6d3NMAVDoQHHpi1PFgLMbbTkaLvzRzF4oLEMqQSBSa4id1uFf -7YYRop5Fu2UdyUX+dyDPZfVCJwIskdOE+AXiIlxDB/VpA1AGVDRwYPJIMjSsCr9m -xybrCZzYzVyWo5um5pVfRaJckcM6XxM60bigLPqietv9FUGfGfTlDHyRbpqJKYZ9 -azgR6QUg5PZQOF6V+iblZEsKxHpqqQT8UPBjyOH5qwq+mCbW4/kneSORPZOposnP -MHZH9lRZ/1LXM5YFrDaFMicKI/h9rRTtFMlH/dAzrvVmz+o5HXew30UipYbZOXZv -1qqvrrW/a8SwMsalEQUHDAnZe8BVI0sLUfOonaXRfzh1CwO7DIWw0XoHaYBkwwxw -bUDcHE3gKFM= ------END CERTIFICATE REQUEST----- diff --git a/spec/fixtures/smime/oldsmime2@example.com.key b/spec/fixtures/smime/oldsmime2@example.com.key deleted file mode 100644 index 6486109f9..000000000 --- a/spec/fixtures/smime/oldsmime2@example.com.key +++ /dev/null @@ -1,54 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -Proc-Type: 4,ENCRYPTED -DEK-Info: AES-256-CBC,422646293BBDFBBD651E2D08160A9FE1 - -rQdENT1nj78GQlJXoriLe+0XYF+GpxwNgA71zGG/LisQsWn9SJmNS5l8eMHPOujO -8yCkyf6N8Khvxd8ry1JvUhqfo0G0fo+LES6IwekaUZz2xGNvUkGOUbq5UTaQ0aa0 -WkLhEXC2kPAyGplU7yOdpF2q4I5RExKzS3eiGTQRfvpzXfUGfB2yFzWs34EYuSxt -VaOiro9UV/HbFV6rhQydpIBLKBRjB7nx3+zGO0C2z4iKpLBqiXpfP/jO7zMqNCfv -ZJ4lLpz+JAi4FxW5fptz7ReqlbZ0NbTt7y00oKzgmsPuvVUy9flg35/QZaYe/PtT -EY/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uiJnQqG+Ez1WD20 -uAsYiCYo3lJlWQg6WgQZmsGOBexOFl170Dh0yC+AgzLY7SSMUyXFN4eSJoqknmz4 -MrlU+hlmr038OmEXwa3tGzVdGU/D1leYXGw8Oqi9Mx6gD0b1KGgp5zhkR8hvZsp6 -M1h0wjeR3KlJdlOfnw220tCCZlHi/XseqDA50EUCnqb01j+6w5szeHNQcP0TD4GB -dTVCCoD1rvXumhVH4oIITMqZHFdv4Hdw+2li+ag8zPK/ZFgashJMgX3aCX8qlWmG -VP1Lh1ANZVQQ61QjEaiqzvjmRxWj/NDd/oIkBo0FHrcKUqNAU3yapjx5ePSs4D8f -5g+7cO2EmS550SlMm/7XUE5Bm7rEu2v+mCfv8BEl/qB42+abhPtxDhlZJFcET1zE -fuBiiMdWc6lBuI2gWzMDIWcr/tp1qa+XBaWdXq0PUkYz1Fk8n/bQsOO7V9p1JBxF -zGPCmc+REab+MauCSuchSHTtwYo+auBQRVGThg0ftBpiT5+0U2IvwHMVqUbgtknQ -XHeAzLysvzshWbYTP6tB9uLYZbWFXpqvGhbTlv3duae9CEBam8RKlcXWM7gzIqEx -DcpSOCehkpFa9GbxEvoDl1Q4h35SXATs0McDE+Tr3QnEPBu5kKpYh/DPNFWGJBUI -qyfHw8PirVqAgmP79moy5vY32fKnRYt2cC4aNfuUJCr6yGEgrMsaNVpiHWckRMPY ------END RSA PRIVATE KEY----- diff --git a/spec/fixtures/smime/smime1@example.com.crt b/spec/fixtures/smime/smime1@example.com.crt index 4781ff97e..cce4005fa 100644 --- a/spec/fixtures/smime/smime1@example.com.crt +++ b/spec/fixtures/smime/smime1@example.com.crt @@ -1,37 +1,40 @@ -----BEGIN TRUSTED CERTIFICATE----- -MIIGVDCCBDygAwIBAgIUAh6m+t/Iz8s0i11uzqr7kDKyFewwDQYJKoZIhvcNAQEL -BQAwgZcxHTAbBgkqhkiG9w0BCQEWDmNhQGV4YW1wbGUuY29tMQswCQYDVQQGEwJE -RTEPMA0GA1UECAwGQmVybGluM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tEXIfWwUiRxIUEmv0N96PQsvgPGGDnqbv3pEIpK +88LZigoNlhwDUo11D2EB17HzpgJgO3UXwgEAifazRb9NDS3V9vQf2cbg/MozeJ7S +j8k3bZF2F3+D5bCnzpy4ICd+0OaWD7Wiuqc4us3FWYuMqTpDwdC9xRCNoLZ2TT6N +Vie6r52eXqthmm05tLKLqmg+5WwIwvUK4bUaHv3hdl7ZKBFxDK1DbMDmoF4bhg0e +WE4wIjAKBggrBgEFBQcDBKAUBggrBgEFBQcDAgYIKwYBBQUHAwE= -----END TRUSTED CERTIFICATE----- diff --git a/spec/fixtures/smime/smime1@example.com.csr b/spec/fixtures/smime/smime1@example.com.csr index 13003027a..0d0a53aa5 100644 --- a/spec/fixtures/smime/smime1@example.com.csr +++ b/spec/fixtures/smime/smime1@example.com.csr @@ -3,27 +3,27 @@ MIIE4TCCAskCAQAwgZsxITAfBgkqhkiG9w0BCQEWEnNtaW1lMUBleGFtcGxlLmNv bTELMAkGA1UEBhMCREUxDzANBgNVBAgMBkJlcmxpbjEPMA0GA1UEBwwGQmVybGlu MRkwFwYDVQQKDBBFeGFtcGxlIFNlY3VyaXR5MRYwFAYDVQQLDA1JVCBEZXBhcnRt ZW50MRQwEgYDVQQDDAtleGFtcGxlLmNvbTCCAiIwDQYJKoZIhvcNAQEBBQADggIP -ADCCAgoCggIBALVLW81dNnQbkLkeRH+MyQDkzzA8NQzZfxpGNTLLVKaFdo4yXgdX -A4/KKtURw8AQVTbGi+AU/aZwpsvGBtCSE0fOSAZlgeOeD0lV/ZUB6QV8AIoY9wfw -4xldKYXaPhbmKN3OwRMoEJPkSyrw9I1vxIWd3WMP5SFNolfr95ATItkedES+WhMk -YKd/0JbFYlFnyYJ2ZzBB0bRSz+rPzWzOhZD2aDEd+oyVS+cVZ+SNPkc87C022lll -eocQtpg4demgY3MJFryV6bhcfx6VzLyzo04FrLE6In26s9khO0OLLB56H+zMelw/ -jIwo/rGyqDG31i0jNC1DQanl4UsRg5E+/Au6x86350XK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2c4gLB48BYw3uQZW4fM/5YFxQre/oxc80 +vcFYYqLTwX6HHm9MI/ocO4Iy/TPm8wsZmk8nEwzLkUtyg6NmxDWRLP3/ieISEv8V +0kemi235ZaOuhwnpN5x3f23Ni+9evaJ8NuRehqc0xZnxU4WswzJZY0zZn5x7+u87 +YJp4+Gqi+hWQitOVPIrVnpKFmTjDXuuOq5Oo09DAvcV68KvB4vSa4JaPCt5t7Vvi +s4TI/tttGRtmfn/hsXVpauQoXXXi9cXWquBbbdEt9wsjUMKZe3AX/OWlDw9dciHG +68npryQxE/YKe1jteC+dKrVbbX74+Lkwo+3hgvWIJyvf5+Jcrb2NFbCCdmIT6Azf +kvr//LI= -----END CERTIFICATE REQUEST----- diff --git a/spec/fixtures/smime/smime1@example.com.key b/spec/fixtures/smime/smime1@example.com.key index 6f569ab8a..4587acf17 100644 --- a/spec/fixtures/smime/smime1@example.com.key +++ b/spec/fixtures/smime/smime1@example.com.key @@ -1,54 +1,54 @@ -----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED -DEK-Info: AES-256-CBC,C02E7FD1CD5C829F69D753D19B84384A +DEK-Info: AES-256-CBC,19EB1017C1E4A6824D8287E4F87D570A -PPxsdYXvw/TIGIYKuh1ygIpQ2pxWPI7C0ELX8bElkLQ+FhEIZ6h717SdTOaPBlE7 -otkasLlIQn3TP6JnnrrEuXbiVyWtLgbkM5J80osRt9X6DamUtrw+luQBlhmXv6e4 -NVP6Zo5z2MuNSo/rpkYNer2eH1KR6QqO/iOQObH3ehLeJc0nXybtFh4ZOrhI0rua -fow28AX84mZNeC2wONRP1dnzeBswiTopXa/Q+ShB2dZbM6eJyflkjXT9ec48nbto -BJDHrx2n0L4qgFweNlrFCqtcxhUM65QVfsSFVpYjqnAG3rt3ZB26WxOPAYEBVoSZ -mAySfEfpcK71yXkBUW4j8fL78iicyED3irgq9a/1oCaJwTxDsgz8Te/vBqA6UDde -H2x2jj9bfP83WIPYscbKok/rWoxHNx20Tx7Wf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AvK/oLknMC+Vx5wXNqSfPseffF3IYeIOBOcYdqw +q/ivcNyHWGvYRPpQG7WU+yC/w0vrQs5ilXFJxZ1mIqySJ+of1/YS5gYdnoy4ux0T +Qc3GloMBRMmaBBgg/B1aefwU/sNBgUadWo5OMF0MKIN5++qgk/2bJcZzGZBfuCEa +FjW7/n3ldAFROZX5W5Ng0O4cAKPGOjiTA7m1DtfKgVVilhk01/RA2v+Q36fdjiWL +nQ2d6gLKMDR+E4Hqj+t+I26ABFSrnYZNg3iAHCrgVVRatu0+ijZC9x/uggQgzRMW +nnj/Fvdl1sBnD5SmmVEylJhjF5/KnHWV4fsDTg/Z9ChnMw2+mchBnJeJywFtEETU +gBCo+MPEhlNs6OxTlsJjTcv3VWvkX/sz1alXzaWWsPIqdYNkYZwyxyQY2CGaJQo2 +BRJC72C9Q07wYZSDPmhXAbsKwAnssR2HNFIjO7CCTQnuEGvnwGRNKTM/XBroU7kp +lG9WAGW2dL7n/Pu51+663++CF2GhWNkOOlepPZaT6zsTQ/NqIIOFlqQngWr4CJNV -----END RSA PRIVATE KEY----- diff --git a/spec/fixtures/smime/smime2@example.com.crt b/spec/fixtures/smime/smime2@example.com.crt index 0fe5a6b63..31e09baf2 100644 --- a/spec/fixtures/smime/smime2@example.com.crt +++ b/spec/fixtures/smime/smime2@example.com.crt @@ -1,37 +1,40 @@ -----BEGIN TRUSTED CERTIFICATE----- -MIIGVDCCBDygAwIBAgIUAh6m+t/Iz8s0i11uzqr7kDKyFe0wDQYJKoZIhvcNAQEL -BQAwgZcxHTAbBgkqhkiG9w0BCQEWDmNhQGV4YW1wbGUuY29tMQswCQYDVQQGEwJE -RTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJsaW4xGTAXBgNVBAoMEEV4 -YW1wbGUgU2VjdXJpdHkxFjAUBgNVBAsMDUlUIERlcGFydG1lbnQxFDASBgNVBAMM -C2V4YW1wbGUuY29tMCAXDTIwMDUyMDEzNDcxMloYDzIyMjAwNDAy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+ +32EGdcrGQanf/fqWF4m0CswQW9t0L70O8InTinvfhC56pH+l28NkyYnQ8UxZSC3o +pRYwIjAKBggrBgEFBQcDBKAUBggrBgEFBQcDAgYIKwYBBQUHAwE= -----END TRUSTED CERTIFICATE----- diff --git a/spec/fixtures/smime/smime2@example.com.csr b/spec/fixtures/smime/smime2@example.com.csr index 863dacb4f..bb80dcf17 100644 --- a/spec/fixtures/smime/smime2@example.com.csr +++ b/spec/fixtures/smime/smime2@example.com.csr @@ -3,27 +3,27 @@ MIIE4TCCAskCAQAwgZsxITAfBgkqhkiG9w0BCQEWEnNtaW1lMkBleGFtcGxlLmNv bTELMAkGA1UEBhMCREUxDzANBgNVBAgMBkJlcmxpbjEPMA0GA1UEBwwGQmVybGlu MRkwFwYDVQQKDBBFeGFtcGxlIFNlY3VyaXR5MRYwFAYDVQQLDA1JVCBEZXBhcnRt ZW50MRQwEgYDVQQDDAtleGFtcGxlLmNvbTCCAiIwDQYJKoZIhvcNAQEBBQADggIP -ADCCAgoCggIBALIZ74dFJjp8/r1AXwem2jSUY4oY/WpkqjEUKUCwzlFTjMFOZGhy -CohWdp1NNHi8we3kRf1BDu66RSC6KuPU8mfi6IKR9mddWWOIcOmVXF9KidwKul+B -7qrdKZauAT3QTvDHZ3YHIBlPePsCkRVhay+xoomTBW3NM2X2iDCWN+ZoViX3NEo/ -GOrV6X0kBz/VgDTyCPJdWGMm7//JwiQmbcZxEU5R6BV2suSF/Z69Fkhi/rr9N/Ha -gpTKHU9zkadt48tO8J15lkVEV6owTm9GWx9GF649WsYtL3ONhNXAVBS84cQ7g/e4 -e0/Gv/UG2PMCeXynMqTFPA2WXjLXjG0GQalWOd3ONoqo/HZFZL6KlZrU7xm1MuoM -bEB5IaGRyxYK1iXS62DyAXr9Q67GcBAoD35GlZ/LRZyaXocabZKjjV2s9XKdrGyN -qAAwJZ8CuMnlhFW07LSiFC80iYnWIQaCu27HnXt0rDJxlo8MzxHyEMUI9BKRUBDA -PtBIMupeDkP/eg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vSQj/L01ilPVFtfdS9MfocN+UJI5JdX5mb7ytRh+stO4qs3PILGKIK +fjfN4sP0hrJerglRIiMBSw2o+lD8p4Yma4EHCax0HOFREMw4t2dDyDDTtK9pJnSD +KQr6xGrxibaVDv/iZknrhevWenNW5iNxz/qZQS1JYs3SfqbOutqoH9maKKONyqWQ +zym4xWs= -----END CERTIFICATE REQUEST----- diff --git a/spec/fixtures/smime/smime2@example.com.key b/spec/fixtures/smime/smime2@example.com.key index e20b5e144..89aaf39a5 100644 --- a/spec/fixtures/smime/smime2@example.com.key +++ b/spec/fixtures/smime/smime2@example.com.key @@ -1,54 +1,54 @@ -----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED -DEK-Info: AES-256-CBC,E635B30D63879480FEACF294E0B57BB7 +DEK-Info: AES-256-CBC,BBE7B609718A5F8B3F93A5B20FD2E75C -AuBSDMjHeO1u+IyrXGVjBsrKk31dgTMgS3zthV1jmulQnIxIS1MlzjmtyssmYZrX -aX/zN2ZfCWQ1otvKwjXUI1VICSiA0ckyijPS5GcgCB1GRbpNpIAVe2ttpp1eP4ot -w5jVTcLmIFWI8XVjoQiO9Yxtv/9eb2feD+vzCHUqskNQDO2AVPDvEkTXunE5qwDJ -ZMTz862ycJV+xoHyE5S9uHqiQTcXss1GU8tLkwngAmSdJSNWCQPchuKGM7ySrJUG -f/OEjISiCzOxLv6ljSSuHXBtqPfQcOvrzkFQPKeqx07Qx84FupjZgcFj/TwlbVhl -+mZgRxh7vbCi1kg/mm/EwcPf6EcPUbmodOwIGca6Xmae7HePv168s8gNhPF82Oho -IXCDXSsyxFWNKFElDTfVVvEjSI17ryUx+ZBJ1LVtBIy+lEj6xdFhb0a9M5S1KE+z -Quk2ty/z1kBkxw79+SPVHAYg9IXnt9VXc5ZlNLsBND0dc73dP7fT86zht4wwxtCD -YZya1rak1syFOV83bnYyiTFGz5i82UTb17p46qZ/a5MQsZwJRmT/SNKmGHbG5hWr -z27ig81HwfZhXdDGrfqluQd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xi4uG3ppepk5waTWZEBaZrTJQoq12I3/QIAugTYr0v71OZ8uGY8sP +K4L3StYbMHbH2xsJH1iZXVtzXT8PFqWUoNwb7CJM7QC0D9QtN+I67u5sqePTlrEV +RfJh2bzo3DzOgz3jEgU3J1Wau4G9hr2fUI1xxa0Obnv38tjjBNiex3qY3gb5IdBi +zgE/Ge8mPLa+2zQVdX7fPb1cGQHuSJTV9Q2w4tRe5FmfyCQTVARRrdhMT/wieIm0 +E7SbTojrZhijIHddUqSvotLEzemjnX81w+AMvLrA0NHj+rNuxPmV+Od/hELhpMln +EJX5rKB1LcsRVfhEl/2QBxBUPg1a8py9sY1EepR/N2scdHY6gSAFRxCDKcyLlKlJ +BpZL2ZJTlnzVk0tpLvAPLbmD4/+xqbn+7QOCRLKwHqDLFHEe+ZgGZ4d9Tf4ah8SD -----END RSA PRIVATE KEY----- diff --git a/spec/fixtures/smime/smime3@example.com.crt b/spec/fixtures/smime/smime3@example.com.crt index 76fa905a0..16956c861 100644 --- a/spec/fixtures/smime/smime3@example.com.crt +++ b/spec/fixtures/smime/smime3@example.com.crt @@ -1,37 +1,40 @@ -----BEGIN TRUSTED CERTIFICATE----- -MIIGVDCCBDygAwIBAgIUAh6m+t/Iz8s0i11uzqr7kDKyFe4wDQYJKoZIhvcNAQEL -BQAwgZcxHTAbBgkqhkiG9w0BCQEWDmNhQGV4YW1wbGUuY29tMQswCQYDVQQGEwJE -RTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJsaW4xGTAXBgNVBAoMEEV4 -YW1wbGUgU2VjdXJpdHkxFjAUBgNVBAsMDUlUIERlcGFydG1lbnQxFDASBgNVBAMM -C2V4YW1wbGUuY29tMCAXDTIwMDUyMDEzNDcxNFoYDzIyMjAwNDAyMTM0NzE0WjCB -mzEhMB8GCSqGSIb3DQEJARYSc21pbWUzQGV4YW1wbGUuY29tMQswCQYDVQQGEwJE -RTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJs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UBggrBgEFBQcDAgYIKwYBBQUHAwE= -----END TRUSTED CERTIFICATE----- diff --git a/spec/fixtures/smime/smime3@example.com.csr b/spec/fixtures/smime/smime3@example.com.csr index ac58feb1a..224fd5028 100644 --- a/spec/fixtures/smime/smime3@example.com.csr +++ b/spec/fixtures/smime/smime3@example.com.csr @@ -3,27 +3,27 @@ MIIE4TCCAskCAQAwgZsxITAfBgkqhkiG9w0BCQEWEnNtaW1lM0BleGFtcGxlLmNv bTELMAkGA1UEBhMCREUxDzANBgNVBAgMBkJlcmxpbjEPMA0GA1UEBwwGQmVybGlu MRkwFwYDVQQKDBBFeGFtcGxlIFNlY3VyaXR5MRYwFAYDVQQLDA1JVCBEZXBhcnRt ZW50MRQwEgYDVQQDDAtleGFtcGxlLmNvbTCCAiIwDQYJKoZIhvcNAQEBBQADggIP -ADCCAgoCggIBANuQsOn+LLxR5JlhQUM24Pt4c3gm/c4Czq+GiJavVKzQ2czuKH4T -5aiJ5syCMYDYG3ApTMe4aPQK6i4NA/zcLdAygnSkPRbfwWZOFqOegybuNyk28coW -kytnFdVGJLwbgMGRwlKzYK/EX70mbElijoKkQk6My/3nwXL+s1fSi6ze7426BNBI -UwPDEk3q7jXaY07UVb9AbhfqC01daq7DS+t55k4NDBGXKk9CwMgKI313d76qAAww -jr2OOkoDL+WzAk5EdvVbuVGagFn4sco4+p7pdvcshIRGzNlavAeX1Xhw4Igi3MNg -SJWEW4kHoXT46zCAsx6hETNqnkI7NvWsROJHnYzOsZ+pRU2aAO+Y1JhF2RCubKw4 -QFPm57rN5g+h2xvo9vWSALzJ589b5PDzeK72vCJkVKgoqHFd425TL6h6js1sXT9c -Nbzfo0GjccZDtzouVo2Vz0TUn08dbCKwmkJHJZpbRqSADfqh4c3FkG5zrMztKaGy -AHOhaQR7YyEvvHoGVPMmPfCwXYBT252Zm5RIh6pQXxvl378Rb3oiHt/F+ai4csgM -disiWgxqFJByF60rZ9ym3QJpUWpWVQMcMlw/iZbK96jZImSWDmgECtX1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ldcTVK2mpacjsh5yev9qlqGHwMGNRq3097urhO440npC +rY8MZL1YsiTQmiWZbnU1GixNUisPjQUoZsprcMf/vFHgKtbJwIyWlmhsPd6+o9yw +J7DL5RE= -----END CERTIFICATE REQUEST----- diff --git a/spec/fixtures/smime/smime3@example.com.key b/spec/fixtures/smime/smime3@example.com.key index a2c968863..55a52179b 100644 --- a/spec/fixtures/smime/smime3@example.com.key +++ b/spec/fixtures/smime/smime3@example.com.key @@ -1,54 +1,54 @@ -----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED -DEK-Info: AES-256-CBC,B60A858865943D0BF01E8FB0E2DF8999 +DEK-Info: AES-256-CBC,DB2015D4059E8A334A794102C31673D8 -2CcOg0E43fA+iqHyThLGlCe3XETh0VMZVIf60ykr+Mwx3xShzPwL3LXkdiAz69u1 -uQCPbCBb16j4Te9MmBXJbDIKbfJS2ut1RDf0cs6frfpQdTEDjPSF6fXhLjgNT7x+ -u6yS4c/vwr09ARMwOsEXuecWkrRnpwQe7alD13pRB/OAzI6jPLbCi75DttVWgmO0 -m2vKVxezyJ7gjje5myTG5h8vAD7+ajvyU5/NKMozgY1eYx0uSQlEeX3QTg1MMZgJ -wcqLYgjz3N5Je/6e2ynNcieqzhgVQ3cmZxTlH7ysG7I4OF9rVP/mu7gfX7z3RqDk -6z0AI+O5/yEFKSv8TMadh+nbWJlHyLxHyJS7igDxF4AZeRY4A+/+fUYAuNGq9XGX -3B8kOYIf0o1/GbkfftHau59B+IPVMXZJ0xrs3jnuFTbhAX5LdLIFgOXtp1ssjCPx -Z9PhVeCk1XJuSoZHZsAOtVPcTvmxeqFDGrIphNicogmnVXXGaG2Zn0ivNg7GMZzY -eXx7p/HkiuktC77uXyRX8zVgSU4Da7yRUzXB6lYx03xvtWgeujlA0eRkJwS/VGdu -QojLsRMeyMrn08ftV5SigzHP+t6ipKrOkQQJaMZEL5SCD1K13DLWFpoQqIZipJsF -rS6vY6skLZO1JWR946b7ylrizK69oShCKk93V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JborWFM9cUx4p1N +9xWRtX5ZUAiTkeGvXT4gR6wYFR5bQAE7CaHaLeacByZt0AnrY0fjsbvA2qrYVjye +g7Hzng3kIlcBHEKoKtJShufCEK4VdCpqi3Fr/FFLYEBDJ5lAHlLZgEOioUw+ZuNN +v2mLIgCQ9laABhl1fD/etLz3JKIdktxPms1vRIpnrrI5aBe+yRBJj6IYcQzyCCxp +2fHUdcQgfVsL6SOnmoqFbo3oYyNkX5EQE8EzyY6pbnu9ITHYjWTrTkAygHW7p4Is -----END RSA PRIVATE KEY----- diff --git a/spec/fixtures/smime/smimedouble@example.com.crt b/spec/fixtures/smime/smimedouble@example.com.crt index 098923d66..eff1376a8 100644 --- a/spec/fixtures/smime/smimedouble@example.com.crt +++ b/spec/fixtures/smime/smimedouble@example.com.crt @@ -1,39 +1,42 @@ -----BEGIN TRUSTED CERTIFICATE----- -MIIGojCCBIqgAwIBAgIUAh6m+t/Iz8s0i11uzqr7kDKyFe8wDQYJKoZIhvcNAQEL -BQAwgZcxHTAbBgkqhkiG9w0BCQEWDmNhQGV4YW1wbGUuY29tMQswCQYDVQQGEwJE -RTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJsaW4xGTAXBgNVBAoMEEV4 -YW1wbGUgU2VjdXJpdHkxFjAUBgNVBAsMDUlUIERlcGFydG1lbnQxFDASBgNVBAMM -C2V4YW1wbGUuY29tMCAXDTIwMDUyMDEzNDcxNVoYDzIyMjAwNDAyMTM0NzE1WjCB -oDEmMCQGCSqGSIb3DQEJARYXc21pbWVkb3VibGVAZXhhbXBsZS5jb20xCzAJBgNV -BAYTAkRFMQ8wDQYDVQQIDAZCZXJsaW4xDzANBgNVBAcMBkJlcmxpbjEZMBcGA1UE -CgwQRXhhbXBsZSBTZWN1cml0eTEWMBQGA1UECwwNSVQgRGVwYXJ0bWVudDEUMBIG -A1UEAwwLZXhhbXBsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoIC -AQDis/Cv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jAKBggrBgEFBQcDBKAU +BggrBgEFBQcDAgYIKwYBBQUHAwE= -----END TRUSTED CERTIFICATE----- diff --git a/spec/fixtures/smime/smimedouble@example.com.csr b/spec/fixtures/smime/smimedouble@example.com.csr index 93c3c93a7..9715fc25a 100644 --- a/spec/fixtures/smime/smimedouble@example.com.csr +++ b/spec/fixtures/smime/smimedouble@example.com.csr @@ -3,27 +3,27 @@ MIIE5jCCAs4CAQAwgaAxJjAkBgkqhkiG9w0BCQEWF3NtaW1lZG91YmxlQGV4YW1w bGUuY29tMQswCQYDVQQGEwJERTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZC ZXJsaW4xGTAXBgNVBAoMEEV4YW1wbGUgU2VjdXJpdHkxFjAUBgNVBAsMDUlUIERl cGFydG1lbnQxFDASBgNVBAMMC2V4YW1wbGUuY29tMIICIjANBgkqhkiG9w0BAQEF -AAOCAg8AMIICCgKCAgEA4rPwr4WVgeesT/MfH3dQemm9xV3kiHMU/zmOIYEG8dWi -e+X+hNI27CTBnVwojh1hP4EVJJCX51mztaP9mmaCG+o1JkJw7T67jAHAGU33FycM -CEiRna3j3Myzn9YTovdzeyaG8KtuSiSucy4YIH54lq3O81CEHzlggLwKkipnfK0U -mFUmdqAc8MkiKrlXnhJmDjn7upyaa93xRfertixUznD06qKY3SaOzOaUYcHf+Nox -qUUDAcHKycopjYTSxwn3FW5VejRWHKbnja0H2G530lNzVuOY83npKziAbtoVyeSP -pOzgd0X5VfNshrMGulTH3sloOiydgfvPQBbhQUtyoUWFyMs2E8+GHpFzH8J/pGW2 -4nXsYVur0ycJOnnD40zhkbFvnLkK66MJXQUsE+OrexYw2Wg8AzbEsl+1n9DV0lQf -/VR/PjooMv6VvdhEMjpT7EittDBZvZNIdKHOxnLEsLCm3PB0RxI5yE+69Bkk6Amf -MS3r6ETObuek/qJORHwEwrc+YW0j1uWVCcveyjx8c6KioJw9SMcktNNANaZpTURy -eHsc4dWJBhAbpz1B6e2HWt1gwep3mctNHsT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+zgrjFuAfTbafTL7sOEPs1p7Pu8Yi74+9hCI+EPXLAOk01 +EWYYkB5q7c7HlHzE0Kr6tKNvsaf2kLQH5jVEKfdpCa8WybEV74T9KrIqb+1GUZwK +xk+igqisDVdHkg== -----END CERTIFICATE REQUEST----- diff --git a/spec/fixtures/smime/smimedouble@example.com.key b/spec/fixtures/smime/smimedouble@example.com.key index f27b0fa18..f1d9e619f 100644 --- a/spec/fixtures/smime/smimedouble@example.com.key +++ b/spec/fixtures/smime/smimedouble@example.com.key @@ -1,54 +1,54 @@ -----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED -DEK-Info: AES-256-CBC,AEB75ED78474CDCBB6810500E499387A +DEK-Info: AES-256-CBC,B9F5D0F4B28140E5EB887FA32E5F664D -xgZEEAOOkUvpIwS0SbTi1fn9AQQvCyQBAcXO419tf/IT1FEgz2QHH8002TwkYzgl -5qTmO6lAbR1Ki28UNOX0egiY+SJBtJzGaLd5IqFtGjEU7NzDiIVasqScGvPqcJbm -JMi16/e6rneWEsE8+5jVIgSExj9B9eUvkMUnSBOAK9mfLw0UbrmszRypFa6xZ9j2 -UlMdE8D7duC5HxAwq3XK48XGVt80uTam4ODMe5dlKb5byBJNVBULnzUXTLtaiqOx -XvjPCLH1iHwtxG5dOaZWCGAG0JrPMkuQ661lTyH+HDnelx//5A2c1l3dp3DwHZPg -edB/vG1mhSmhSooWxjN8u5C2m+P8bHQehcARSKXNSlSiL3V1VzxJeOUDIVUJRx8w -Fb7CysqO9ArK/68C8xoKWaSnVGxYDL6nKb6Zhus7ej40/lyTxtSGFjC8HVO1feRf -Ay2l9nja7ypYQmQIPXwZiTYyYCnI1jDNkR6ng6E2lBeoK9i0yV3AU4ZmfgwwjCM4 -2N016uQNKn20IguT2CB0TmXvmBSxK6lNUycI4oEWtSiJnCRx9b4zTXw7YUh35SP3 -w3yrUAjVo3RBwr/6qrLBAPRYgxISElaWJ9Eh4KbhCo6TQQP6hz67LiKrbrxaBnJu -C48y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/9yXAAt9XkzsFV11BxRqAb6 +tuiYVZgdKrDvFixghE0j2WuD4qzlKMLVElfyTGIhpY8C10LWfC/SBS12q4KHIsUa +f69iX8YRlsRwAOiAApgIf3bj8FsCBZrWaUNRlXdC4pQfW4aaRQrobg+issIPtMeL +mudOtSJ0HznyxEZVNw1NQABTUVnRuK1UnaMHGy05LLvgzkstWpDtfDkvvBZ7jupC +1uYbc/Bj4zpkt7xHgbwXCcR7tOtykYqGwk3WU2CZgfuNCBYFRitZVpzyCbDc45Px +gYP5krY6ilx7EVwMg9TbEq3/hDj4ImFETAxClWnYPsJDa2ILpjmAoEtIrWdkoGPL -----END RSA PRIVATE KEY----- diff --git a/spec/lib/secure_mailing/smime_spec.rb b/spec/lib/secure_mailing/smime_spec.rb index 7ade245b4..7af7f08cc 100644 --- a/spec/lib/secure_mailing/smime_spec.rb +++ b/spec/lib/secure_mailing/smime_spec.rb @@ -15,7 +15,7 @@ RSpec.describe SecureMailing::SMIME do let(:expired_email_address) { 'expiredsmime1@example.com' } - let(:ca_certificate_subject) { '/emailAddress=ca@example.com/C=DE/ST=Berlin/L=Berlin/O=Example Security/OU=IT Department/CN=example.com' } + let(:ca_certificate_subject) { '/emailAddress=RootCA@example.com/C=DE/ST=Berlin/L=Berlin/O=Example Security/OU=IT Department/CN=example.com' } let(:content_type) { 'text/plain' } @@ -74,7 +74,7 @@ RSpec.describe SecureMailing::SMIME do context 'private key present' do - before do + let!(:sender_certificate) do create(:smime_certificate, :with_private, fixture: system_email_address) end @@ -123,6 +123,29 @@ RSpec.describe SecureMailing::SMIME do end end end + + context 'when certificate chain is present' do + + let(:system_email_address) { 'chain@example.com' } + + let!(:chain) do + [ + sender_certificate, + create(:smime_certificate, fixture: 'ChainCA'), + create(:smime_certificate, fixture: 'IntermediateCA'), + create(:smime_certificate, fixture: 'RootCA'), + ] + end + + let(:p7enc) do + mail = Channel::EmailParser.new.parse(build_mail.to_s) + OpenSSL::PKCS7.read_smime(mail[:raw]) + end + + it 'is included in the generated mail' do + expect(p7enc.certificates).to eq(chain.map(&:parsed)) + end + end end context 'no private key present' do @@ -308,7 +331,7 @@ RSpec.describe SecureMailing::SMIME do context 'CA' do - let(:not_related_fixture) { 'expiredca' } + let(:not_related_fixture) { 'ExpiredCA' } it 'fails' do expect(mail[:body]).to include(raw_body) @@ -323,17 +346,16 @@ RSpec.describe SecureMailing::SMIME do end context 'usage not prevented' do - let(:not_related_certificate_subject) { "/emailAddress=#{not_related_fixture}/C=DE/ST=Berlin/L=Berlin/O=Example Security/OU=IT Department/CN=example.com" } before do # remove OpenSSL::PKCS7::NOINTERN stub_const('SecureMailing::SMIME::Incoming::OPENSSL_PKCS7_VERIFY_FLAGS', OpenSSL::PKCS7::NOVERIFY) end - it 'wrongly performs a verification' do + it "won't perform verification" do expect(mail[:body]).to include(raw_body) - expect(mail['x-zammad-article-preferences'][:security][:sign][:success]).to be true - expect(mail['x-zammad-article-preferences'][:security][:sign][:comment]).to eq(not_related_certificate_subject) + expect(mail['x-zammad-article-preferences'][:security][:sign][:success]).to be false + expect(mail['x-zammad-article-preferences'][:security][:sign][:comment]).to eq('Unable to find certificate for verification') expect(mail['x-zammad-article-preferences'][:security][:encryption][:success]).to be false expect(mail['x-zammad-article-preferences'][:security][:encryption][:comment]).to be nil end @@ -346,7 +368,7 @@ RSpec.describe SecureMailing::SMIME do create(:smime_certificate, fixture: ca_fixture) end - let(:ca_fixture) { 'ca' } + let(:ca_fixture) { 'RootCA' } it 'verifies' do expect(mail[:body]).to include(raw_body) @@ -359,7 +381,7 @@ RSpec.describe SecureMailing::SMIME do it_behaves_like 'HttpLog writer', 'success' context 'expired' do - let(:ca_fixture) { 'expiredca' } + let(:ca_fixture) { 'ExpiredCA' } it 'fails' do expect(mail[:body]).to include(raw_body) @@ -388,6 +410,70 @@ RSpec.describe SecureMailing::SMIME do end end end + + context 'certificate chain' do + + let(:sender_email_address) { 'chain@example.com' } + let(:ca_subject_chain) { ca_chain.reverse.map(&:subject).join(', ') } + + context 'incomplete certificate chain present' do + + before do + create(:smime_certificate, fixture: 'RootCA') + create(:smime_certificate, fixture: 'IntermediateCA') + end + + it 'fails' do + expect(mail[:body]).to include(raw_body) + expect(mail['x-zammad-article-preferences'][:security][:sign][:success]).to be false + expect(mail['x-zammad-article-preferences'][:security][:sign][:comment]).to eq('Unable to find certificate for verification') + expect(mail['x-zammad-article-preferences'][:security][:encryption][:success]).to be false + expect(mail['x-zammad-article-preferences'][:security][:encryption][:comment]).to be nil + end + end + + context 'certificate chain only partly present' do + let(:ca_certificate_subject) { subject_chain } + + let!(:ca_chain) do + [ + create(:smime_certificate, fixture: 'IntermediateCA'), + create(:smime_certificate, fixture: 'ChainCA'), + ] + end + + it 'verifies' do + expect(mail[:body]).to include(raw_body) + expect(mail['x-zammad-article-preferences'][:security][:sign][:success]).to be true + expect(mail['x-zammad-article-preferences'][:security][:sign][:comment]).to eq(ca_subject_chain) + expect(mail['x-zammad-article-preferences'][:security][:encryption][:success]).to be false + expect(mail['x-zammad-article-preferences'][:security][:encryption][:comment]).to be nil + end + end + + context 'complete certificate chain present' do + + let!(:ca_chain) do + [ + create(:smime_certificate, fixture: 'RootCA'), + create(:smime_certificate, fixture: 'IntermediateCA'), + create(:smime_certificate, fixture: 'ChainCA'), + ] + end + + it 'verifies' do + allow(Rails.logger).to receive(:warn) + + expect(mail[:body]).to include(raw_body) + expect(mail['x-zammad-article-preferences'][:security][:sign][:success]).to be true + expect(mail['x-zammad-article-preferences'][:security][:sign][:comment]).to eq(ca_subject_chain) + expect(mail['x-zammad-article-preferences'][:security][:encryption][:success]).to be false + expect(mail['x-zammad-article-preferences'][:security][:encryption][:comment]).to be nil + + expect(Rails.logger).not_to have_received(:warn).with(/#{Regexp.escape(ca_certificate_subject)}/) + end + end + end end end diff --git a/spec/models/smime_certificate_spec.rb b/spec/models/smime_certificate_spec.rb index 6ac33e1bc..65e590356 100644 --- a/spec/models/smime_certificate_spec.rb +++ b/spec/models/smime_certificate_spec.rb @@ -185,7 +185,9 @@ RSpec.describe SMIMECertificate, type: :model do it_behaves_like 'correctly parsed', 'smime2@example.com' it_behaves_like 'correctly parsed', 'smime3@example.com' it_behaves_like 'correctly parsed', 'CaseInsenstive@eXample.COM' - it_behaves_like 'correctly parsed', 'ca' + it_behaves_like 'correctly parsed', 'RootCA' + it_behaves_like 'correctly parsed', 'IntermediateCA' + it_behaves_like 'correctly parsed', 'ChainCA' end end