Scheme tests verify if items saved using the old encryption scheme
(Crypto::ENCRYPTION_V1) used until year 2015 are properly migrated and
encrypted using the current scheme (Crypto::ENCRYPTION_V2). The test
uses a database with several items encrypted using the old scheme. Among
these items there are also certificates. One of them just expired which
leads to error during chain creation.
To fix, it one would have to reenable the old scheme temporarily, update
the certificate and recreate the test database. On the other hand, any
certificate stored before 2015 would be expired and thus useless by now.
Therefore, there's no point in testing the chain creation here.
Change-Id: I6e95e38862f1348c82c84a3bcac40331f02294df
}
// Chain creation should reencrypt objects with new scheme
-POSITIVE_TEST_CASE(T220_CreateChain)
+POSITIVE_TEST_CASE(T220_CertificateChain)
{
SchemeTest test;
test.RestoreDb();
- test.CreateChain();
+ test.ReadAll();
// non exportable certificates and certificates protected with passwords can't be used for chain
// creation