Skip to content

Add Cert Factory for ours and others unittests. #6

@Ryanb58

Description

@Ryanb58
You may also wish to generate invalid certs (validity date range falling into T - 10years, or missing private key). You may wish to do this via a cert factory function:

valid_cert = create_cert()
expired_cert = create_cert(expired=True)
nokey_cert = valid_cert.remove_key()  # <-- Made this method up, but you can do it with some other calls.

Source @btimby

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions