QuickOPC User's Guide and Reference
PkiFileFormat Enumeration



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security.Cryptography.PkiCertificates Namespace : PkiFileFormat Enumeration
File formats used in PKI.
Syntax
'Declaration
 
<CLSCompliantAttribute(True)>
<ComVisibleAttribute(True)>
<DisplayName2Attribute("PKI File Format")>
<GuidAttribute("0CEC6A3F-F22C-4913-802F-ECFDB16DDCEF")>
Public Enum PkiFileFormat 
   Inherits System.Enum
   Implements System.IComparable, System.IConvertible, System.IFormattable 
'Usage
 
Dim instance As PkiFileFormat
[CLSCompliant(true)]
[ComVisible(true)]
[DisplayName2("PKI File Format")]
[Guid("0CEC6A3F-F22C-4913-802F-ECFDB16DDCEF")]
public enum PkiFileFormat : System.Enum, System.IComparable, System.IConvertible, System.IFormattable  
[CLSCompliant(true)]
[ComVisible(true)]
[DisplayName2("PKI File Format")]
[Guid("0CEC6A3F-F22C-4913-802F-ECFDB16DDCEF")]
public enum class PkiFileFormat : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable  
Members
MemberValueDescription
Authenticode1PKI file format with an Authenticode certificate.

Remarks: Corresponds to System.Security.Cryptography.X509Certificates.X509ContentType.Authenticode.

A variant of PKCS #7.

Cert2Same PKI file format as Der, but implies a different file extension.

Remarks:

Common file extensions: .cer.

Binary format.

Contains single certificate.

No private key.

Der3The DER (Distinguished Encoding Rules) file format for PKI. Same as Cert, but implies a different file extension.

Remarks:

Common file extensions: .der.

Binary format.

Contains single certificate.

No private key.

None0No PKI file format.
Pem4The PEM (Privacy Enhanced Mail) file format for PKI.

Remarks:

Common file extensions: .ca-bundle, .cer, .crt, .key, .pem.

Text format, Base64 with headers&footers.

Contains single certificate, or more certificates in a path.

Optional private key.

Pfx5The PFX file format for PKI. Currently the same as Pkcs12, but implies a different file extension.

Remarks:

Corresponds to System.Security.Cryptography.X509Certificates.X509ContentType.Pfx or System.Security.Cryptography.X509Certificates.X509ContentType.Pkcs12.

Common file extensions: .pfx, .p12.

Binary format.

Contains all certificates in a path.

Can have private key.

Pkcs126The PKCS #12 file format for PKI. Currently the same as Pfx, but implies a different file extension.

Remarks:

Corresponds to System.Security.Cryptography.X509Certificates.X509ContentType.Pfx or System.Security.Cryptography.X509Certificates.X509ContentType.Pkcs12.

Common file extensions: .pfx, .p12.

Binary format.

Contains all certificates in a path.

Can have private key.

Pkcs77The PKCS #7 file format for PKI.

Remarks:

Corresponds to System.Security.Cryptography.X509Certificates.X509ContentType.Pkcs7.

Common file extensions: .p7b, .p7c, .p7s.

Text format, Base64 with headers&footers.

No private key.

Contains certificates or CRLs.

Our file format name: PKCS7.

SerializedCert8PKI file format with a single serialized certificate.

Remarks:

Corresponds to System.Security.Cryptography.X509Certificates.X509ContentType.SerializedCert.

SerializedStore9PKI file format with a serialized store.

Remarks:

Corresponds to System.Security.Cryptography.X509Certificates.X509ContentType.SerializedStore.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         OpcLabs.BaseLib.Security.Cryptography.PkiCertificates.PkiFileFormat

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also