Skip to content
This repository has been archived by the owner on Sep 14, 2019. It is now read-only.

Feature Request: Find and query TLS certificates #440

Open
arcrose opened this issue Mar 14, 2018 · 1 comment
Open

Feature Request: Find and query TLS certificates #440

arcrose opened this issue Mar 14, 2018 · 1 comment
Assignees
Labels

Comments

@arcrose
Copy link
Contributor

arcrose commented Mar 14, 2018

This request came in from atoll, who has described his use case like so (my paraphrasing):

  • We would like to be able to identify certificate files on hosts, then
  • Decode the certificate file and parse its ASN.1 structure, then
  • Execute a query over the parsed structure to answer questions like:
    • Is the certificate self-signed?
    • Is the certificate using secure crypto. primitives?
    • Is the certificate explicitly disallowing the use of insecure crypto. primitives?
@arcrose arcrose added the agent label Mar 14, 2018
@arcrose arcrose self-assigned this Mar 14, 2018
@jvehent
Copy link
Contributor

jvehent commented Mar 20, 2018

You could write a new module that imports the file module to list files that contain -----BEGIN CERTIFICATE----- and then process those files. However, scanning an entire file system takes too much time and typically gets killed before completion. It would succeed if you limit it to /etc though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants