diff -r 000000000000 -r 2c201484c85f cryptoservices/certificateandkeymgmt/tcertstore/scripts/unifiedcertstore2-conf1.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cryptoservices/certificateandkeymgmt/tcertstore/scripts/unifiedcertstore2-conf1.txt Wed Jul 08 11:25:26 2009 +0100 @@ -0,0 +1,1923 @@ +//4.1 Test cases for single file-based writable certificate store + +//4.1.1 Successfull addition, listing and retrieval of certificates (X.509) + + No Test,Opening a CertificateAppInfoManager + initappmanager + + + KErrNone + + + + + No Test,Adding client A1 + addclient + + A1 + 1 + + + KErrNone + + + + + No Test,Adding client A2 + addclient + + A2 + 2 + + + KErrNone + + + + + No Test,Adding client A3 + addclient + + A3 + 3 + + + KErrNone + + + + + No Test,Adding client A4 + addclient + + A4 + 4 + + + KErrNone + + + + + No Test,Deleting the CertificateAppInfoManager + deleteappmanager + + + KErrNone + + + + +1.1.0.4 Import a RSA key + importkey + + rsacertkey1.txt + AllUsagesButNR + *IMPORTED* RSA key 1 + Extractable + + + KErrNone + + + + +1.1.0.5 Import a RSA key + importkey + + rsacertkey2.txt + AllUsagesButNR + *IMPORTED* RSA key 2 + Extractable + + + KErrNone + + + + +1.1.0.6 Import a RSA key + importkey + + rsacertkey3.txt + AllUsagesButNR + *IMPORTED* RSA key 3 + Extractable + + + KErrNone + + + + + 4.1.1.1,Opening a certificate store manager + init + + write + + + KErrNone + + + + + No Test, Deleting all certs ***NEW*** + deletecert + + + 1 + + + KErrNone + + + + + 4.1.1.1 Add user certificate with no corresponding private key + addcert + + X509 + + + 0 + c:\unifiedcertstore2\CAX1.cer + user + + + KErrPrivateKeyNotFound + + + + + 4.1.1.2 Add user certificate with no corresponding private key + addcert + + X509 + + + 0 + c:\unifiedcertstore2\CAX2.cer + user + + + KErrPrivateKeyNotFound + + + + + 4.1.1.3 Add user certificate with no corresponding private key + addcert + + X509 + + + 0 + c:\unifiedcertstore2\CAX3.cer + user + + + KErrPrivateKeyNotFound + + + + + 4.1.1.4,Add the certificate CAX1 + addcert + + X509 + + + + 0 + c:\unifiedcertstore2\CAX1.cer + ca + + + KErrNone + + + + + 4.1.1.5,Add the certificate CAX2 + addcert + + X509 + + + + 0 + c:\unifiedcertstore2\CAX2.cer + ca + + + KErrNone + + + + + 4.1.1.6,Add the certificate CAX3 + addcert + + X509 + + + + 0 + c:\unifiedcertstore2\CAX3.cer + ca + + + KErrNone + + + + + 4.1.1.7,Get the list of certificates + listcert + + + ca + + + + KErrNone + + + + + + + + 4.1.1.7.1,Retrieve CAX1 cert + retrieve + + + + + KErrNone + + + + + 4.1.1.8,Get the list of certificates, searching by Issuer DN + listcert + + + ca + + c:\unifiedcertstore2\CAX1.cer + + + KErrNone + + + + + + 4.1.1.9,Get the list of certificates, searching by 2 Issuer DNs + listcert + + + ca + + c:\unifiedcertstore2\CAX1.cer + c:\unifiedcertstore2\CAX2.cer + + + KErrNone + + + + + + + 4.1.1.10,Get the list of certificates, searching by 3 Issuer DNs + listcert + + + ca + + c:\unifiedcertstore2\CAX1.cer + c:\unifiedcertstore2\CAX2.cer + c:\unifiedcertstore2\CAX3.cer + + + KErrNone + + + + + + + + 4.1.1.11,Deleting the certificate store manager + delete + + + KErrNone + + + + + 4.1.1.12,Opening a certificate store manager + init + + write + + + KErrNone + + + + + 4.1.1.13,Get the list of certificates + listcert + + + ca + + + + KErrNone + + + + + + + + 4.1.1.14, Get a list of one certificate by specifying label CAX1 + listcert + + + ca + + + + + KErrNone + + + + + + 4.1.1.15, Get a list of one certificate by specifying label CAX3 + listcert + + + ca + + + + + KErrNone + + + + +//4.1.2 Successfull addition, listing and retrieval of certificates (WTLS) + + 4.1.2.1,Add the certificate CAW1 + addcert + + WTLS + + + + 0 + c:\unifiedcertstore2\CAW1.cer + ca + + + KErrNone + + + + + 4.1.2.2,Add the certificate CAW2 + addcert + + WTLS + + + + 0 + c:\unifiedcertstore2\CAW2.cer + ca + + + KErrNone + + + + + 4.1.2.3,Add the certificate CAW3 + addcert + + WTLS + + + + 0 + c:\unifiedcertstore2\CAW3.cer + ca + + + KErrNone + + + + + 4.1.2.4,Get the list of certificates + listcert + + + ca + + + + KErrNone + + + + + + + + + + + 4.1.2.4.1,List CAX1 by issuer DN + listcert + + + ca + + c:\unifiedcertstore2\CAX1.cer + + + KErrNone + + + + + + 4.1.2.4.2,Retrieve CAW1 cert + retrieve + + + + + KErrNone + + + + + 4.1.2.5,Deleting the certificate store manager + delete + + + KErrNone + + + + + 4.1.2.6,Opening a certificate store manager + init + + write + + + KErrNone + + + + + 4.1.2.7,Get the list of certificates + listcert + + + ca + + + + KErrNone + + + + + + + + + +//4.1.3 Successfull trust settings updates and retrieval + + 4.1.3.1,Set applications to the CAX1 certificate + setapplications + + + 1 2 3 + + + KErrNone + + + + + 4.1.3.1.1,Set duplicate applications to the CAX1. Should leave with KErrArgument + setapplications + + + 1 1 1 + + + KErrArgument + + + + + 4.1.3.2,set the trust for CAX1 + settrust + + + 1 + + + KErrNone + + + + + 4.1.3.3,Set applications to the CAX2 certificate + setapplications + + + 1 + + + KErrNone + + + + + + 4.1.3.3.1 Set duplicate applications to the CAX2. Should leave with KErrArgument + setapplications + + + 1 2 1 + + + KErrArgument + + + + + + 4.1.3.4,set the trust for CAX2 + settrust + + + 1 + + + KErrNone + + + + + 4.1.3.5,Set applications to the CAX3 certificate + setapplications + + + + + + KErrNone + + + + + 4.1.3.6,set the trust for CAX3 + settrust + + + 1 + + + KErrNone + + + + + 4.1.3.7,Get applications for CAX1 + getapplications + + + + + KErrNone + 1 2 3 + + + + + 4.1.3.8,Get the trust for CAX1 + gettrusters + + + + + KErrNone + 1 + + + + + 4.1.3.9,Get applications for CAX2 + getapplications + + + + + KErrNone + 1 + + + + + 4.1.3.10,Get the trust for CAX2 + gettrusters + + + + + KErrNone + 1 + + + + + 4.1.3.11,Get applications for CAX3 + getapplications + + + + + KErrNone + + + + + + 4.1.3.12,Get the trust for CAX3 + gettrusters + + + + + KErrNone + 1 + + + + + 4.1.3.13,Set trusters to the CAW2 certificate + setapplications + + + 1 2 3 + + + KErrNone + + + + + 4.1.3.14,set the trust for CAW2 + settrust + + + 1 + + + KErrNone + + + + + 4.1.3.15,Set trusters to the CAW3 certificate + setapplications + + + 1 2 + + + KErrNone + + + + + 4.1.3.16,set the trust for CAW3 + settrust + + + 1 + + + KErrNone + + + + + 4.1.3.17,Get applications for CAW1 + getapplications + + + + + KErrNone + + + + + + 4.1.3.18,Get the trust for CAW1 + gettrusters + + + + + KErrNone + 0 + + + + + 4.1.3.19,Get applications for CAW2 + getapplications + + + + + KErrNone + 1 2 3 + + + + + 4.1.3.20,Get the trust for CAW2 + gettrusters + + + + + KErrNone + 1 + + + + + 4.1.3.21,Get applications for CAW3 + getapplications + + + + + KErrNone + 1 2 + + + + + 4.1.3.22,Get the trust for CAW3 + gettrusters + + + + + KErrNone + 1 + + + +/////////////////////////////////////////////////////////// +// Test multiple calls to setapplicability/settrust + + 4.1.3.1a,Set applications to the CAX1 certificate + setapplications + + + 1 2 + + + KErrNone + + + + 4.1.3.2a,set the trust for CAX1 + settrust + + + 1 + + + KErrNone + + + + 4.1.3.7a,Get applications for CAX1 + getapplications + + + + + KErrNone + 1 2 + + + + 4.1.3.8a,Get the trust for CAX1 + gettrusters + + + + + KErrNone + 1 + + +/////////////////////////////////////////////////////////// + + 4.1.3.1b,Set applications to the CAX1 certificate + setapplications + + + 1 2 3 4 + + + KErrNone + + + + 4.1.3.2b,set the trust for CAX1 + settrust + + + 0 + + + KErrNone + + + + 4.1.3.7b,Get applications for CAX1 + getapplications + + + + + KErrNone + 1 2 3 4 + + + + 4.1.3.8b,Get the trust for CAX1 + gettrusters + + + + + KErrNone + 0 + + +/////////////////////////////////////////////////////////// + + 4.1.3.1c,Set applications to the CAX1 certificate + setapplications + + + 1 2 3 + + + KErrNone + + + + 4.1.3.2c,set the trust for CAX1 + settrust + + + 1 + + + KErrNone + + + + 4.1.3.7c,Get applications for CAX1 + getapplications + + + + + KErrNone + 1 2 3 + + + + 4.1.3.8c,Get the trust for CAX1 + gettrusters + + + + + KErrNone + 1 + + +/////////////////////////////////////////////////////////// + + 4.1.3.1d,Fail to set applications to the CAX1 certificate + setapplications + + + 1 2 3 4 5 + + + KErrArgument + + + + 4.1.3.7d,Get applications for CAX1 from previous setting + getapplications + + + + + KErrNone + 1 2 3 + + + + 4.1.3.2c,set the trust for CAX1 + settrust + + + 1 + + + KErrNone + + + + 4.1.3.1e,Set applications to the CAX1 certificate + setapplications + + + 1 2 3 4 + + + KErrNone + + + + 4.1.3.1f,Fail to set applications to the CAX1 certificate + setapplications + + + 1 2 3 4 5 7 8 9 + + + KErrArgument + + + + 4.1.3.7f,Get applications for CAX1 from previous setting + getapplications + + + + + KErrNone + 1 2 3 4 + + +/////////////////////////////////////////////////////////// +//4.1.4 Successful addition and retrieval of user certificates + + 4.1.4.1, Add certificate rsacert1 ***NEW*** + addcert + + X509 + + + 4808f03892fe836e78d048bcefcca4a37913d886 + 0 + c:\unifiedcertstore2\rsacert1.cer + user + + + KErrNone + + + + + + 4.1.4.2,Add the certificate rsacert2 ***NEW*** + addcert + + X509 + + + dc448293c7c3ed68c9fabd37db43007136ae2ef4 + 0 + c:\unifiedcertstore2\rsacert2.cer + user + + + KErrNone + + + + + 4.1.2.3,Add the certificate rsacert3 ***NEW*** + addcert + + X509 + + + 0b2e1d1d4dbae5fc59a02a5115d2c2910fa796e0 + 0 + c:\unifiedcertstore2\rsacert3.cer + user + + + KErrNone + + + + + 4.1.4.4.a,Get the list of certificates + listcert + + + ca + + + + KErrNone + + + + + + + + + + + 4.1.4.4.b,Get the list of certificates ***NEW*** + listcert + + + user + + + + KErrNone + + + + + + + + 4.1.4.4.c,Get the list of certificates searching by DN + listcert + + + user + + c:\unifiedcertstore2\rsacert1.cer + + + KErrNone + // All 3 user certs have same issuer + + + + + + + + 4.1.4.4.c,Get the list of certificates searching by DNs + listcert + + + user + + c:\unifiedcertstore2\CAX1.cer + + + KErrNone + // No user certs with this DN expected + + + + + 4.1.4.4.e,Retrieve rsacert1 cert + retrieve + + + + + KErrNone + + + + + No Test,Deleting the certificate CAX1 + deletecert + + ca + + + + KErrNone + + + + + No Test,Deleting the certificate CAX2 + deletecert + + ca + + + + KErrNone + + + + + No Test,Deleting the certificate CAX3 + deletecert + + ca + + + + KErrNone + + + + + No Test,Deleting the certificate CAW1 + deletecert + + ca + + + + KErrNone + + + + + No Test,Deleting the certificate CAW2 + deletecert + + ca + + + + KErrNone + + + + + No Test,Deleting the certificate CAW3 + deletecert + + ca + + + + KErrNone + + + + + No Test,Deleting the certificate rsacert1 ***NEW*** + deletecert + + user + + + + KErrNone + + + + + No Test,Deleting the certificate rsacert2 ***NEW*** + deletecert + + user + + + + KErrNone + + + + + No Test,Deleting the certificate rsacert3 ***NEW*** + deletecert + + user + + + + KErrNone + + + + + No Test,Deleting the certificate store manager + delete + + + KErrNone + + + +//7.1 Calling functions without initialising store + + No test,Creating a certificate store manager + onlycreate + + write + + + KErrNone + + + + + 7.1.1,Get the list of CA certificates + listcert + + + ca + + + + KErrNotReady + + + + + 7.1.2,Get the list of user certificates + listcert + + + user + + + + KErrNotReady + + + + + No test,Deleting the certificate store manager + delete + + + KErrNone + + + + +//7.2 Trust settings for CA certificates + + No Test,Opening a certificate store manager + init + + write + + + KErrNone + + + + + 7.2.1.a,Add the certificate CAX1 + addcert + + X509 + + + + 0 + c:\unifiedcertstore2\CAX1.cer + ca + + + KErrNone + + + + + 7.2.1.b,Get the list of certificates + listcert + + + ca + + + + KErrNone + + + + + + 7.2.1.c,Set applications to the CAX1 certificate + setapplications + + + 7 + + + KErrArgument + + + +//7.3 Supplying bad user certificates + + 7.3.1,Add the certificate U5K3 + addcert + + X509 + + + eeda2c6da84f17519ee837eadb8a5289dadfbb26 + 0 + c:\unifiedcertstore2\U5K3.crt + user + + + KErrPrivateKeyNotFound + + + + + 7.3.2,Add the certificate U6K5 with wrong subject key + addcert + + X509 + + + eeda2c6da84f17519ee837eadb8a5289dadf0000 + 0 + c:\unifiedcertstore2\U6K5.crt + user + + + KErrArgument + + + + + 7.3.3,Add the certificate URL3K5 + addcert + + X509URL + + + eeda2c6da84f17519ee837eadb8a5289dadf0000 + 0 + c:\unifiedcertstore2\URL3K5.cer + user + + + KErrPrivateKeyNotFound + + + + + No Test,Deleting the certificate CAX1 + deletecert + + ca + + + + KErrNone + + + +//7.4 + + 7.4.1.a,Add the certificate CAW1 + addcert + + WTLS + + + + 0 + c:\unifiedcertstore2\CAW1.cer + ca + + + KErrNone + + + + + 7.4.1.b,Add the certificate CAW1 + addcert + + WTLS + + + + 0 + c:\unifiedcertstore2\CAW1.cer + ca + + + KErrBadName + + + + + 7.4.2.a,Add the certificate CAX1 + addcert + + X509 + + + + 0 + c:\unifiedcertstore2\CAX1.cer + ca + + + KErrNone + + + + + 7.4.2.b,Add the certificate CAX1 + addcert + + X509 + + + + 0 + c:\unifiedcertstore2\CAX1.cer + ca + + + KErrBadName + + + + + + 7.4.3.a, Add the certificate rsacert3 ***NEW*** + addcert + + X509 + + 0b2e1d1d4dbae5fc59a02a5115d2c2910fa796e0 + 0 + c:\unifiedcertstore2\rsacert3.cer + user + + + KErrNone + + + + + 7.4.3.b, Add the certificate rsacert3 ***NEW*** + addcert + + X509 + + 0b2e1d1d4dbae5fc59a02a5115d2c2910fa796e0 + 0 + c:\unifiedcertstore2\rsacert3.cer + user + + + KErrBadName + + + + + No Test,Deleting the certificate CAX1 + deletecert + + ca + + + + KErrNone + + + + + No Test,Deleting the certificate CAW1 + deletecert + + ca + + + + KErrNone + + + + + No Test,Deleting the certificate rsacert3 ***NEW*** + deletecert + + user + + + + KErrNone + + + +//7.5 Loading certificates + + 7.5.1.a,Add the certificate CAX1 + addcert + + X509 + + + + 0 + c:\unifiedcertstore2\CAX1.cer + ca + + + KErrNone + + + + + 7.5.1.b,Add the certificate CAW1 + addcert + + WTLS + + + + 0 + c:\unifiedcertstore2\CAW1.cer + ca + + + KErrNone + + + + + 7.5.1.c,Add the certificate URL1rsa1 ***NEW*** + addcert + + X509URL + + + 4808f03892fe836e78d048bcefcca4a37913d886 + 0 + c:\unifiedcertstore2\URL1K1.cer + user + + + KErrNone + + + + + 7.5.1.d,Add the certificate URL2rsa2 ***NEW*** + addcert + + X509URL + + + dc448293c7c3ed68c9fabd37db43007136ae2ef4 + 0 + c:\unifiedcertstore2\URL2K2.cer + user + + + KErrNone + + + + + 7.5.1.e,List URL certificates + listcert + + + user + X509URL + + + + KErrNone + + + + + + + 7.5.1.f,Retrieve URL1rsa1 cert + retrieve + + + + + KErrNone + + + + + 7.5.2,Deleting and retrieving the certificate CAX1 + deleteandretrievecacert + + + + + KErrNotFound + + + + + 7.5.3,Deleting and retrieving the certificate CAW1 + deleteandretrievecacert + + + + + KErrNotFound + + + + + 7.5.4,Deleting and retrieving the certificate U1K1 + deleteandretrieveusercert + + + + + KErrNotFound + + + + + 7.5.5,Deleting and retrieving the certificate URL2rsa2 + deleteandretrieveusercert + + + + + KErrNotFound + + + + + 7.5.5,Deleting and retrieving the certificate URL1rsa1 + deleteandretrieveusercert + + + + + KErrNotFound + + + + + + No Test,Deleting the writable certificate store manager + delete + + + KErrNone + + + +// Start of tests 7.6 + + No Test,Opening a certificate store manager + init + + write + + + KErrNone + + + + + No test + addcert + + X509 + + + + 0 + c:\unifiedcertstore2\CAX1.cer + ca + + + KErrNone + + + + + No Test,Deleting the writable certificate store manager + delete + + + KErrNone + + + + + No Test,Opening a certificate store manager + init + + read + + + KErrNone + + + + + 7.6.1,Deleting the certificate CAX1 + deletecert + + ca + + + + KErrAccessDenied + + + + + 7.6.2,Set applications to the CAX1 certificate + setapplications + + + 1 + + + KErrAccessDenied + + + + + 7.6.3,Set the trust for CAX1 + settrust + + + 1 + + + KErrAccessDenied + + + + + No Test,Deleting the writable certificate store manager + delete + + + KErrNone + + + + + No Test,Opening a certificate store manager + init + + write + + + KErrNone + + + + + No Test,Deleting the certificate CAX1 + deletecert + + ca + + + + KErrNone + + + + + No Test, Deleting all certs ***NEW*** + deletecert + + + 1 + + + KErrNone + + + + + No Test,Deleting the writable certificate store manager + delete + + + KErrNone + + + +// End of tests, removing the clients + + No Test,Opening a CertificateAppInfoManager + initappmanager + + + KErrNone + + + + + No Test,Deleting the client A1 + removeclient + + 1 + + + KErrNone + + + + + No Test,Deleting the client A2 + removeclient + + 2 + + + KErrNone + + + + + No Test,Deleting the client A3 + removeclient + + 3 + + + KErrNone + + + + + No Test,Deleting the client A4 + removeclient + + 4 + + + KErrNone + + + + + No Test,Deleting the CertificateAppInfoManager + deleteappmanager + + + KErrNone + +