Skip to content

Conversation

@faytranevozter
Copy link
Contributor

What is this PR about?

Enhance certificate view detail handling with common name extraction and chain details.

This pull request enhances the certificate management UI and utilities by improving how certificate chains are displayed and analyzed. It introduces the ability to expand certificate chains in the UI to show detailed information for each certificate in the chain, including common names and expiration details. Several utility functions for parsing and extracting certificate data have also been added or updated.

UI Improvements for Certificate Chains:

  • Added expand/collapse functionality for certificate chains in ShowCertificates, allowing users to view details for each certificate in the chain, including common names and expiration statuses. [1] [2] [3]
  • Displayed the leaf certificate's Common Name (CN) and detailed chain information in the certificate list, improving clarity for users managing multiple certificates.

Certificate Utility Enhancements:

  • Added utility functions in utils.ts to:
    • Split certificate chains (splitCertificateChain)
    • Extract the Common Name from certificates (extractCommonName, extractLeafCommonName)
    • Extract expiration dates from all certificates in a chain (extractAllExpirationDates)
    • Get the earliest expiration date in a chain (getEarliestExpirationDate) [1] [2]
  • Updated getExpirationStatus to consider the earliest expiration date in a chain, ensuring accurate status reporting for bundled certificates.
  • Added getCertificateChainExpirationDetails to provide detailed status, expiration, and CN information for each certificate in a chain, supporting the new UI features.

Screenshots

Before

image

After

image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant