Skip to content

RDN string spacing #25

@brussee

Description

@brussee

Is it correct to add extra whitespace here around the equals sign? (Probably, but...)
https://github.com/nonebot/nonecorn/blob/nonecorn_dev/src/hypercorn/utils.py#L277

Inserting whitespace is not advised because it may not be obvious to the user which whitespace is part of the DN string and which whitespace was added for readability.

From: https://www.rfc-editor.org/rfc/rfc4514

At least for consistency I'd argue to have a similar representation as the PEM format produced by OpenSSL, which does not have (extra) spaces around equals sign (checked on v1.1.1n).

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