Skip to content

Certificate.keyUsage #1

Description

@microshine

В текущей версии возвращает числовое значение в соответствии с RFC5280

KeyUsage ::= BIT STRING {
           digitalSignature        (0),
           nonRepudiation          (1), -- recent editions of X.509 have
                                -- renamed this bit to contentCommitment
           keyEncipherment         (2),
           dataEncipherment        (3),
           keyAgreement            (4),
           keyCertSign             (5),
           cRLSign                 (6),
           encipherOnly            (7),
           decipherOnly            (8) }

Есть предложение позаимствовать идею у WebCrypto и использовать схожий механизм для обозначения назначений ключа сертификата KeyUsage

Certificate.keyUsage: KeyUsage

KeyUsage = ["digitalSignature", "nonRepudiation", "keyEncipherment", "dataEncipherment", "keyAgreement", "keyCertSign", "CRLSign", "encipherOnly", "decipherOnly"]

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions