boulder: Index | Files

package revocation

import ""


Package Files



const (
    // Definitions for these codes can be found in Section of ITU-T X.509
    Unspecified          = 0
    KeyCompromise        = 1
    CACompromise         = 2
    AffiliationChanged   = 3
    Superseded           = 4
    CessationOfOperation = 5
    CertificateHold      = 6
    // 7 is unused
    RemoveFromCRL      = 8
    PrivilegeWithdrawn = 9
    AACompromise       = 10


var ReasonToString = map[Reason]string{
    Unspecified:          "unspecified",
    KeyCompromise:        "keyCompromise",
    CACompromise:         "cACompromise",
    AffiliationChanged:   "affiliationChanged",
    Superseded:           "superseded",
    CessationOfOperation: "cessationOfOperation",
    CertificateHold:      "certificateHold",

    RemoveFromCRL:      "removeFromCRL",
    PrivilegeWithdrawn: "privilegeWithdrawn",
    AACompromise:       "aAcompromise",

RevocationReasons provides a map from reason code to string explaining the code

var UserAllowedReasons = map[Reason]struct{}{
    Unspecified:          {},
    KeyCompromise:        {},
    AffiliationChanged:   {},
    Superseded:           {},
    CessationOfOperation: {},

UserAllowedReasons contains the subset of Reasons which users are allowed to use

func UserAllowedReasonsMessage Uses

func UserAllowedReasonsMessage() string

UserAllowedReasonsMessage creates a string describing a list of user allowed revocation reasons. This is useful when a revocation is rejected because it is not a valid user supplied reason and the allowed values must be communicated.

type Reason Uses

type Reason int

Reason is used to specify a certificate revocation reason

Package revocation imports 3 packages (graph) and is imported by 116 packages. Updated 2019-06-09. Refresh now. Tools for package owners.