Here is the test results after doing changes.. On 08/11/2016 03:26 PM, Geetika Kapoor wrote: > Hi, > > This patch fix BZ 1358462 - pki pkcs12-cert-del shows a successfully > deleted message when a wrong nickname is provided. > If we provide wrong cert nickname it gives "Certificate Nickname > subsystemCert cert-topology-02-CA doesn't exist" and also if cert > nickname doesn't exist it won't share the number of entries present. > If cert nickname match then only it shows how many entries exist. > > Thanks > Geetika > > > _______________________________________________ > Pki-devel mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/pki-devel
Test Results: ------------- [root@pki1 pki]# pki pkcs12-cert-find --pkcs12-file /tmp/test_BZ/ca.p12 --pkcs12-password-file /tmp/test_BZ/password.txt--------------- 3 entries found --------------- Certificate ID: 8f10550112e84d196c20368492579914900732bc Serial Number: 0x2 Nickname: ocspSigningCert cert-topology-02-CA CA Subject DN: CN=CA OCSP Signing Certificate,O=topology-02_Foobarmaster.org Issuer DN: CN=CA Signing Certificate,O=topology-02_Foobarmaster.org Trust Flags: u,u,u Has Key: true Certificate ID: 3bb6074fa6efe3d0b0e785b0366ccaacc4ca75c8 Serial Number: 0x1 Nickname: caSigningCert cert-topology-02-CA CA Subject DN: CN=CA Signing Certificate,O=topology-02_Foobarmaster.org Issuer DN: CN=CA Signing Certificate,O=topology-02_Foobarmaster.org Trust Flags: CTu,Cu,Cu Has Key: true Certificate ID: 9bf832618b627f34ba17ed2664f5b50e4e0c9e7a Serial Number: 0x3 Nickname: Server-Cert cert-topology-02-CA Subject DN: CN=pki1.example.com,O=topology-02_Foobarmaster.org Issuer DN: CN=CA Signing Certificate,O=topology-02_Foobarmaster.org Trust Flags: u,u,u Has Key: true [root@pki1 pki]# pki pkcs12-cert-del "subsystemCert cert-topology-02-CA" --pkcs12-file /tmp/test_BZ/ca.p12 --pkcs12-password-file /tmp/test_BZ/password.txt Certificate Nickname subsystemCert cert-topology-02-CA doesn't exist [root@pki1 pki]# pki pkcs12-cert-del "Server-Cert cert-topology-02-CA" --pkcs12-file /tmp/test_BZ/ca.p12 --pkcs12-password-file /tmp/test_BZ/password.txt --------------- 3 entries found --------------- ----------------------------------------------------- Deleted certificate "Server-Cert cert-topology-02-CA" ----------------------------------------------------- [root@pki1 pki]# pki pkcs12-cert-find --pkcs12-file /tmp/test_BZ/ca.p12 --pkcs12-password-file /tmp/test_BZ/password.txt--------------- 2 entries found --------------- Certificate ID: 8f10550112e84d196c20368492579914900732bc Serial Number: 0x2 Nickname: ocspSigningCert cert-topology-02-CA CA Subject DN: CN=CA OCSP Signing Certificate,O=topology-02_Foobarmaster.org Issuer DN: CN=CA Signing Certificate,O=topology-02_Foobarmaster.org Trust Flags: u,u,u Has Key: true Certificate ID: 3bb6074fa6efe3d0b0e785b0366ccaacc4ca75c8 Serial Number: 0x1 Nickname: caSigningCert cert-topology-02-CA CA Subject DN: CN=CA Signing Certificate,O=topology-02_Foobarmaster.org Issuer DN: CN=CA Signing Certificate,O=topology-02_Foobarmaster.org Trust Flags: CTu,Cu,Cu Has Key: true
_______________________________________________ Pki-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/pki-devel
