]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - tcl_tests/ca.try
Fixed tests to match the current messages
[openssl-gost/engine.git] / tcl_tests / ca.try
index c5693bbda54abfc1a08800f8e9dae58f69488c8c..dd2d8df014cafa78d33d6b483ad3b5df04ed4bed 100644 (file)
@@ -92,13 +92,9 @@ test -skip {![file exists test.crl]} "Verifying corrupted CRL" {
 "
 
 test "Verifying CA certificate" {
-       grep "(cacert.pem|error|OK)" [openssl "verify $::test::ca/cacert.pem"]
-} 1 "error $::test::ca/cacert.pem: verification failed
-STDERR CONTENTS:
-C = RU, L = Moscow, CN = Test CA $ca_alg, O = Cryptocom, OU = OpenSSL CA, emailAddress = openssl@cryptocom.ru
-error 18 at 0 depth lookup: self signed certificate"
-
-
+       grep "(cacert.pem|error|OK)" [openssl "verify -CAfile $::test::ca/cacert.pem $::test::ca/cacert.pem"]
+} 0 "$::test::ca/cacert.pem: OK
+"
 
 test "Verifying certificate" {
        grep "cert.pem" [openssl "verify -CAfile $::test::ca/cacert.pem $userdir/cert.pem"]