8000 pki cert-find returned cert entries when invalid date is passed to --issuedOnTo · Issue #1950 · dogtagpki/pki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
pki cert-find returned cert entries when invalid date is passed to --issuedOnTo #1950
@pki-bot

Description

@pki-bot

This issue was migrated from Pagure Issue #1389. Originally filed by mrniranjan (@mrniranjan) on 2015-05-28 04:20:10:


pki cert-find returns entries when invalid date is passed to --issuedOnTo

$ pki -h pki2.example.org -p 30044 cert-find --issuedOnTo 2015-37-33


----------------
34 entries found
----------------
  Serial Number: 0x1
  Subject DN: CN=PKI ROOTCA Signing Cert,O=redhat
  Status: VALID
  Type: X.509 version 3
  Key Algorithm: PKCS 1 RSA with 2048-bit key
  Not Valid Before: Tue May 26 15:22:06 IST 2015
  Not Valid After: Sat May 26 15:22:06 IST 2035
  Issued On: Tue May 26 15:22:06 IST 2015
  Issued By: system

  Serial Number: 0x2
  Subject DN: CN=PKI ROOTCA OCSP Signing Certificate,O=Redhat
  Status: VALID
  Type: X.509 version 3
  Key Algorithm: PKCS 1 RSA with 2048-bit key
  Not Valid Before: Tue May 26 15:22:10 IST 2015
  Not Valid After: Mon May 15 15:22:10 IST 2017
  Issued On: Tue May 26 15:22:10 IST 2015
  Issued By: system

  Serial Number: 0x3
  Subject DN: CN=pki2.example.org,O=Redhat
  Status: VALID
  Type: X.509 version 3
  Key Algorithm: PKCS 1 RSA with 2048-bit key
  Not Valid Before: Tue May 26 15:22:10 IST 2015
  Not Valid After: Mon May 15 15:22:10 IST 2017
  Issued On: Tue May 26 15:22:10 IST 2015
  Issued By: system

Steps to Reproduce:

1.Install and configure CA subsystem
2.issue pki -h <host> -p <port> cert-find --issuedOnTo 2022-37-33

Actual results:

Returns certs when invalid date is passed to cert-find --issuedOnTo

Expected results:

No results should be returned and an error message should be provided that date
format is wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0