github.com/vmware/go-vmware-nsxt@v0.0.0-20230223012718-d31b8a1ca05e/trust/x509_certificate.go (about)

     1  /* Copyright © 2017 VMware, Inc. All Rights Reserved.
     2     SPDX-License-Identifier: BSD-2-Clause
     3  
     4     Generated by: https://github.com/swagger-api/swagger-codegen.git */
     5  
     6  package trust
     7  
     8  type X509Certificate struct {
     9  
    10  	// One of the DSA cryptogaphic algorithm's strength parameters, base
    11  	DsaPublicKeyG string `json:"dsa_public_key_g,omitempty"`
    12  
    13  	// One of the DSA cryptogaphic algorithm's strength parameters, prime
    14  	DsaPublicKeyP string `json:"dsa_public_key_p,omitempty"`
    15  
    16  	// One of the DSA cryptogaphic algorithm's strength parameters, sub-prime
    17  	DsaPublicKeyQ string `json:"dsa_public_key_q,omitempty"`
    18  
    19  	// One of the DSA cryptogaphic algorithm's strength parameters
    20  	DsaPublicKeyY string `json:"dsa_public_key_y,omitempty"`
    21  
    22  	// True if this is a CA certificate
    23  	IsCa bool `json:"is_ca,omitempty"`
    24  
    25  	// True if this certificate is valid
    26  	IsValid bool `json:"is_valid,omitempty"`
    27  
    28  	// the certificate issuers complete distinguished name
    29  	Issuer string `json:"issuer,omitempty"`
    30  
    31  	// the certificate issuer's common name
    32  	IssuerCn string `json:"issuer_cn,omitempty"`
    33  
    34  	// the time in epoch milliseconds at which the certificate becomes invalid
    35  	NotAfter int64 `json:"not_after,omitempty"`
    36  
    37  	// the time in epoch milliseconds at which the certificate becomes valid
    38  	NotBefore int64 `json:"not_before,omitempty"`
    39  
    40  	// Cryptographic algorithm used by the public key for data encryption
    41  	PublicKeyAlgo string `json:"public_key_algo,omitempty"`
    42  
    43  	// size measured in bits of the public/private keys used in a cryptographic algorithm
    44  	PublicKeyLength int64 `json:"public_key_length,omitempty"`
    45  
    46  	// An RSA public key is made up of the modulus and the public exponent. Exponent is a power number
    47  	RsaPublicKeyExponent string `json:"rsa_public_key_exponent,omitempty"`
    48  
    49  	// An RSA public key is made up of the modulus and the public exponent. Modulus is wrap around number
    50  	RsaPublicKeyModulus string `json:"rsa_public_key_modulus,omitempty"`
    51  
    52  	// certificate's serial number
    53  	SerialNumber string `json:"serial_number,omitempty"`
    54  
    55  	// the signature value(the raw signature bits) used for signing and validate the cert
    56  	Signature string `json:"signature,omitempty"`
    57  
    58  	// the algorithm used by the Certificate Authority to sign the certificate
    59  	SignatureAlgorithm string `json:"signature_algorithm,omitempty"`
    60  
    61  	// the certificate owners complete distinguished name
    62  	Subject string `json:"subject,omitempty"`
    63  
    64  	// the certificate owner's common name
    65  	SubjectCn string `json:"subject_cn,omitempty"`
    66  
    67  	// Certificate version (default v1)
    68  	Version string `json:"version,omitempty"`
    69  }