sl@0: //! Cancel2.txt
sl@0: //! Cancellation tests for the certificate addition, deletion, trust&application setting with notification
sl@0: //! to the client process.
sl@0:
sl@0: // Note: The in-source test tag is only added to the new tests for PREQ226. The tests without test tag is the existing tests
sl@0: // in the certstore component, which are used to set up the environment needed by the PREQ226 tests.
sl@0:
sl@0: // Setup ///////////////////////////////////////////////////////////////////////
sl@0:
sl@0:
sl@0: No Test,Opening a CertificateAppInfoManager
sl@0: initappmanager
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: No Test,Adding client A1
sl@0: addclient
sl@0:
sl@0: A1
sl@0: 1
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: No Test,Adding client A2
sl@0: addclient
sl@0:
sl@0: A2
sl@0: 2
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: No Test,Adding client A3
sl@0: addclient
sl@0:
sl@0: A3
sl@0: 3
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: No Test,Adding client A4
sl@0: addclient
sl@0:
sl@0: A4
sl@0: 4
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: No Test,Deleting the CertificateAppInfoManager
sl@0: deleteappmanager
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: Import a RSA key rsacertkey1
sl@0: importkey
sl@0:
sl@0: rsacertkey1.txt
sl@0: AllUsagesButNR
sl@0: *IMPORTED* RSA key 1
sl@0: Extractable
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: Opening a writable certificate store manager
sl@0: init
sl@0:
sl@0: write
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: Deleting all certs
sl@0: deletecert
sl@0:
sl@0:
sl@0: 1
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: Deleting the writable certificate store manager
sl@0: delete
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: Enabling cancellation testing
sl@0: startcancellation
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0: // Initialisation //////////////////////////////////////////////////////////////
sl@0:
sl@0:
sl@0: Opening a writable certificate store manager
sl@0: init
sl@0:
sl@0: write
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0: // Add certs ///////////////////////////////////////////////////////////////////
sl@0:
sl@0: //! @file
sl@0: //! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCCancelWN1.1
sl@0: //! @SYMTestCaseDesc The test is to test cancellation of X509 CA certificate addition with notification.
sl@0: //! @SYMPREQ 226
sl@0: //! @SYMTestCasePriority High
sl@0: //! @SYMTestExpectedResults KErrNone
sl@0:
sl@0:
sl@0: 1.1, Cancel X509 CA certificate CAX1 addition with notification
sl@0: addcert
sl@0:
sl@0: X509
sl@0:
sl@0:
sl@0:
sl@0: 0
sl@0: c:\unifiedcertstore2\CAX1.cer
sl@0: CA
sl@0: 1
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0: //! @file
sl@0: //! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCCancelWN1.2
sl@0: //! @SYMTestCaseDesc The test is to test cancellation of WTLS CA certificate addition with notification.
sl@0: //! @SYMPREQ 226
sl@0: //! @SYMTestCasePriority High
sl@0: //! @SYMTestExpectedResults KErrNone
sl@0:
sl@0: 1.2, Cancel WTLS CA certificate CAW1 addition with notification
sl@0: addcert
sl@0:
sl@0: WTLS
sl@0:
sl@0:
sl@0:
sl@0: 0
sl@0: c:\unifiedcertstore2\CAW1.cer
sl@0: CA
sl@0: 1
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0: //! @file
sl@0: //! @SYMTestCaseID UCTSSEC-CT-WModeUCTAddCCancelWN1.3
sl@0: //! @SYMTestCaseDesc The test is to test cancellation of X509 user certificate addition with notification.
sl@0: //! @SYMPREQ 226
sl@0: //! @SYMTestCasePriority High
sl@0: //! @SYMTestExpectedResults KErrNone
sl@0:
sl@0: 1.3, Cancel X509 user certificate rsacert1 addition with notification
sl@0: addcert
sl@0:
sl@0: X509
sl@0:
sl@0:
sl@0: 4808f03892fe836e78d048bcefcca4a37913d886
sl@0: 0
sl@0: c:\unifiedcertstore2\rsacert1.cer
sl@0: User
sl@0: 1
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0: // List certs //////////////////////////////////////////////////////////////////
sl@0:
sl@0:
sl@0: List CA certificates
sl@0: listcert
sl@0:
sl@0:
sl@0: ca
sl@0:
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: List user certificates
sl@0: listcert
sl@0:
sl@0:
sl@0: user
sl@0:
sl@0: pkcs15
sl@0: private
sl@0: AllUsagesButNR
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: List user certificates filtered by key usage
sl@0: listcert
sl@0:
sl@0:
sl@0: user
sl@0:
sl@0: pkcs15
sl@0: private
sl@0: Decrypt
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: List user certificates filtered by key usage
sl@0: listcert
sl@0:
sl@0:
sl@0: user
sl@0:
sl@0: pkcs15
sl@0: NonRepudiation
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: List certificates filtered by Issuer DN
sl@0: listcert
sl@0:
sl@0:
sl@0: ca
sl@0:
sl@0: c:\unifiedcertstore2\CAX1.cer
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: List certificates filtered by Issuer DN
sl@0: listcert
sl@0:
sl@0:
sl@0: ca
sl@0:
sl@0: c:\unifiedcertstore2\CAX1.cer
sl@0: c:\unifiedcertstore2\CAX2.cer
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: List certificates filtered by Issuer DN
sl@0: listcacert
sl@0:
sl@0:
sl@0:
sl@0: c:\unifiedcertstore2\CAX2.cer
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0: // Retrieve certs
sl@0:
sl@0:
sl@0: Retrieve CAX1 cert
sl@0: retrieve
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: Retrieve CAW1 cert
sl@0: retrieve
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0: // Applications and trust //////////////////////////////////////////////////////
sl@0:
sl@0: //! @file
sl@0: //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSAppCCancelWN4.1
sl@0: //! @SYMTestCaseDesc The test is to test cancellation of setting X509 CA certificate application with notification.
sl@0: //! @SYMPREQ 226
sl@0: //! @SYMTestCasePriority High
sl@0: //! @SYMTestExpectedResults KErrNone
sl@0:
sl@0: 4.1 Cancel applications setting to the CAX1 certificate with notification
sl@0: setapplications
sl@0:
sl@0:
sl@0: 1 2 3
sl@0: 1
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: Get applications for CAX1
sl@0: getapplications
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: KErrNone
sl@0: 1 2 3
sl@0:
sl@0:
sl@0:
sl@0: //! @file
sl@0: //! @SYMTestCaseID UCTSSEC-CT-WModeUCTSTrustCCancelWN3.1
sl@0: //! @SYMTestCaseDesc The test is to test cancellation of setting X509 CA certificates trust with notification.
sl@0: //! @SYMPREQ 226
sl@0: //! @SYMTestCasePriority High
sl@0: //! @SYMTestExpectedResults KErrNone
sl@0:
sl@0: 3.1, Cancel the trust setting for CAX1 with notification
sl@0: settrust
sl@0:
sl@0:
sl@0: 1
sl@0: 1
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: Get the trust for CAX1
sl@0: gettrusters
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: KErrNone
sl@0: 1
sl@0:
sl@0:
sl@0:
sl@0: // Delete certs ////////////////////////////////////////////////////////////////
sl@0: //! @file
sl@0: //! @SYMTestCaseID UCTSSEC-CT-WModeUCTDelCCancelWN2.1
sl@0: //! @SYMTestCaseDesc The test is to test cancellation of X509 CA certificates deletion with notification.
sl@0: //! @SYMPREQ 226
sl@0: //! @SYMTestCasePriority High
sl@0: //! @SYMTestExpectedResults KErrNone
sl@0:
sl@0: 2.1, Cancel CAX1 certs deletion with notification
sl@0: deletecert
sl@0:
sl@0: ca
sl@0:
sl@0: 1
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0: // Cleanup /////////////////////////////////////////////////////////////////////
sl@0:
sl@0:
sl@0: Disabling cancellation testing
sl@0: stopcancellation
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: Deleting all certs
sl@0: deletecert
sl@0:
sl@0:
sl@0: 1
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: Deleting the writable certificate store manager
sl@0: delete
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: No Test,Opening a CertificateAppInfoManager
sl@0: initappmanager
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: No Test,Deleting the client A1
sl@0: removeclient
sl@0:
sl@0: 1
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: No Test,Deleting the client A2
sl@0: removeclient
sl@0:
sl@0: 2
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: No Test,Deleting the client A3
sl@0: removeclient
sl@0:
sl@0: 3
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: No Test,Deleting the client A4
sl@0: removeclient
sl@0:
sl@0: 4
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0:
sl@0:
sl@0:
sl@0: No Test,Deleting the CertificateAppInfoManager
sl@0: deleteappmanager
sl@0:
sl@0:
sl@0: KErrNone
sl@0:
sl@0: