CertificateManager Class
Properties Methods Events Config Settings Errors
The CertificateManager class supports importing, exporting, and generating X.509 certificates.
Class Name
SecureBlackbox_CertificateManager
Procedural Interface
secureblackbox_certificatemanager_open(); secureblackbox_certificatemanager_close($res); secureblackbox_certificatemanager_register_callback($res, $id, $function); secureblackbox_certificatemanager_get_last_error($res); secureblackbox_certificatemanager_get_last_error_code($res); secureblackbox_certificatemanager_set($res, $id, $index, $value); secureblackbox_certificatemanager_get($res, $id, $index); secureblackbox_certificatemanager_do_config($res, $configurationstring); secureblackbox_certificatemanager_do_createnew($res, $certtype, $purpose, $subject); secureblackbox_certificatemanager_do_doaction($res, $actionid, $actionparams); secureblackbox_certificatemanager_do_exportbytes($res, $format, $exportkey, $password); secureblackbox_certificatemanager_do_exportkey($res, $format, $password); secureblackbox_certificatemanager_do_exportkeytofile($res, $keyfile, $format, $password); secureblackbox_certificatemanager_do_exporttofile($res, $filename, $format, $exportkey, $password); secureblackbox_certificatemanager_do_generate($res, $keybits); secureblackbox_certificatemanager_do_generateasyncbegin($res, $keybits); secureblackbox_certificatemanager_do_generateasyncend($res, $asyncreply); secureblackbox_certificatemanager_do_generateexternal($res, $keybytes, $keypassword); secureblackbox_certificatemanager_do_getextensiondata($res, $oid); secureblackbox_certificatemanager_do_getextensionstate($res, $oid); secureblackbox_certificatemanager_do_importbytes($res, $certbytes, $password); secureblackbox_certificatemanager_do_importfromfile($res, $path, $password); secureblackbox_certificatemanager_do_importfromobject($res, $srcobj); secureblackbox_certificatemanager_do_importkey($res, $key, $password); secureblackbox_certificatemanager_do_importkeyfromfile($res, $path, $password); secureblackbox_certificatemanager_do_listextensions($res); secureblackbox_certificatemanager_do_reset($res); secureblackbox_certificatemanager_do_setextensiondata($res, $oid, $value); secureblackbox_certificatemanager_do_setextensionstate($res, $oid, $state); secureblackbox_certificatemanager_do_update($res); secureblackbox_certificatemanager_do_validate($res);
Remarks
Usage of this class includes importing and exporting certificates and keys in various formats, as well as certificate generation.
Loading certificates
In vast majority of SecureBlackbox-powered projects, this component is used to import certificates from files or memory objects for further use in other components, like PDFSigner.To load a certificate from a file, use the ImportFromFile method. This method supports all existing certificate formats, including PFX, PEM, DER, and P7B. Note that keys contained in PFX and PEM certificates are often encrypted with a password, so you will likely need to provide one for the certificate to be loaded correctly. You can either provide the password via the method's parameter, or provide it on-demand by subscribing to the PasswordNeeded event.
Alternatively, you can use ImportBytes to load a certificate from a different type of media, such as a database.
If your certificate and its private key are stored in separate files or buffers - which is often the case where PEM or DER format is used - please load the certificate with the ImportFromFile method first, and then add the key to it with a separate call to the ImportKeyFromFile method. You can mix and match the certificate and key formats in this case; CertificateManager will handle this automatically.
Note that CertificateManager can only keep one certificate at a time. If your PFX or PEM file contains more than one certificate, use CertificateStorage component to load it instead.
Generating certificates
You can use CertificateManager to generate your own certificates. To generate a certificate, please follow the below steps:- call CreateNew to initialize a new certificate template.
- set all the needed certificate properties - for example, its subject, serial number, and validity period - via the Certificate property. Some of these properties will be pre-set by the preceding CreateNew call.
- load the CA certificate to a different CertificateManager object, and assign it
to the CACertificate property. Note that the CA certificate should have an associated private key. Alternatively,
the CA certificate can be loaded using a CertificateStorage object, which allows to import it from a hardware device
or a system store.
Note: you do not need to load and set the CA certificate if generating a self-signed certificate.
- Call Generate to generate a new keypair and wrap it into a certificate.
- Save the certificate using ExportToFile or ExportBytes methods.
Note: take care to choose a format that supports storing private keys. If you do not save the new private key at this stage, you won't be able to recover it later.
Note: you can save the private key separately using the ExportKey method.
Generating certificate requests
Apart from certificates, CertificateManager can generate certificate requests (PKCS10). The procedure is the same as when generating certificates. Use the CertType parameter of the CreateNew call to specify that you would like to generate a certificate request, rather than a certificate. You do not need to provide a CA certificate when generating CSRs, as certificate requests are always signed with the keypair they are carrying.Property List
The following is the full list of the properties of the class with short descriptions. Click on the links for further details.
CACertBytes | Returns the raw certificate data in DER format. |
CACertHandle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
CertBytes | Returns the raw certificate data in DER format. |
CertCA | Indicates whether the certificate has a CA capability. |
CertCAKeyID | A unique identifier (fingerprint) of the CA certificate's cryptographic key. |
CertCertType | Returns the type of the entity contained in the Certificate object. |
CertCRLDistributionPoints | Contains a list of locations of CRL distribution points used to check this certificate's validity. |
CertCurve | Specifies the elliptic curve associated with the certificate's public key. |
CertFingerprint | Contains the fingerprint (a hash imprint) of this certificate. |
CertFriendlyName | Contains an associated alias (friendly name) of the certificate. |
CertHandle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
CertHashAlgorithm | Provides means to set the hash algorithm to be used in the subsequent operation on the certificate (such as generation or key signing). |
CertIssuer | The common name of the certificate issuer (CA), typically a company name. |
CertIssuerRDN | A list of Property=Value pairs that uniquely identify the certificate issuer. |
CertKeyAlgorithm | Specifies the public key algorithm of this certificate. |
CertKeyBits | Returns the length of the public key in bits. |
CertKeyFingerprint | Returns a SHA1 fingerprint of the public key contained in the certificate. |
CertKeyUsage | Indicates the purposes of the key contained in the certificate, in the form of an OR'ed flag set. |
CertKeyValid | Returns True if the certificate's key is cryptographically valid, and False otherwise. |
CertOCSPLocations | Locations of OCSP services that can be used to check this certificate's validity in real time, as recorded by the CA. |
CertOCSPNoCheck | Accessor to the value of the certificate's ocsp-no-check extension. |
CertOrigin | Returns the location that the certificate was taken or loaded from. |
CertPolicyIDs | Contains identifiers (OIDs) of the applicable certificate policies. |
CertPrivateKeyBytes | Returns the certificate's private key in DER-encoded format. |
CertPrivateKeyExists | Indicates whether the certificate has a usable private key associated with it. |
CertPrivateKeyExtractable | Indicates whether the private key is extractable (exportable). |
CertPublicKeyBytes | Contains the certificate's public key in DER format. |
CertQualified | Indicates whether the certificate is qualified. |
CertQualifiedStatements | Returns a simplified qualified status of the certificate. |
CertQualifiers | A list of qualifiers. |
CertSelfSigned | Indicates whether the certificate is self-signed (root) or signed by an external CA. |
CertSerialNumber | Returns the certificate's serial number. |
CertSigAlgorithm | Indicates the algorithm that was used by the CA to sign this certificate. |
CertSource | Returns the source (location or disposition) of a cryptographic primitive entity, such as a certificate, CRL, or OCSP response. |
CertSubject | The common name of the certificate holder, typically an individual's name, a URL, an e-mail address, or a company name. |
CertSubjectAlternativeName | Returns or sets the value of the Subject Alternative Name extension of the certificate. |
CertSubjectKeyID | Contains a unique identifier of the certificate's cryptographic key. |
CertSubjectRDN | A list of Property=Value pairs that uniquely identify the certificate holder (subject). |
CertValid | Indicates whether or not the signature over the certificate or the request is valid and matches the public key contained in the CA certificate/request. |
CertValidFrom | The time point at which the certificate becomes valid, in UTC. |
CertValidTo | The time point at which the certificate expires, in UTC. |
ExternalCryptoAsyncDocumentID | Specifies an optional document ID for SignAsyncBegin() and SignAsyncEnd() calls. |
ExternalCryptoCustomParams | Custom parameters to be passed to the signing service (uninterpreted). |
ExternalCryptoData | Additional data to be included in the async state and mirrored back by the requestor. |
ExternalCryptoExternalHashCalculation | Specifies whether the message hash is to be calculated at the external endpoint. |
ExternalCryptoHashAlgorithm | Specifies the request's signature hash algorithm. |
ExternalCryptoKeyID | The ID of the pre-shared key used for DC request authentication. |
ExternalCryptoKeySecret | The pre-shared key used for DC request authentication. |
ExternalCryptoMethod | Specifies the asynchronous signing method. |
ExternalCryptoMode | Specifies the external cryptography mode. |
ExternalCryptoPublicKeyAlgorithm | Provide the public key algorithm here if the certificate is not available on the pre-signing stage. |
FIPSMode | Reserved. |
Method List
The following is the full list of the methods of the class with short descriptions. Click on the links for further details.
Config | Sets or retrieves a configuration setting. |
CreateNew | Creates a template for a new certificate or CSR with a particular purpose in the Certificate property. |
DoAction | Performs an additional action. |
ExportBytes | Exports the certificate in the chosen format. |
ExportKey | Exports the certificate's private key. |
ExportKeyToFile | Exports the private key to a file in the chosen format. |
ExportToFile | Exports the certificate to a file. |
Generate | Generates a new certificate or certificate request. |
GenerateAsyncBegin | Initiates asynchronous (DC) certificate generation. |
GenerateAsyncEnd | Completes asynchronous certificate generation. |
GenerateExternal | Generates a new certificate or request over an existing public key. |
GetExtensionData | Returns extension data. |
GetExtensionState | Returns certificate extension state. |
ImportBytes | Imports a certificate. |
ImportFromFile | Loads a certificate from a file. |
ImportFromObject | Imports a certificate from a platform object. |
ImportKey | Imports a private key. |
ImportKeyFromFile | Imports a private key from a file. |
ListExtensions | List extensions currently available in the certificate or CRL. |
Reset | Resets the class settings. |
SetExtensionData | Sets extension data. |
SetExtensionState | Sets certificate extension state. |
Update | Renews the certificate. |
Validate | Validates the certificate. |
Event List
The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.
Error | Information about errors during certificate loading, saving or validation. |
ExternalSign | Handles remote or external signing initiated by the SignExternal method or other source. |
Notification | This event notifies the application about an underlying control flow event. |
PasswordNeeded | This event is fired when a decryption password is needed. |
Config Settings
The following is a list of config settings for the class with short descriptions. Click on the links for further details.
EncAlgorithm | A symmetric encryption algorithm for associated operations. |
FriendlyName | Gets or sets the friendly name of the certificate. |
KeyExchangePIN | The KeyExchange PIN to provide to the key in runtime. |
PfxAlgorithm | Sets the PFX encryption algorithm. |
PKCS11Label | Returns the HSM label. |
SignaturePIN | The Signature PIN to provide to the key in runtime. |
TempPath | Path for storing temporary files. |
ASN1UseGlobalTagCache | Controls whether ASN.1 module should use a global object cache. |
AssignSystemSmartCardPins | Specifies whether CSP-level PINs should be assigned to CNG keys. |
CheckKeyIntegrityBeforeUse | Enables or disable private key integrity check before use. |
CookieCaching | Specifies whether a cookie cache should be used for HTTP(S) transports. |
Cookies | Gets or sets local cookies for the class. |
DefDeriveKeyIterations | Specifies the default key derivation algorithm iteration count. |
DNSLocalSuffix | The suffix to assign for TLD names. |
EnableClientSideSSLFFDHE | Enables or disables finite field DHE key exchange support in TLS clients. |
GlobalCookies | Gets or sets global cookies for all the HTTP transports. |
HardwareCryptoUsePolicy | The hardware crypto usage policy. |
HttpUserAgent | Specifies the user agent name to be used by all HTTP clients. |
HttpVersion | The HTTP version to use in any inner HTTP client classes created. |
IgnoreExpiredMSCTLSigningCert | Whether to tolerate the expired Windows Update signing certificate. |
ListDelimiter | The delimiter character for multi-element lists. |
LogDestination | Specifies the debug log destination. |
LogDetails | Specifies the debug log details to dump. |
LogFile | Specifies the debug log filename. |
LogFilters | Specifies the debug log filters. |
LogFlushMode | Specifies the log flush mode. |
LogLevel | Specifies the debug log level. |
LogMaxEventCount | Specifies the maximum number of events to cache before further action is taken. |
LogRotationMode | Specifies the log rotation mode. |
MaxASN1BufferLength | Specifies the maximal allowed length for ASN.1 primitive tag data. |
MaxASN1TreeDepth | Specifies the maximal depth for processed ASN.1 trees. |
OCSPHashAlgorithm | Specifies the hash algorithm to be used to identify certificates in OCSP requests. |
OldClientSideRSAFallback | Specifies whether the SSH client should use a SHA1 fallback. |
ProductVersion | Returns the version of the SecureBlackbox library. |
ServerSSLDHKeyLength | Sets the size of the TLS DHE key exchange group. |
StaticDNS | Specifies whether static DNS rules should be used. |
StaticIPAddress[domain] | Gets or sets an IP address for the specified domain name. |
StaticIPAddresses | Gets or sets all the static DNS rules. |
Tag | Allows to store any custom data. |
TLSSessionGroup | Specifies the group name of TLS sessions to be used for session resumption. |
TLSSessionLifetime | Specifies lifetime in seconds of the cached TLS session. |
TLSSessionPurgeInterval | Specifies how often the session cache should remove the expired TLS sessions. |
UseInternalRandom | Switches between SecureBlackbox-own and platform PRNGs. |
UseLegacyAdESValidation | Enables legacy AdES validation mode. |
UseOwnDNSResolver | Specifies whether the client classes should use own DNS resolver. |
UseSharedSystemStorages | Specifies whether the validation engine should use a global per-process copy of the system certificate stores. |
UseSystemNativeSizeCalculation | An internal CryptoAPI access tweak. |
UseSystemOAEPAndPSS | Enforces or disables the use of system-driven RSA OAEP and PSS computations. |
UseSystemRandom | Enables or disables the use of the OS PRNG. |
CACertBytes Property (SecureBlackbox_CertificateManager Class)
Returns the raw certificate data in DER format.
Object Oriented Interface
public function getCACertBytes();
Procedural Interface
secureblackbox_certificatemanager_get($res, 1 );
Remarks
Returns the raw certificate data in DER format.
This property is read-only and not available at design time.
Data Type
Byte Array
CACertHandle Property (SecureBlackbox_CertificateManager Class)
Allows to get or set a 'handle', a unique identifier of the underlying property object.
Object Oriented Interface
public function getCACertHandle(); public function setCACertHandle($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 9 ); secureblackbox_certificatemanager_set($res, 9, $value );
Default Value
0
Remarks
Allows to get or set a 'handle', a unique identifier of the underlying property object. Use this property to assign objects of the same type in a quicker manner, without copying them fieldwise.
When you pass a handle of one object to another, the source object is copied to the destination rather than assigned. It is safe to get rid of the original object
after such operation.
pdfSigner.setSigningCertHandle(certMgr.getCertHandle());
This property is not available at design time.
Data Type
Long64
CertBytes Property (SecureBlackbox_CertificateManager Class)
Returns the raw certificate data in DER format.
Object Oriented Interface
public function getCertBytes();
Procedural Interface
secureblackbox_certificatemanager_get($res, 40 );
Remarks
Returns the raw certificate data in DER format.
This property is read-only and not available at design time.
Data Type
Byte Array
CertCA Property (SecureBlackbox_CertificateManager Class)
Indicates whether the certificate has a CA capability.
Object Oriented Interface
public function getCertCA(); public function setCertCA($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 41 ); secureblackbox_certificatemanager_set($res, 41, $value );
Default Value
false
Remarks
Indicates whether the certificate has a CA capability. For the certificate to be considered a CA, it must have its Basic Constraints extension set with the CA indicator enabled.
Set this property when generating a new certificate to have its Basic Constraints extension generated automatically.
This property is not available at design time.
Data Type
Boolean
CertCAKeyID Property (SecureBlackbox_CertificateManager Class)
A unique identifier (fingerprint) of the CA certificate's cryptographic key.
Object Oriented Interface
public function getCertCAKeyID();
Procedural Interface
secureblackbox_certificatemanager_get($res, 42 );
Remarks
A unique identifier (fingerprint) of the CA certificate's cryptographic key.
Authority Key Identifier is a certificate extension which allows identification of certificates belonging to the same issuer, but with different public keys. It is a de-facto standard to include this extension in all certificates to facilitate chain building.
This setting cannot be set when generating a certificate as it always derives from another certificate property. CertificateManager generates this setting automatically if enough information is available to it: for self-signed certificates, this value is copied from the CertSubjectKeyID setting, and for lower-level certificates, from the parent certificate's subject key ID extension.
This property is read-only and not available at design time.
Data Type
Byte Array
CertCertType Property (SecureBlackbox_CertificateManager Class)
Returns the type of the entity contained in the Certificate object.
Object Oriented Interface
public function getCertCertType();
Procedural Interface
secureblackbox_certificatemanager_get($res, 43 );
Default Value
0
Remarks
Returns the type of the entity contained in the Certificate object.
A Certificate object can contain two types of cryptographic objects: a ready-to-use X.509 certificate, or a certificate request ("an unsigned certificate"). Certificate requests can be upgraded to full certificates by signing them with a CA certificate.
Use the CertificateManager class to load or create new certificate and certificate requests objects.
This property is read-only and not available at design time.
Data Type
Integer
CertCRLDistributionPoints Property (SecureBlackbox_CertificateManager Class)
Contains a list of locations of CRL distribution points used to check this certificate's validity.
Object Oriented Interface
public function getCertCRLDistributionPoints(); public function setCertCRLDistributionPoints($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 44 ); secureblackbox_certificatemanager_set($res, 44, $value );
Default Value
''
Remarks
Contains a list of locations of CRL distribution points used to check this certificate's validity. The list is taken from the respective certificate extension.
Use this property when generating a certificate to provide a list of CRL endpoints that should be made part of the new certificate.
The endpoints are provided as a list of CRLF-separated URLs. Note that this differs from the behaviour used in earlier product versions, where the "|" character was used as the location separator.
This property is not available at design time.
Data Type
String
CertCurve Property (SecureBlackbox_CertificateManager Class)
Specifies the elliptic curve associated with the certificate's public key.
Object Oriented Interface
public function getCertCurve(); public function setCertCurve($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 45 ); secureblackbox_certificatemanager_set($res, 45, $value );
Default Value
''
Remarks
Specifies the elliptic curve associated with the certificate's public key. This setting only applies to certificates containing EC keys.
SB_EC_SECP112R1 | SECP112R1 | |
SB_EC_SECP112R2 | SECP112R2 | |
SB_EC_SECP128R1 | SECP128R1 | |
SB_EC_SECP128R2 | SECP128R2 | |
SB_EC_SECP160K1 | SECP160K1 | |
SB_EC_SECP160R1 | SECP160R1 | |
SB_EC_SECP160R2 | SECP160R2 | |
SB_EC_SECP192K1 | SECP192K1 | |
SB_EC_SECP192R1 | SECP192R1 | |
SB_EC_SECP224K1 | SECP224K1 | |
SB_EC_SECP224R1 | SECP224R1 | |
SB_EC_SECP256K1 | SECP256K1 | |
SB_EC_SECP256R1 | SECP256R1 | |
SB_EC_SECP384R1 | SECP384R1 | |
SB_EC_SECP521R1 | SECP521R1 | |
SB_EC_SECT113R1 | SECT113R1 | |
SB_EC_SECT113R2 | SECT113R2 | |
SB_EC_SECT131R1 | SECT131R1 | |
SB_EC_SECT131R2 | SECT131R2 | |
SB_EC_SECT163K1 | SECT163K1 | |
SB_EC_SECT163R1 | SECT163R1 | |
SB_EC_SECT163R2 | SECT163R2 | |
SB_EC_SECT193R1 | SECT193R1 | |
SB_EC_SECT193R2 | SECT193R2 | |
SB_EC_SECT233K1 | SECT233K1 | |
SB_EC_SECT233R1 | SECT233R1 | |
SB_EC_SECT239K1 | SECT239K1 | |
SB_EC_SECT283K1 | SECT283K1 | |
SB_EC_SECT283R1 | SECT283R1 | |
SB_EC_SECT409K1 | SECT409K1 | |
SB_EC_SECT409R1 | SECT409R1 | |
SB_EC_SECT571K1 | SECT571K1 | |
SB_EC_SECT571R1 | SECT571R1 | |
SB_EC_PRIME192V1 | PRIME192V1 | |
SB_EC_PRIME192V2 | PRIME192V2 | |
SB_EC_PRIME192V3 | PRIME192V3 | |
SB_EC_PRIME239V1 | PRIME239V1 | |
SB_EC_PRIME239V2 | PRIME239V2 | |
SB_EC_PRIME239V3 | PRIME239V3 | |
SB_EC_PRIME256V1 | PRIME256V1 | |
SB_EC_C2PNB163V1 | C2PNB163V1 | |
SB_EC_C2PNB163V2 | C2PNB163V2 | |
SB_EC_C2PNB163V3 | C2PNB163V3 | |
SB_EC_C2PNB176W1 | C2PNB176W1 | |
SB_EC_C2TNB191V1 | C2TNB191V1 | |
SB_EC_C2TNB191V2 | C2TNB191V2 | |
SB_EC_C2TNB191V3 | C2TNB191V3 | |
SB_EC_C2ONB191V4 | C2ONB191V4 | |
SB_EC_C2ONB191V5 | C2ONB191V5 | |
SB_EC_C2PNB208W1 | C2PNB208W1 | |
SB_EC_C2TNB239V1 | C2TNB239V1 | |
SB_EC_C2TNB239V2 | C2TNB239V2 | |
SB_EC_C2TNB239V3 | C2TNB239V3 | |
SB_EC_C2ONB239V4 | C2ONB239V4 | |
SB_EC_C2ONB239V5 | C2ONB239V5 | |
SB_EC_C2PNB272W1 | C2PNB272W1 | |
SB_EC_C2PNB304W1 | C2PNB304W1 | |
SB_EC_C2TNB359V1 | C2TNB359V1 | |
SB_EC_C2PNB368W1 | C2PNB368W1 | |
SB_EC_C2TNB431R1 | C2TNB431R1 | |
SB_EC_NISTP192 | NISTP192 | |
SB_EC_NISTP224 | NISTP224 | |
SB_EC_NISTP256 | NISTP256 | |
SB_EC_NISTP384 | NISTP384 | |
SB_EC_NISTP521 | NISTP521 | |
SB_EC_NISTB163 | NISTB163 | |
SB_EC_NISTB233 | NISTB233 | |
SB_EC_NISTB283 | NISTB283 | |
SB_EC_NISTB409 | NISTB409 | |
SB_EC_NISTB571 | NISTB571 | |
SB_EC_NISTK163 | NISTK163 | |
SB_EC_NISTK233 | NISTK233 | |
SB_EC_NISTK283 | NISTK283 | |
SB_EC_NISTK409 | NISTK409 | |
SB_EC_NISTK571 | NISTK571 | |
SB_EC_GOSTCPTEST | GOSTCPTEST | |
SB_EC_GOSTCPA | GOSTCPA | |
SB_EC_GOSTCPB | GOSTCPB | |
SB_EC_GOSTCPC | GOSTCPC | |
SB_EC_GOSTCPXCHA | GOSTCPXCHA | |
SB_EC_GOSTCPXCHB | GOSTCPXCHB | |
SB_EC_BRAINPOOLP160R1 | BRAINPOOLP160R1 | |
SB_EC_BRAINPOOLP160T1 | BRAINPOOLP160T1 | |
SB_EC_BRAINPOOLP192R1 | BRAINPOOLP192R1 | |
SB_EC_BRAINPOOLP192T1 | BRAINPOOLP192T1 | |
SB_EC_BRAINPOOLP224R1 | BRAINPOOLP224R1 | |
SB_EC_BRAINPOOLP224T1 | BRAINPOOLP224T1 | |
SB_EC_BRAINPOOLP256R1 | BRAINPOOLP256R1 | |
SB_EC_BRAINPOOLP256T1 | BRAINPOOLP256T1 | |
SB_EC_BRAINPOOLP320R1 | BRAINPOOLP320R1 | |
SB_EC_BRAINPOOLP320T1 | BRAINPOOLP320T1 | |
SB_EC_BRAINPOOLP384R1 | BRAINPOOLP384R1 | |
SB_EC_BRAINPOOLP384T1 | BRAINPOOLP384T1 | |
SB_EC_BRAINPOOLP512R1 | BRAINPOOLP512R1 | |
SB_EC_BRAINPOOLP512T1 | BRAINPOOLP512T1 | |
SB_EC_CURVE25519 | CURVE25519 | |
SB_EC_CURVE448 | CURVE448 |
This property is not available at design time.
Data Type
String
CertFingerprint Property (SecureBlackbox_CertificateManager Class)
Contains the fingerprint (a hash imprint) of this certificate.
Object Oriented Interface
public function getCertFingerprint();
Procedural Interface
secureblackbox_certificatemanager_get($res, 46 );
Default Value
''
Remarks
Contains the fingerprint (a hash imprint) of this certificate.
While there is no formal standard defining what a fingerprint is, a SHA1 hash of the certificate's DER-encoded body is typically used.
This property is read-only and not available at design time.
Data Type
String
CertFriendlyName Property (SecureBlackbox_CertificateManager Class)
Contains an associated alias (friendly name) of the certificate.
Object Oriented Interface
public function getCertFriendlyName();
Procedural Interface
secureblackbox_certificatemanager_get($res, 47 );
Default Value
''
Remarks
Contains an associated alias (friendly name) of the certificate. The friendly name is not a property of a certificate: it is maintained by the certificate media rather than being included in its DER representation. Windows certificate stores are one example of media that does support friendly names.
This property is read-only and not available at design time.
Data Type
String
CertHandle Property (SecureBlackbox_CertificateManager Class)
Allows to get or set a 'handle', a unique identifier of the underlying property object.
Object Oriented Interface
public function getCertHandle(); public function setCertHandle($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 48 ); secureblackbox_certificatemanager_set($res, 48, $value );
Default Value
0
Remarks
Allows to get or set a 'handle', a unique identifier of the underlying property object. Use this property to assign objects of the same type in a quicker manner, without copying them fieldwise.
When you pass a handle of one object to another, the source object is copied to the destination rather than assigned. It is safe to get rid of the original object
after such operation.
pdfSigner.setSigningCertHandle(certMgr.getCertHandle());
This property is not available at design time.
Data Type
Long64
CertHashAlgorithm Property (SecureBlackbox_CertificateManager Class)
Provides means to set the hash algorithm to be used in the subsequent operation on the certificate (such as generation or key signing).
Object Oriented Interface
public function getCertHashAlgorithm(); public function setCertHashAlgorithm($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 49 ); secureblackbox_certificatemanager_set($res, 49, $value );
Default Value
''
Remarks
Provides means to set the hash algorithm to be used in the subsequent operation on the certificate (such as generation or key signing). It is not a property of a certificate; use CertSigAlgorithm to find out the hash algorithm that is part of the certificate signature.
SB_HASH_ALGORITHM_SHA1 | SHA1 | |
SB_HASH_ALGORITHM_SHA224 | SHA224 | |
SB_HASH_ALGORITHM_SHA256 | SHA256 | |
SB_HASH_ALGORITHM_SHA384 | SHA384 | |
SB_HASH_ALGORITHM_SHA512 | SHA512 | |
SB_HASH_ALGORITHM_MD2 | MD2 | |
SB_HASH_ALGORITHM_MD4 | MD4 | |
SB_HASH_ALGORITHM_MD5 | MD5 | |
SB_HASH_ALGORITHM_RIPEMD160 | RIPEMD160 | |
SB_HASH_ALGORITHM_CRC32 | CRC32 | |
SB_HASH_ALGORITHM_SSL3 | SSL3 | |
SB_HASH_ALGORITHM_GOST_R3411_1994 | GOST1994 | |
SB_HASH_ALGORITHM_WHIRLPOOL | WHIRLPOOL | |
SB_HASH_ALGORITHM_POLY1305 | POLY1305 | |
SB_HASH_ALGORITHM_SHA3_224 | SHA3_224 | |
SB_HASH_ALGORITHM_SHA3_256 | SHA3_256 | |
SB_HASH_ALGORITHM_SHA3_384 | SHA3_384 | |
SB_HASH_ALGORITHM_SHA3_512 | SHA3_512 | |
SB_HASH_ALGORITHM_BLAKE2S_128 | BLAKE2S_128 | |
SB_HASH_ALGORITHM_BLAKE2S_160 | BLAKE2S_160 | |
SB_HASH_ALGORITHM_BLAKE2S_224 | BLAKE2S_224 | |
SB_HASH_ALGORITHM_BLAKE2S_256 | BLAKE2S_256 | |
SB_HASH_ALGORITHM_BLAKE2B_160 | BLAKE2B_160 | |
SB_HASH_ALGORITHM_BLAKE2B_256 | BLAKE2B_256 | |
SB_HASH_ALGORITHM_BLAKE2B_384 | BLAKE2B_384 | |
SB_HASH_ALGORITHM_BLAKE2B_512 | BLAKE2B_512 | |
SB_HASH_ALGORITHM_SHAKE_128 | SHAKE_128 | |
SB_HASH_ALGORITHM_SHAKE_256 | SHAKE_256 | |
SB_HASH_ALGORITHM_SHAKE_128_LEN | SHAKE_128_LEN | |
SB_HASH_ALGORITHM_SHAKE_256_LEN | SHAKE_256_LEN |
This property is not available at design time.
Data Type
String
CertIssuer Property (SecureBlackbox_CertificateManager Class)
The common name of the certificate issuer (CA), typically a company name.
Object Oriented Interface
public function getCertIssuer();
Procedural Interface
secureblackbox_certificatemanager_get($res, 50 );
Default Value
''
Remarks
The common name of the certificate issuer (CA), typically a company name. This is part of a larger set of credentials available via CertIssuerRDN.
This property is read-only and not available at design time.
Data Type
String
CertIssuerRDN Property (SecureBlackbox_CertificateManager Class)
A list of Property=Value pairs that uniquely identify the certificate issuer.
Object Oriented Interface
public function getCertIssuerRDN(); public function setCertIssuerRDN($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 51 ); secureblackbox_certificatemanager_set($res, 51, $value );
Default Value
''
Remarks
A list of Property=Value pairs that uniquely identify the certificate issuer.
Example: /C=US/O=Nationwide CA/CN=Web Certification Authority
This property is not available at design time.
Data Type
String
CertKeyAlgorithm Property (SecureBlackbox_CertificateManager Class)
Specifies the public key algorithm of this certificate.
Object Oriented Interface
public function getCertKeyAlgorithm(); public function setCertKeyAlgorithm($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 52 ); secureblackbox_certificatemanager_set($res, 52, $value );
Default Value
'0'
Remarks
Specifies the public key algorithm of this certificate.
SB_CERT_ALGORITHM_ID_RSA_ENCRYPTION | rsaEncryption | |
SB_CERT_ALGORITHM_MD2_RSA_ENCRYPTION | md2withRSAEncryption | |
SB_CERT_ALGORITHM_MD5_RSA_ENCRYPTION | md5withRSAEncryption | |
SB_CERT_ALGORITHM_SHA1_RSA_ENCRYPTION | sha1withRSAEncryption | |
SB_CERT_ALGORITHM_ID_DSA | id-dsa | |
SB_CERT_ALGORITHM_ID_DSA_SHA1 | id-dsa-with-sha1 | |
SB_CERT_ALGORITHM_DH_PUBLIC | dhpublicnumber | |
SB_CERT_ALGORITHM_SHA224_RSA_ENCRYPTION | sha224WithRSAEncryption | |
SB_CERT_ALGORITHM_SHA256_RSA_ENCRYPTION | sha256WithRSAEncryption | |
SB_CERT_ALGORITHM_SHA384_RSA_ENCRYPTION | sha384WithRSAEncryption | |
SB_CERT_ALGORITHM_SHA512_RSA_ENCRYPTION | sha512WithRSAEncryption | |
SB_CERT_ALGORITHM_ID_RSAPSS | id-RSASSA-PSS | |
SB_CERT_ALGORITHM_ID_RSAOAEP | id-RSAES-OAEP | |
SB_CERT_ALGORITHM_RSASIGNATURE_RIPEMD160 | ripemd160withRSA | |
SB_CERT_ALGORITHM_ID_ELGAMAL | elGamal | |
SB_CERT_ALGORITHM_SHA1_ECDSA | ecdsa-with-SHA1 | |
SB_CERT_ALGORITHM_RECOMMENDED_ECDSA | ecdsa-recommended | |
SB_CERT_ALGORITHM_SHA224_ECDSA | ecdsa-with-SHA224 | |
SB_CERT_ALGORITHM_SHA256_ECDSA | ecdsa-with-SHA256 | |
SB_CERT_ALGORITHM_SHA384_ECDSA | ecdsa-with-SHA384 | |
SB_CERT_ALGORITHM_SHA512_ECDSA | ecdsa-with-SHA512 | |
SB_CERT_ALGORITHM_EC | id-ecPublicKey | |
SB_CERT_ALGORITHM_SPECIFIED_ECDSA | ecdsa-specified | |
SB_CERT_ALGORITHM_GOST_R3410_1994 | id-GostR3410-94 | |
SB_CERT_ALGORITHM_GOST_R3410_2001 | id-GostR3410-2001 | |
SB_CERT_ALGORITHM_GOST_R3411_WITH_R3410_1994 | id-GostR3411-94-with-GostR3410-94 | |
SB_CERT_ALGORITHM_GOST_R3411_WITH_R3410_2001 | id-GostR3411-94-with-GostR3410-2001 | |
SB_CERT_ALGORITHM_SHA1_ECDSA_PLAIN | ecdsa-plain-SHA1 | |
SB_CERT_ALGORITHM_SHA224_ECDSA_PLAIN | ecdsa-plain-SHA224 | |
SB_CERT_ALGORITHM_SHA256_ECDSA_PLAIN | ecdsa-plain-SHA256 | |
SB_CERT_ALGORITHM_SHA384_ECDSA_PLAIN | ecdsa-plain-SHA384 | |
SB_CERT_ALGORITHM_SHA512_ECDSA_PLAIN | ecdsa-plain-SHA512 | |
SB_CERT_ALGORITHM_RIPEMD160_ECDSA_PLAIN | ecdsa-plain-RIPEMD160 | |
SB_CERT_ALGORITHM_WHIRLPOOL_RSA_ENCRYPTION | whirlpoolWithRSAEncryption | |
SB_CERT_ALGORITHM_ID_DSA_SHA224 | id-dsa-with-sha224 | |
SB_CERT_ALGORITHM_ID_DSA_SHA256 | id-dsa-with-sha256 | |
SB_CERT_ALGORITHM_SHA3_224_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-224 | |
SB_CERT_ALGORITHM_SHA3_256_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-256 | |
SB_CERT_ALGORITHM_SHA3_384_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-384 | |
SB_CERT_ALGORITHM_SHA3_512_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-512 | |
SB_CERT_ALGORITHM_SHA3_224_ECDSA | id-ecdsa-with-sha3-224 | |
SB_CERT_ALGORITHM_SHA3_256_ECDSA | id-ecdsa-with-sha3-256 | |
SB_CERT_ALGORITHM_SHA3_384_ECDSA | id-ecdsa-with-sha3-384 | |
SB_CERT_ALGORITHM_SHA3_512_ECDSA | id-ecdsa-with-sha3-512 | |
SB_CERT_ALGORITHM_SHA3_224_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-224 | |
SB_CERT_ALGORITHM_SHA3_256_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-256 | |
SB_CERT_ALGORITHM_SHA3_384_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-384 | |
SB_CERT_ALGORITHM_SHA3_512_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-512 | |
SB_CERT_ALGORITHM_ID_DSA_SHA3_224 | id-dsa-with-sha3-224 | |
SB_CERT_ALGORITHM_ID_DSA_SHA3_256 | id-dsa-with-sha3-256 | |
SB_CERT_ALGORITHM_BLAKE2S_128_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s128 | |
SB_CERT_ALGORITHM_BLAKE2S_160_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s160 | |
SB_CERT_ALGORITHM_BLAKE2S_224_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s224 | |
SB_CERT_ALGORITHM_BLAKE2S_256_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s256 | |
SB_CERT_ALGORITHM_BLAKE2B_160_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b160 | |
SB_CERT_ALGORITHM_BLAKE2B_256_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b256 | |
SB_CERT_ALGORITHM_BLAKE2B_384_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b384 | |
SB_CERT_ALGORITHM_BLAKE2B_512_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b512 | |
SB_CERT_ALGORITHM_BLAKE2S_128_ECDSA | id-ecdsa-with-blake2s128 | |
SB_CERT_ALGORITHM_BLAKE2S_160_ECDSA | id-ecdsa-with-blake2s160 | |
SB_CERT_ALGORITHM_BLAKE2S_224_ECDSA | id-ecdsa-with-blake2s224 | |
SB_CERT_ALGORITHM_BLAKE2S_256_ECDSA | id-ecdsa-with-blake2s256 | |
SB_CERT_ALGORITHM_BLAKE2B_160_ECDSA | id-ecdsa-with-blake2b160 | |
SB_CERT_ALGORITHM_BLAKE2B_256_ECDSA | id-ecdsa-with-blake2b256 | |
SB_CERT_ALGORITHM_BLAKE2B_384_ECDSA | id-ecdsa-with-blake2b384 | |
SB_CERT_ALGORITHM_BLAKE2B_512_ECDSA | id-ecdsa-with-blake2b512 | |
SB_CERT_ALGORITHM_BLAKE2S_128_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s128 | |
SB_CERT_ALGORITHM_BLAKE2S_160_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s160 | |
SB_CERT_ALGORITHM_BLAKE2S_224_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s224 | |
SB_CERT_ALGORITHM_BLAKE2S_256_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s256 | |
SB_CERT_ALGORITHM_BLAKE2B_160_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b160 | |
SB_CERT_ALGORITHM_BLAKE2B_256_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b256 | |
SB_CERT_ALGORITHM_BLAKE2B_384_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b384 | |
SB_CERT_ALGORITHM_BLAKE2B_512_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b512 | |
SB_CERT_ALGORITHM_ID_DSA_BLAKE2S_224 | id-dsa-with-blake2s224 | |
SB_CERT_ALGORITHM_ID_DSA_BLAKE2S_256 | id-dsa-with-blake2s256 | |
SB_CERT_ALGORITHM_EDDSA_ED25519 | id-Ed25519 | |
SB_CERT_ALGORITHM_EDDSA_ED448 | id-Ed448 | |
SB_CERT_ALGORITHM_EDDSA_ED25519_PH | id-Ed25519ph | |
SB_CERT_ALGORITHM_EDDSA_ED448_PH | id-Ed448ph | |
SB_CERT_ALGORITHM_EDDSA | id-EdDSA | |
SB_CERT_ALGORITHM_EDDSA_SIGNATURE | id-EdDSA-sig |
Use the CertKeyBits, CertCurve, and CertPublicKeyBytes properties to get more details about the key the certificate contains.
This property is not available at design time.
Data Type
String
CertKeyBits Property (SecureBlackbox_CertificateManager Class)
Returns the length of the public key in bits.
Object Oriented Interface
public function getCertKeyBits();
Procedural Interface
secureblackbox_certificatemanager_get($res, 53 );
Default Value
0
Remarks
Returns the length of the public key in bits.
This value indicates the length of the principal cryptographic parameter of the key, such as the length of the RSA modulus or ECDSA field. The key data returned by the CertPublicKeyBytes or CertPrivateKeyBytes property would typically contain auxiliary values, and therefore be longer.
This property is read-only and not available at design time.
Data Type
Integer
CertKeyFingerprint Property (SecureBlackbox_CertificateManager Class)
Returns a SHA1 fingerprint of the public key contained in the certificate.
Object Oriented Interface
public function getCertKeyFingerprint();
Procedural Interface
secureblackbox_certificatemanager_get($res, 54 );
Default Value
''
Remarks
Returns a SHA1 fingerprint of the public key contained in the certificate.
Note that the key fingerprint is different from the certificate fingerprint accessible via the CertFingerprint property. The key fingeprint uniquely identifies the public key, and so can be the same for multiple certificates containing the same key.
This property is read-only and not available at design time.
Data Type
String
CertKeyUsage Property (SecureBlackbox_CertificateManager Class)
Indicates the purposes of the key contained in the certificate, in the form of an OR'ed flag set.
Object Oriented Interface
public function getCertKeyUsage(); public function setCertKeyUsage($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 55 ); secureblackbox_certificatemanager_set($res, 55, $value );
Default Value
0
Remarks
Indicates the purposes of the key contained in the certificate, in the form of an OR'ed flag set.
This value is a bit mask of the following values:
ckuUnknown | 0x00000 | Unknown key usage |
ckuDigitalSignature | 0x00001 | Digital signature |
ckuNonRepudiation | 0x00002 | Non-repudiation |
ckuKeyEncipherment | 0x00004 | Key encipherment |
ckuDataEncipherment | 0x00008 | Data encipherment |
ckuKeyAgreement | 0x00010 | Key agreement |
ckuKeyCertSign | 0x00020 | Certificate signing |
ckuCRLSign | 0x00040 | Revocation signing |
ckuEncipherOnly | 0x00080 | Encipher only |
ckuDecipherOnly | 0x00100 | Decipher only |
ckuServerAuthentication | 0x00200 | Server authentication |
ckuClientAuthentication | 0x00400 | Client authentication |
ckuCodeSigning | 0x00800 | Code signing |
ckuEmailProtection | 0x01000 | Email protection |
ckuTimeStamping | 0x02000 | Timestamping |
ckuOCSPSigning | 0x04000 | OCSP signing |
ckuSmartCardLogon | 0x08000 | Smartcard logon |
ckuKeyPurposeClientAuth | 0x10000 | Kerberos - client authentication |
ckuKeyPurposeKDC | 0x20000 | Kerberos - KDC |
Set this property before generating the certificate to propagate the key usage flags to the new certificate.
This property is not available at design time.
Data Type
Integer
CertKeyValid Property (SecureBlackbox_CertificateManager Class)
Returns True if the certificate's key is cryptographically valid, and False otherwise.
Object Oriented Interface
public function getCertKeyValid();
Procedural Interface
secureblackbox_certificatemanager_get($res, 56 );
Default Value
false
Remarks
Returns True if the certificate's key is cryptographically valid, and False otherwise.
This property is read-only and not available at design time.
Data Type
Boolean
CertOCSPLocations Property (SecureBlackbox_CertificateManager Class)
Locations of OCSP services that can be used to check this certificate's validity in real time, as recorded by the CA.
Object Oriented Interface
public function getCertOCSPLocations(); public function setCertOCSPLocations($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 57 ); secureblackbox_certificatemanager_set($res, 57, $value );
Default Value
''
Remarks
Locations of OCSP services that can be used to check this certificate's validity in real time, as recorded by the CA.
Set this property before calling the certificate manager's Generate method to propagate it to the new certificate.
The OCSP locations are provided as a list of CRLF-separated URLs. Note that this differs from the behaviour used in earlier product versions, where the "|" character was used as the location separator.
This property is not available at design time.
Data Type
String
CertOCSPNoCheck Property (SecureBlackbox_CertificateManager Class)
Accessor to the value of the certificate's ocsp-no-check extension.
Object Oriented Interface
public function getCertOCSPNoCheck(); public function setCertOCSPNoCheck($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 58 ); secureblackbox_certificatemanager_set($res, 58, $value );
Default Value
false
Remarks
Accessor to the value of the certificate's ocsp-no-check extension.
This property is not available at design time.
Data Type
Boolean
CertOrigin Property (SecureBlackbox_CertificateManager Class)
Returns the location that the certificate was taken or loaded from.
Object Oriented Interface
public function getCertOrigin();
Procedural Interface
secureblackbox_certificatemanager_get($res, 59 );
Default Value
0
Remarks
Returns the location that the certificate was taken or loaded from.
This property is read-only and not available at design time.
Data Type
Integer
CertPolicyIDs Property (SecureBlackbox_CertificateManager Class)
Contains identifiers (OIDs) of the applicable certificate policies.
Object Oriented Interface
public function getCertPolicyIDs(); public function setCertPolicyIDs($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 60 ); secureblackbox_certificatemanager_set($res, 60, $value );
Default Value
''
Remarks
Contains identifiers (OIDs) of the applicable certificate policies.
The Certificate Policies extension identifies a sequence of policies under which the certificate has been issued, and which regulate its usage.
Set this property when generating a certificate to propagate the policies information to the new certificate.
The policies are provided as a list of CRLF-separated entries. Note that this differs from the behaviour used in earlier product versions, where the "|" character was used as the policy element separator.
This property is not available at design time.
Data Type
String
CertPrivateKeyBytes Property (SecureBlackbox_CertificateManager Class)
Returns the certificate's private key in DER-encoded format.
Object Oriented Interface
public function getCertPrivateKeyBytes();
Procedural Interface
secureblackbox_certificatemanager_get($res, 61 );
Remarks
Returns the certificate's private key in DER-encoded format. It is normal for this property to be empty if the private key is non-exportable, which, for example, is typical for certificates originating from hardware security devices.
This property is read-only and not available at design time.
Data Type
Byte Array
CertPrivateKeyExists Property (SecureBlackbox_CertificateManager Class)
Indicates whether the certificate has a usable private key associated with it.
Object Oriented Interface
public function getCertPrivateKeyExists();
Procedural Interface
secureblackbox_certificatemanager_get($res, 62 );
Default Value
false
Remarks
Indicates whether the certificate has a usable private key associated with it. If it is set to True, the certificate can be used for private key operations, such as signing or decryption.
This property is independent from CertPrivateKeyBytes, and can be set to True even if the former is empty. This would imply that the private key is non-exportable, but still can be used for cryptographic operations.
This property is read-only and not available at design time.
Data Type
Boolean
CertPrivateKeyExtractable Property (SecureBlackbox_CertificateManager Class)
Indicates whether the private key is extractable (exportable).
Object Oriented Interface
public function getCertPrivateKeyExtractable();
Procedural Interface
secureblackbox_certificatemanager_get($res, 63 );
Default Value
false
Remarks
Indicates whether the private key is extractable (exportable).
This property is read-only and not available at design time.
Data Type
Boolean
CertPublicKeyBytes Property (SecureBlackbox_CertificateManager Class)
Contains the certificate's public key in DER format.
Object Oriented Interface
public function getCertPublicKeyBytes();
Procedural Interface
secureblackbox_certificatemanager_get($res, 64 );
Remarks
Contains the certificate's public key in DER format.
This typically would contain an ASN.1-encoded public key value. The exact format depends on the type of the public key contained in the certificate.
This property is read-only and not available at design time.
Data Type
Byte Array
CertQualified Property (SecureBlackbox_CertificateManager Class)
Indicates whether the certificate is qualified.
Object Oriented Interface
public function getCertQualified();
Procedural Interface
secureblackbox_certificatemanager_get($res, 65 );
Default Value
false
Remarks
Indicates whether the certificate is qualified.
This property is set to True if the certificate is confirmed by a Trusted List to be qualified.
This property is read-only and not available at design time.
Data Type
Boolean
CertQualifiedStatements Property (SecureBlackbox_CertificateManager Class)
Returns a simplified qualified status of the certificate.
Object Oriented Interface
public function getCertQualifiedStatements(); public function setCertQualifiedStatements($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 66 ); secureblackbox_certificatemanager_set($res, 66, $value );
Default Value
0
Remarks
Returns a simplified qualified status of the certificate.
This property is not available at design time.
Data Type
Integer
CertQualifiers Property (SecureBlackbox_CertificateManager Class)
A list of qualifiers.
Object Oriented Interface
public function getCertQualifiers();
Procedural Interface
secureblackbox_certificatemanager_get($res, 67 );
Default Value
''
Remarks
A list of qualifiers.
Contains a comma-separated list of qualifier aliases for the certificate, for example QCP-n-qscd,QCWithSSCD.
This property is read-only and not available at design time.
Data Type
String
CertSelfSigned Property (SecureBlackbox_CertificateManager Class)
Indicates whether the certificate is self-signed (root) or signed by an external CA.
Object Oriented Interface
public function getCertSelfSigned();
Procedural Interface
secureblackbox_certificatemanager_get($res, 68 );
Default Value
false
Remarks
Indicates whether the certificate is self-signed (root) or signed by an external CA.
This property is read-only and not available at design time.
Data Type
Boolean
CertSerialNumber Property (SecureBlackbox_CertificateManager Class)
Returns the certificate's serial number.
Object Oriented Interface
public function getCertSerialNumber(); public function setCertSerialNumber($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 69 ); secureblackbox_certificatemanager_set($res, 69, $value );
Remarks
Returns the certificate's serial number.
The serial number is a binary string that uniquely identifies a certificate among others issued by the same CA. According to the X.509 standard, the (issuer, serial number) pair should be globally unique to facilitate chain building.
This property is not available at design time.
Data Type
Byte Array
CertSigAlgorithm Property (SecureBlackbox_CertificateManager Class)
Indicates the algorithm that was used by the CA to sign this certificate.
Object Oriented Interface
public function getCertSigAlgorithm();
Procedural Interface
secureblackbox_certificatemanager_get($res, 70 );
Default Value
''
Remarks
Indicates the algorithm that was used by the CA to sign this certificate.
A signature algorithm typically combines hash and public key algorithms together, such as sha256WithRSAEncryption or ecdsa-with-SHA256.
This property is read-only and not available at design time.
Data Type
String
CertSource Property (SecureBlackbox_CertificateManager Class)
Returns the source (location or disposition) of a cryptographic primitive entity, such as a certificate, CRL, or OCSP response.
Object Oriented Interface
public function getCertSource();
Procedural Interface
secureblackbox_certificatemanager_get($res, 71 );
Default Value
0
Remarks
Returns the source (location or disposition) of a cryptographic primitive entity, such as a certificate, CRL, or OCSP response.
This property is read-only and not available at design time.
Data Type
Integer
CertSubject Property (SecureBlackbox_CertificateManager Class)
The common name of the certificate holder, typically an individual's name, a URL, an e-mail address, or a company name.
Object Oriented Interface
public function getCertSubject();
Procedural Interface
secureblackbox_certificatemanager_get($res, 72 );
Default Value
''
Remarks
The common name of the certificate holder, typically an individual's name, a URL, an e-mail address, or a company name. This is part of a larger set of credentials available via CertSubjectRDN.
This property is read-only and not available at design time.
Data Type
String
CertSubjectAlternativeName Property (SecureBlackbox_CertificateManager Class)
Returns or sets the value of the Subject Alternative Name extension of the certificate.
Object Oriented Interface
public function getCertSubjectAlternativeName(); public function setCertSubjectAlternativeName($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 73 ); secureblackbox_certificatemanager_set($res, 73, $value );
Default Value
''
Remarks
Returns or sets the value of the Subject Alternative Name extension of the certificate.
Subject alternative names are used to provide additional names that are impractical to store in the main CertSubjectRDN field. For example, it is often used to store all the domain names that a TLS certificate is authorized to protect.
The alternative names are provided as a list of CRLF-separated entries. Note that this differs from the behaviour used in earlier product versions, where the "|" character was used as the element separator.
This property is not available at design time.
Data Type
String
CertSubjectKeyID Property (SecureBlackbox_CertificateManager Class)
Contains a unique identifier of the certificate's cryptographic key.
Object Oriented Interface
public function getCertSubjectKeyID(); public function setCertSubjectKeyID($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 74 ); secureblackbox_certificatemanager_set($res, 74, $value );
Remarks
Contains a unique identifier of the certificate's cryptographic key.
Subject Key Identifier is a certificate extension which allows a specific public key to be associated with a certificate holder. Typically, subject key identifiers of CA certificates are recorded as respective CA key identifiers in the subordinate certificates that they issue, which facilitates chain building.
The CertSubjectKeyID and CertCAKeyID properties of self-signed certificates typically contain identical values, as in that specific case, the issuer and the subject are the same entity.
This property is not available at design time.
Data Type
Byte Array
CertSubjectRDN Property (SecureBlackbox_CertificateManager Class)
A list of Property=Value pairs that uniquely identify the certificate holder (subject).
Object Oriented Interface
public function getCertSubjectRDN(); public function setCertSubjectRDN($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 75 ); secureblackbox_certificatemanager_set($res, 75, $value );
Default Value
''
Remarks
A list of Property=Value pairs that uniquely identify the certificate holder (subject).
Depending on the purpose of the certificate and the policies of the CA that issued it, the values included in the subject record may differ drastically and contain business or personal names, web URLs, email addresses, and other data.
Example: /C=US/O=Oranges and Apples, Inc./OU=Accounts Receivable/1.2.3.4.5=Value with unknown OID/CN=Margaret Watkins.
This property is not available at design time.
Data Type
String
CertValid Property (SecureBlackbox_CertificateManager Class)
Indicates whether or not the signature over the certificate or the request is valid and matches the public key contained in the CA certificate/request.
Object Oriented Interface
public function getCertValid();
Procedural Interface
secureblackbox_certificatemanager_get($res, 76 );
Default Value
false
Remarks
Indicates whether or not the signature over the certificate or the request is valid and matches the public key contained in the CA certificate/request.
This property is read-only and not available at design time.
Data Type
Boolean
CertValidFrom Property (SecureBlackbox_CertificateManager Class)
The time point at which the certificate becomes valid, in UTC.
Object Oriented Interface
public function getCertValidFrom(); public function setCertValidFrom($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 77 ); secureblackbox_certificatemanager_set($res, 77, $value );
Default Value
''
Remarks
The time point at which the certificate becomes valid, in UTC.
This property is not available at design time.
Data Type
String
CertValidTo Property (SecureBlackbox_CertificateManager Class)
The time point at which the certificate expires, in UTC.
Object Oriented Interface
public function getCertValidTo(); public function setCertValidTo($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 78 ); secureblackbox_certificatemanager_set($res, 78, $value );
Default Value
''
Remarks
The time point at which the certificate expires, in UTC.
This property is not available at design time.
Data Type
String
ExternalCryptoAsyncDocumentID Property (SecureBlackbox_CertificateManager Class)
Specifies an optional document ID for SignAsyncBegin() and SignAsyncEnd() calls.
Object Oriented Interface
public function getExternalCryptoAsyncDocumentID(); public function setExternalCryptoAsyncDocumentID($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 79 ); secureblackbox_certificatemanager_set($res, 79, $value );
Default Value
''
Remarks
Specifies an optional document ID for SignAsyncBegin() and SignAsyncEnd() calls.
Use this property when working with multi-signature DCAuth requests and responses to uniquely identify documents signed within a larger batch. On the completion stage, this value helps the signing component identify the correct signature in the returned batch of responses.
If using batched requests, make sure to set this property to the same value on both the pre-signing (SignAsyncBegin) and completion (SignAsyncEnd) stages.
Data Type
String
ExternalCryptoCustomParams Property (SecureBlackbox_CertificateManager Class)
Custom parameters to be passed to the signing service (uninterpreted).
Object Oriented Interface
public function getExternalCryptoCustomParams(); public function setExternalCryptoCustomParams($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 80 ); secureblackbox_certificatemanager_set($res, 80, $value );
Default Value
''
Remarks
Custom parameters to be passed to the signing service (uninterpreted).
This property is not available at design time.
Data Type
String
ExternalCryptoData Property (SecureBlackbox_CertificateManager Class)
Additional data to be included in the async state and mirrored back by the requestor.
Object Oriented Interface
public function getExternalCryptoData(); public function setExternalCryptoData($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 81 ); secureblackbox_certificatemanager_set($res, 81, $value );
Default Value
''
Remarks
Additional data to be included in the async state and mirrored back by the requestor.
This property is not available at design time.
Data Type
String
ExternalCryptoExternalHashCalculation Property (SecureBlackbox_CertificateManager Class)
Specifies whether the message hash is to be calculated at the external endpoint.
Object Oriented Interface
public function getExternalCryptoExternalHashCalculation(); public function setExternalCryptoExternalHashCalculation($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 82 ); secureblackbox_certificatemanager_set($res, 82, $value );
Default Value
false
Remarks
Specifies whether the message hash is to be calculated at the external endpoint. Please note that this mode is not supported by the DCAuth class.
If set to true, the class will pass a few kilobytes of to-be-signed data from the document to the OnExternalSign event. This only applies when SignExternal() is called.
Data Type
Boolean
ExternalCryptoHashAlgorithm Property (SecureBlackbox_CertificateManager Class)
Specifies the request's signature hash algorithm.
Object Oriented Interface
public function getExternalCryptoHashAlgorithm(); public function setExternalCryptoHashAlgorithm($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 83 ); secureblackbox_certificatemanager_set($res, 83, $value );
Default Value
'SHA256'
Remarks
Specifies the request's signature hash algorithm.
SB_HASH_ALGORITHM_SHA1 | SHA1 | |
SB_HASH_ALGORITHM_SHA224 | SHA224 | |
SB_HASH_ALGORITHM_SHA256 | SHA256 | |
SB_HASH_ALGORITHM_SHA384 | SHA384 | |
SB_HASH_ALGORITHM_SHA512 | SHA512 | |
SB_HASH_ALGORITHM_MD2 | MD2 | |
SB_HASH_ALGORITHM_MD4 | MD4 | |
SB_HASH_ALGORITHM_MD5 | MD5 | |
SB_HASH_ALGORITHM_RIPEMD160 | RIPEMD160 | |
SB_HASH_ALGORITHM_CRC32 | CRC32 | |
SB_HASH_ALGORITHM_SSL3 | SSL3 | |
SB_HASH_ALGORITHM_GOST_R3411_1994 | GOST1994 | |
SB_HASH_ALGORITHM_WHIRLPOOL | WHIRLPOOL | |
SB_HASH_ALGORITHM_POLY1305 | POLY1305 | |
SB_HASH_ALGORITHM_SHA3_224 | SHA3_224 | |
SB_HASH_ALGORITHM_SHA3_256 | SHA3_256 | |
SB_HASH_ALGORITHM_SHA3_384 | SHA3_384 | |
SB_HASH_ALGORITHM_SHA3_512 | SHA3_512 | |
SB_HASH_ALGORITHM_BLAKE2S_128 | BLAKE2S_128 | |
SB_HASH_ALGORITHM_BLAKE2S_160 | BLAKE2S_160 | |
SB_HASH_ALGORITHM_BLAKE2S_224 | BLAKE2S_224 | |
SB_HASH_ALGORITHM_BLAKE2S_256 | BLAKE2S_256 | |
SB_HASH_ALGORITHM_BLAKE2B_160 | BLAKE2B_160 | |
SB_HASH_ALGORITHM_BLAKE2B_256 | BLAKE2B_256 | |
SB_HASH_ALGORITHM_BLAKE2B_384 | BLAKE2B_384 | |
SB_HASH_ALGORITHM_BLAKE2B_512 | BLAKE2B_512 | |
SB_HASH_ALGORITHM_SHAKE_128 | SHAKE_128 | |
SB_HASH_ALGORITHM_SHAKE_256 | SHAKE_256 | |
SB_HASH_ALGORITHM_SHAKE_128_LEN | SHAKE_128_LEN | |
SB_HASH_ALGORITHM_SHAKE_256_LEN | SHAKE_256_LEN |
Data Type
String
ExternalCryptoKeyID Property (SecureBlackbox_CertificateManager Class)
The ID of the pre-shared key used for DC request authentication.
Object Oriented Interface
public function getExternalCryptoKeyID(); public function setExternalCryptoKeyID($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 84 ); secureblackbox_certificatemanager_set($res, 84, $value );
Default Value
''
Remarks
The ID of the pre-shared key used for DC request authentication.
Asynchronous DCAuth-driven communication requires that parties authenticate each other with a secret pre-shared cryptographic key. This provides an extra protection layer for the protocol and diminishes the risk of the private key becoming abused by foreign parties. Use this property to provide the pre-shared key identifier, and use ExternalCryptoKeySecret to pass the key itself.
The same KeyID/KeySecret pair should be used on the DCAuth side for the signing requests to be accepted.
Note: The KeyID/KeySecret scheme is very similar to the AuthKey scheme used in various Cloud service providers to authenticate users.
Example:
signer.ExternalCrypto.KeyID = "MainSigningKey";
signer.ExternalCrypto.KeySecret = "abcdef0123456789";
Data Type
String
ExternalCryptoKeySecret Property (SecureBlackbox_CertificateManager Class)
The pre-shared key used for DC request authentication.
Object Oriented Interface
public function getExternalCryptoKeySecret(); public function setExternalCryptoKeySecret($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 85 ); secureblackbox_certificatemanager_set($res, 85, $value );
Default Value
''
Remarks
The pre-shared key used for DC request authentication. This key must be set and match the key used by the DCAuth counterpart for the scheme to work.
Read more about configuring authentication in the ExternalCryptoKeyID topic.
Data Type
String
ExternalCryptoMethod Property (SecureBlackbox_CertificateManager Class)
Specifies the asynchronous signing method.
Object Oriented Interface
public function getExternalCryptoMethod(); public function setExternalCryptoMethod($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 86 ); secureblackbox_certificatemanager_set($res, 86, $value );
Default Value
0
Remarks
Specifies the asynchronous signing method. This is typically defined by the DC server capabilities and setup.
Available options:
asmdPKCS1 | 0 |
asmdPKCS7 | 1 |
Data Type
Integer
ExternalCryptoMode Property (SecureBlackbox_CertificateManager Class)
Specifies the external cryptography mode.
Object Oriented Interface
public function getExternalCryptoMode(); public function setExternalCryptoMode($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 87 ); secureblackbox_certificatemanager_set($res, 87, $value );
Default Value
0
Remarks
Specifies the external cryptography mode.
Available options:
ecmDefault | The default value (0) |
ecmDisabled | Do not use DC or external signing (1) |
ecmGeneric | Generic external signing with the OnExternalSign event (2) |
ecmDCAuth | DCAuth signing (3) |
ecmDCAuthJSON | DCAuth signing in JSON format (4) |
This property is not available at design time.
Data Type
Integer
ExternalCryptoPublicKeyAlgorithm Property (SecureBlackbox_CertificateManager Class)
Provide the public key algorithm here if the certificate is not available on the pre-signing stage.
Object Oriented Interface
public function getExternalCryptoPublicKeyAlgorithm(); public function setExternalCryptoPublicKeyAlgorithm($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 88 ); secureblackbox_certificatemanager_set($res, 88, $value );
Default Value
''
Remarks
Provide the public key algorithm here if the certificate is not available on the pre-signing stage.
SB_CERT_ALGORITHM_ID_RSA_ENCRYPTION | rsaEncryption | |
SB_CERT_ALGORITHM_MD2_RSA_ENCRYPTION | md2withRSAEncryption | |
SB_CERT_ALGORITHM_MD5_RSA_ENCRYPTION | md5withRSAEncryption | |
SB_CERT_ALGORITHM_SHA1_RSA_ENCRYPTION | sha1withRSAEncryption | |
SB_CERT_ALGORITHM_ID_DSA | id-dsa | |
SB_CERT_ALGORITHM_ID_DSA_SHA1 | id-dsa-with-sha1 | |
SB_CERT_ALGORITHM_DH_PUBLIC | dhpublicnumber | |
SB_CERT_ALGORITHM_SHA224_RSA_ENCRYPTION | sha224WithRSAEncryption | |
SB_CERT_ALGORITHM_SHA256_RSA_ENCRYPTION | sha256WithRSAEncryption | |
SB_CERT_ALGORITHM_SHA384_RSA_ENCRYPTION | sha384WithRSAEncryption | |
SB_CERT_ALGORITHM_SHA512_RSA_ENCRYPTION | sha512WithRSAEncryption | |
SB_CERT_ALGORITHM_ID_RSAPSS | id-RSASSA-PSS | |
SB_CERT_ALGORITHM_ID_RSAOAEP | id-RSAES-OAEP | |
SB_CERT_ALGORITHM_RSASIGNATURE_RIPEMD160 | ripemd160withRSA | |
SB_CERT_ALGORITHM_ID_ELGAMAL | elGamal | |
SB_CERT_ALGORITHM_SHA1_ECDSA | ecdsa-with-SHA1 | |
SB_CERT_ALGORITHM_RECOMMENDED_ECDSA | ecdsa-recommended | |
SB_CERT_ALGORITHM_SHA224_ECDSA | ecdsa-with-SHA224 | |
SB_CERT_ALGORITHM_SHA256_ECDSA | ecdsa-with-SHA256 | |
SB_CERT_ALGORITHM_SHA384_ECDSA | ecdsa-with-SHA384 | |
SB_CERT_ALGORITHM_SHA512_ECDSA | ecdsa-with-SHA512 | |
SB_CERT_ALGORITHM_EC | id-ecPublicKey | |
SB_CERT_ALGORITHM_SPECIFIED_ECDSA | ecdsa-specified | |
SB_CERT_ALGORITHM_GOST_R3410_1994 | id-GostR3410-94 | |
SB_CERT_ALGORITHM_GOST_R3410_2001 | id-GostR3410-2001 | |
SB_CERT_ALGORITHM_GOST_R3411_WITH_R3410_1994 | id-GostR3411-94-with-GostR3410-94 | |
SB_CERT_ALGORITHM_GOST_R3411_WITH_R3410_2001 | id-GostR3411-94-with-GostR3410-2001 | |
SB_CERT_ALGORITHM_SHA1_ECDSA_PLAIN | ecdsa-plain-SHA1 | |
SB_CERT_ALGORITHM_SHA224_ECDSA_PLAIN | ecdsa-plain-SHA224 | |
SB_CERT_ALGORITHM_SHA256_ECDSA_PLAIN | ecdsa-plain-SHA256 | |
SB_CERT_ALGORITHM_SHA384_ECDSA_PLAIN | ecdsa-plain-SHA384 | |
SB_CERT_ALGORITHM_SHA512_ECDSA_PLAIN | ecdsa-plain-SHA512 | |
SB_CERT_ALGORITHM_RIPEMD160_ECDSA_PLAIN | ecdsa-plain-RIPEMD160 | |
SB_CERT_ALGORITHM_WHIRLPOOL_RSA_ENCRYPTION | whirlpoolWithRSAEncryption | |
SB_CERT_ALGORITHM_ID_DSA_SHA224 | id-dsa-with-sha224 | |
SB_CERT_ALGORITHM_ID_DSA_SHA256 | id-dsa-with-sha256 | |
SB_CERT_ALGORITHM_SHA3_224_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-224 | |
SB_CERT_ALGORITHM_SHA3_256_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-256 | |
SB_CERT_ALGORITHM_SHA3_384_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-384 | |
SB_CERT_ALGORITHM_SHA3_512_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-sha3-512 | |
SB_CERT_ALGORITHM_SHA3_224_ECDSA | id-ecdsa-with-sha3-224 | |
SB_CERT_ALGORITHM_SHA3_256_ECDSA | id-ecdsa-with-sha3-256 | |
SB_CERT_ALGORITHM_SHA3_384_ECDSA | id-ecdsa-with-sha3-384 | |
SB_CERT_ALGORITHM_SHA3_512_ECDSA | id-ecdsa-with-sha3-512 | |
SB_CERT_ALGORITHM_SHA3_224_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-224 | |
SB_CERT_ALGORITHM_SHA3_256_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-256 | |
SB_CERT_ALGORITHM_SHA3_384_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-384 | |
SB_CERT_ALGORITHM_SHA3_512_ECDSA_PLAIN | id-ecdsa-plain-with-sha3-512 | |
SB_CERT_ALGORITHM_ID_DSA_SHA3_224 | id-dsa-with-sha3-224 | |
SB_CERT_ALGORITHM_ID_DSA_SHA3_256 | id-dsa-with-sha3-256 | |
SB_CERT_ALGORITHM_BLAKE2S_128_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s128 | |
SB_CERT_ALGORITHM_BLAKE2S_160_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s160 | |
SB_CERT_ALGORITHM_BLAKE2S_224_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s224 | |
SB_CERT_ALGORITHM_BLAKE2S_256_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2s256 | |
SB_CERT_ALGORITHM_BLAKE2B_160_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b160 | |
SB_CERT_ALGORITHM_BLAKE2B_256_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b256 | |
SB_CERT_ALGORITHM_BLAKE2B_384_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b384 | |
SB_CERT_ALGORITHM_BLAKE2B_512_RSA_ENCRYPTION | id-rsassa-pkcs1-v1_5-with-blake2b512 | |
SB_CERT_ALGORITHM_BLAKE2S_128_ECDSA | id-ecdsa-with-blake2s128 | |
SB_CERT_ALGORITHM_BLAKE2S_160_ECDSA | id-ecdsa-with-blake2s160 | |
SB_CERT_ALGORITHM_BLAKE2S_224_ECDSA | id-ecdsa-with-blake2s224 | |
SB_CERT_ALGORITHM_BLAKE2S_256_ECDSA | id-ecdsa-with-blake2s256 | |
SB_CERT_ALGORITHM_BLAKE2B_160_ECDSA | id-ecdsa-with-blake2b160 | |
SB_CERT_ALGORITHM_BLAKE2B_256_ECDSA | id-ecdsa-with-blake2b256 | |
SB_CERT_ALGORITHM_BLAKE2B_384_ECDSA | id-ecdsa-with-blake2b384 | |
SB_CERT_ALGORITHM_BLAKE2B_512_ECDSA | id-ecdsa-with-blake2b512 | |
SB_CERT_ALGORITHM_BLAKE2S_128_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s128 | |
SB_CERT_ALGORITHM_BLAKE2S_160_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s160 | |
SB_CERT_ALGORITHM_BLAKE2S_224_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s224 | |
SB_CERT_ALGORITHM_BLAKE2S_256_ECDSA_PLAIN | id-ecdsa-plain-with-blake2s256 | |
SB_CERT_ALGORITHM_BLAKE2B_160_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b160 | |
SB_CERT_ALGORITHM_BLAKE2B_256_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b256 | |
SB_CERT_ALGORITHM_BLAKE2B_384_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b384 | |
SB_CERT_ALGORITHM_BLAKE2B_512_ECDSA_PLAIN | id-ecdsa-plain-with-blake2b512 | |
SB_CERT_ALGORITHM_ID_DSA_BLAKE2S_224 | id-dsa-with-blake2s224 | |
SB_CERT_ALGORITHM_ID_DSA_BLAKE2S_256 | id-dsa-with-blake2s256 | |
SB_CERT_ALGORITHM_EDDSA_ED25519 | id-Ed25519 | |
SB_CERT_ALGORITHM_EDDSA_ED448 | id-Ed448 | |
SB_CERT_ALGORITHM_EDDSA_ED25519_PH | id-Ed25519ph | |
SB_CERT_ALGORITHM_EDDSA_ED448_PH | id-Ed448ph | |
SB_CERT_ALGORITHM_EDDSA | id-EdDSA | |
SB_CERT_ALGORITHM_EDDSA_SIGNATURE | id-EdDSA-sig |
Data Type
String
FIPSMode Property (SecureBlackbox_CertificateManager Class)
Reserved.
Object Oriented Interface
public function getFIPSMode(); public function setFIPSMode($value);
Procedural Interface
secureblackbox_certificatemanager_get($res, 89 ); secureblackbox_certificatemanager_set($res, 89, $value );
Default Value
false
Remarks
This property is reserved for future use.
Data Type
Boolean
Config Method (SecureBlackbox_CertificateManager Class)
Sets or retrieves a configuration setting.
Object Oriented Interface
public function doConfig($configurationstring);
Procedural Interface
secureblackbox_certificatemanager_do_config($res, $configurationstring);
Remarks
Config is a generic method available in every class. It is used to set and retrieve configuration settings for the class.
These settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the class, access to these internal properties is provided through the Config method.
To set a configuration setting named PROPERTY, you must call Config("PROPERTY=VALUE"), where VALUE is the value of the setting expressed as a string. For boolean values, use the strings "True", "False", "0", "1", "Yes", or "No" (case does not matter).
To read (query) the value of a configuration setting, you must call Config("PROPERTY"). The value will be returned as a string.
CreateNew Method (SecureBlackbox_CertificateManager Class)
Creates a template for a new certificate or CSR with a particular purpose in the Certificate property.
Object Oriented Interface
public function doCreateNew($certtype, $purpose, $subject);
Procedural Interface
secureblackbox_certificatemanager_do_createnew($res, $certtype, $purpose, $subject);
Remarks
This method pre-generates a certificate template that matches the specified purpose. The created template has its subject and default extensions initialized according to the selected purpose. Use Generate method to complete the process by generating a new keypair and signing it with the CA certificate (if provided).
The CertType parameter specifies the type of the object that you need to create. This can be a certificate or a certificate request (CSR).
ctUnknown | 0 | Unknown or uninitialized certificate type |
ctX509Certificate | 1 | An X.509 digital certificate |
ctX509CertificateRequest | 2 | An X.509 certificate request (CSR) |
- "generic" or an empty string: a generic certificate with no specific purpose. No extensions are pre-generated.
- "tls": a TLS server certificate
- "tls-client": a client-side TLS certificate
- "email": a secure e-mail (S/MIME) certificate
- "digsig": a digital signature certificate
Subject specifies the common name to include in the certificate. It can be a string of arbitrary format (e.g. "*.domain.com"), or a formatted RDN (e.g. "/C=US/O=Big Company, Inc./CN=Accounts receivable").
Leave all parameters empty to generate an empty template.
DoAction Method (SecureBlackbox_CertificateManager Class)
Performs an additional action.
Object Oriented Interface
public function doDoAction($actionid, $actionparams);
Procedural Interface
secureblackbox_certificatemanager_do_doaction($res, $actionid, $actionparams);
Remarks
DoAction is a generic method available in every class. It is used to perform an additional action introduced after the product major release. The list of actions is not fixed, and may be flexibly extended over time.
The unique identifier (case insensitive) of the action is provided in the ActionID parameter.
ActionParams contains the value of a single parameter, or a list of multiple parameters for the action in the form of PARAM1=VALUE1;PARAM2=VALUE2;....
ExportBytes Method (SecureBlackbox_CertificateManager Class)
Exports the certificate in the chosen format.
Object Oriented Interface
public function doExportBytes($format, $exportkey, $password);
Procedural Interface
secureblackbox_certificatemanager_do_exportbytes($res, $format, $exportkey, $password);
Remarks
Use this method to save the certificate or certificate request in one of the formats defined below.
ExportKey specifies whether to export the private key together with the certificate. Pass the encryption password via the Password parameter if needed.
cfmUnknown | 0 | Unknown certificate format |
cfmDER | 1 | DER file format. Applicable to certificates, certificate requests, private keys. Encryption not supported |
cfmPEM | 2 | PEM file format. Applicable to certificates, certificate requests, private keys. Encryption supported for private keys. |
cfmPFX | 3 | PFX/PKCS#12 file format. Applicable to certificates. Encryption supported. |
cfmSPC | 4 | SPC file format. Applicable to certificates. Encryption not supported. |
cfmPVK | 5 | PVK file format. Applicable to private keys. Encryption not supported. |
cfmPKCS8 | 6 | PKCS#8 file format. Applicable to private keys. Encryption supported. |
cfmNET | 7 | NET file format. Applicable to private keys. Encryption not supported. |
Note that not all formats support encryption, and some (like PEM) only support partial encryption (key only). Keep this in mind when considering which format to choose for storing your certificates.
ExportKey Method (SecureBlackbox_CertificateManager Class)
Exports the certificate's private key.
Object Oriented Interface
public function doExportKey($format, $password);
Procedural Interface
secureblackbox_certificatemanager_do_exportkey($res, $format, $password);
Remarks
Use this method to save the certificate private key in one of the formats given below. Pass the encryption password via the Password parameter.
Supported certificate key format values:
cfmUnknown | 0 | Unknown certificate format |
cfmDER | 1 | DER file format. Applicable to certificates, certificate requests, private keys. Encryption not supported |
cfmPEM | 2 | PEM file format. Applicable to certificates, certificate requests, private keys. Encryption supported for private keys. |
cfmPFX | 3 | PFX/PKCS#12 file format. Applicable to certificates. Encryption supported. |
cfmSPC | 4 | SPC file format. Applicable to certificates. Encryption not supported. |
cfmPVK | 5 | PVK file format. Applicable to private keys. Encryption not supported. |
cfmPKCS8 | 6 | PKCS#8 file format. Applicable to private keys. Encryption supported. |
cfmNET | 7 | NET file format. Applicable to private keys. Encryption not supported. |
ExportKeyToFile Method (SecureBlackbox_CertificateManager Class)
Exports the private key to a file in the chosen format.
Object Oriented Interface
public function doExportKeyToFile($keyfile, $format, $password);
Procedural Interface
secureblackbox_certificatemanager_do_exportkeytofile($res, $keyfile, $format, $password);
Remarks
Use this method to save the certificate key in one of the formats given below. Pass the encryption password via the Password parameter.
Supported certificate key format values:
cfmUnknown | 0 | Unknown certificate format |
cfmDER | 1 | DER file format. Applicable to certificates, certificate requests, private keys. Encryption not supported |
cfmPEM | 2 | PEM file format. Applicable to certificates, certificate requests, private keys. Encryption supported for private keys. |
cfmPFX | 3 | PFX/PKCS#12 file format. Applicable to certificates. Encryption supported. |
cfmSPC | 4 | SPC file format. Applicable to certificates. Encryption not supported. |
cfmPVK | 5 | PVK file format. Applicable to private keys. Encryption not supported. |
cfmPKCS8 | 6 | PKCS#8 file format. Applicable to private keys. Encryption supported. |
cfmNET | 7 | NET file format. Applicable to private keys. Encryption not supported. |
ExportToFile Method (SecureBlackbox_CertificateManager Class)
Exports the certificate to a file.
Object Oriented Interface
public function doExportToFile($filename, $format, $exportkey, $password);
Procedural Interface
secureblackbox_certificatemanager_do_exporttofile($res, $filename, $format, $exportkey, $password);
Remarks
Use this method to save the certificate to a file in one of the formats given below. Pass the encryption password via the Password parameter. Set ExportKey to true to save the private key together with the certificate.
cfmUnknown | 0 | Unknown certificate format |
cfmDER | 1 | DER file format. Applicable to certificates, certificate requests, private keys. Encryption not supported |
cfmPEM | 2 | PEM file format. Applicable to certificates, certificate requests, private keys. Encryption supported for private keys. |
cfmPFX | 3 | PFX/PKCS#12 file format. Applicable to certificates. Encryption supported. |
cfmSPC | 4 | SPC file format. Applicable to certificates. Encryption not supported. |
cfmPVK | 5 | PVK file format. Applicable to private keys. Encryption not supported. |
cfmPKCS8 | 6 | PKCS#8 file format. Applicable to private keys. Encryption supported. |
cfmNET | 7 | NET file format. Applicable to private keys. Encryption not supported. |
Note that not all formats support encryption, and some (like PEM) only support partial encryption (key only). Keep this in mind when considering which format to choose for storing your certificates.
Generate Method (SecureBlackbox_CertificateManager Class)
Generates a new certificate or certificate request.
Object Oriented Interface
public function doGenerate($keybits);
Procedural Interface
secureblackbox_certificatemanager_do_generate($res, $keybits);
Remarks
Call this method to generate a new certificate based on the information provided in the Certificate and CACertificate properties:
If CACertificate is not set, a self-signed certificate or certificate request will be generated based on the information set up in Certificate object.
If Certificate contains a certificate, and CACertificate is set, a certificate signed by the CA certificate will be generated based on the information configured in the Certificate object. The resulting certificate will remain in Certificate
If Certificate contains a signed certificate request, and CACertificate is set, a certificate based on the certificate request and signed by the CA certificate will be generated.
KeyBits specifies the number of bits in the key to be generated. Note that this property is ignored in the case of request-based generation.
GenerateAsyncBegin Method (SecureBlackbox_CertificateManager Class)
Initiates asynchronous (DC) certificate generation.
Object Oriented Interface
public function doGenerateAsyncBegin($keybits);
Procedural Interface
secureblackbox_certificatemanager_do_generateasyncbegin($res, $keybits);
Remarks
Call this method to initiate an asynchronous certificate generation process. Pass the obtained async state to the DC server for signing. To finalize the generation, pass the async state received from the DC server to GenerateAsyncEnd.
AsyncState is a message of the distributed cryptography (DC) protocol. The DC protocol is based on the exchange of async states between a DC client (an application that wants to sign a PDF, XML, or Office document) and a DC server (an application that controls access to the private key). An async state can carry one or more signing requests, comprised of document hashes, or one or more signatures produced over those hashes.
In a typical scenario you get a client-side async state from the SignAsyncBegin method. This state contains document hashes to be signed on the DC server side. You then send the async state to the DC server (often represented by the DCAuth class), which processes it and produces a matching signature state. The async state produced by the server is then passed to the SignAsyncEnd method.
GenerateAsyncEnd Method (SecureBlackbox_CertificateManager Class)
Completes asynchronous certificate generation.
Object Oriented Interface
public function doGenerateAsyncEnd($asyncreply);
Procedural Interface
secureblackbox_certificatemanager_do_generateasyncend($res, $asyncreply);
Remarks
Call this method to finalize the asynchronous generation process and pass the async state received from DC server via AsyncReply parameter.
AsyncState is a message of the distributed cryptography (DC) protocol. The DC protocol is based on the exchange of async states between a DC client (an application that wants to sign a PDF, XML, or Office document) and a DC server (an application that controls access to the private key). An async state can carry one or more signing requests, comprised of document hashes, or one or more signatures produced over those hashes.
In a typical scenario you get a client-side async state from the SignAsyncBegin method. This state contains document hashes to be signed on the DC server side. You then send the async state to the DC server (often represented by the DCAuth class), which processes it and produces a matching signature state. The async state produced by the server is then passed to the SignAsyncEnd method.
GenerateExternal Method (SecureBlackbox_CertificateManager Class)
Generates a new certificate or request over an existing public key.
Object Oriented Interface
public function doGenerateExternal($keybytes, $keypassword);
Procedural Interface
secureblackbox_certificatemanager_do_generateexternal($res, $keybytes, $keypassword);
Remarks
This method does exactly the same as Generate. The only difference is that instead of generating a new keypair, this method generates a new certificate over an existing keypair. See the rules of the Generate method to learn about parameter configurations for different generation scenarios.
Note: KeyBytes can contain a public or private key - as long as SecureBlackbox recognises the format, it will be processed.
GetExtensionData Method (SecureBlackbox_CertificateManager Class)
Returns extension data.
Object Oriented Interface
public function doGetExtensionData($oid);
Procedural Interface
secureblackbox_certificatemanager_do_getextensiondata($res, $oid);
Remarks
Use this method to retrieve extension data in ASN.1 encoded format. Use GetExtensionState to check the availability of the extension and establish its critical attribute.
GetExtensionState Method (SecureBlackbox_CertificateManager Class)
Returns certificate extension state.
Object Oriented Interface
public function doGetExtensionState($oid);
Procedural Interface
secureblackbox_certificatemanager_do_getextensionstate($res, $oid);
Remarks
Use this method to find out whether the extension is included in the certificate/CRL and check its critical attribute.
cesNotIncluded | 0 | The extension is not included in the certificate |
cesCritical | 1 | The extension is included and is marked critical |
cesNonCritical | 2 | The extension is included and is not marked critical |
ImportBytes Method (SecureBlackbox_CertificateManager Class)
Imports a certificate.
Object Oriented Interface
public function doImportBytes($certbytes, $password);
Procedural Interface
secureblackbox_certificatemanager_do_importbytes($res, $certbytes, $password);
Remarks
Use this method to load a certificate or certificate request from a byte array. Provide the password via the Password parameter. The Password parameter is optional. If it is omitted and it is later discovered that the key is password-encrypted, the PasswordNeeded event will be fired to request it. This method supports certificates in DER, PEM, PFX, and SPC formats.
ImportFromFile Method (SecureBlackbox_CertificateManager Class)
Loads a certificate from a file.
Object Oriented Interface
public function doImportFromFile($path, $password);
Procedural Interface
secureblackbox_certificatemanager_do_importfromfile($res, $path, $password);
Remarks
This method can load certificates saved in one of the following formats: DER, PEM, PFX, SPC.
Use the Path parameter to provide a path to the certificate, and Password to specify the password. The Password parameter is optional. If it is omitted and it is later discovered that the certificate is password-encrypted, the PasswordNeeded event will be fired to request it.
ImportFromObject Method (SecureBlackbox_CertificateManager Class)
Imports a certificate from a platform object.
Object Oriented Interface
public function doImportFromObject($srcobj);
Procedural Interface
secureblackbox_certificatemanager_do_importfromobject($res, $srcobj);
Remarks
Use this method to import a certificate from a native platform object, such as X509Certificate2. Depending on the platform, the ObjHandle parameter can be one of the following:
- .NET: X509Certificate2
- Java: X509Certificate
- Windows-based platforms: PCCERT_CONTEXT
ImportKey Method (SecureBlackbox_CertificateManager Class)
Imports a private key.
Object Oriented Interface
public function doImportKey($key, $password);
Procedural Interface
secureblackbox_certificatemanager_do_importkey($res, $key, $password);
Remarks
Use this method to load a private key from a byte array. Provide the encryption password via the Password parameter. The Password parameter is optional. If it is omitted and it is later discovered that the key is password-encrypted, the PasswordNeeded event will be fired to request it. If there is an initialized certificate or certificate request object inside the manager, the loaded key gets associated with that object. This method supports keys in DER, PEM, PKCS#8, and PVK formats.
ImportKeyFromFile Method (SecureBlackbox_CertificateManager Class)
Imports a private key from a file.
Object Oriented Interface
public function doImportKeyFromFile($path, $password);
Procedural Interface
secureblackbox_certificatemanager_do_importkeyfromfile($res, $path, $password);
Remarks
Use this method to load a private key from a file. Provide the encryption password via the Password parameter. The Password parameter is optional. If it is omitted and it is later discovered that the key is password-encrypted, the PasswordNeeded event will be fired to request it. If there is an initialized certificate or certificate request object inside the manager, the loaded key gets associated with that object. This method supports keys in DER, PEM, PKCS#8, and PVK formats.
ListExtensions Method (SecureBlackbox_CertificateManager Class)
List extensions currently available in the certificate or CRL.
Object Oriented Interface
public function doListExtensions();
Procedural Interface
secureblackbox_certificatemanager_do_listextensions($res);
Remarks
Use this method to list the extensions included in the certificate or CRL. The method returns a list of OIDs separated by newline characters.
Reset Method (SecureBlackbox_CertificateManager Class)
Resets the class settings.
Object Oriented Interface
public function doReset();
Procedural Interface
secureblackbox_certificatemanager_do_reset($res);
Remarks
Reset is a generic method available in every class.
SetExtensionData Method (SecureBlackbox_CertificateManager Class)
Sets extension data.
Object Oriented Interface
public function doSetExtensionData($oid, $value);
Procedural Interface
secureblackbox_certificatemanager_do_setextensiondata($res, $oid, $value);
Remarks
Use this method to set extension data in encoded ASN.1 format. Use SetExtensionState to enable the extension or change its critical attribute.
SetExtensionState Method (SecureBlackbox_CertificateManager Class)
Sets certificate extension state.
Object Oriented Interface
public function doSetExtensionState($oid, $state);
Procedural Interface
secureblackbox_certificatemanager_do_setextensionstate($res, $oid, $state);
Remarks
Use this method to enable or disable the extension and set its critical attribute.
cesNotIncluded | 0 | The extension is not included in the certificate |
cesCritical | 1 | The extension is included and is marked critical |
cesNonCritical | 2 | The extension is included and is not marked critical |
Update Method (SecureBlackbox_CertificateManager Class)
Renews the certificate.
Object Oriented Interface
public function doUpdate();
Procedural Interface
secureblackbox_certificatemanager_do_update($res);
Remarks
This method renews a certificate by updating its validity period and re-signing the updated version.
Note that this operation expects both Certificate and CACertificate properties to be set.
Validate Method (SecureBlackbox_CertificateManager Class)
Validates the certificate.
Object Oriented Interface
public function doValidate();
Procedural Interface
secureblackbox_certificatemanager_do_validate($res);
Remarks
Use this method to validate the certificate contained in Certificate. If the certificate being validated is not self-signed, please provide the CA certificate via CACertificate property.
svtValid | 0 | The signature is valid |
svtUnknown | 1 | Signature validity is unknown |
svtCorrupted | 2 | The signature is corrupted |
svtSignerNotFound | 3 | Failed to acquire the signing certificate. The signature cannot be validated. |
svtFailure | 4 | General failure |
svtReferenceCorrupted | 5 | Reference corrupted (XML-based signatures only) |
Error Event (SecureBlackbox_CertificateManager Class)
Information about errors during certificate loading, saving or validation.
Object Oriented Interface
public function fireError($param);
Procedural Interface
secureblackbox_certificatemanager_register_callback($res, 1, array($this, 'fireError'));
Parameter List
'errorcode'
'description'
Remarks
Reports exceptional conditions during certificate loading, exporting, or validation.
ErrorCode contains an error code and Description contains a textual description of the error.
ExternalSign Event (SecureBlackbox_CertificateManager Class)
Handles remote or external signing initiated by the SignExternal method or other source.
Object Oriented Interface
public function fireExternalSign($param);
Procedural Interface
secureblackbox_certificatemanager_register_callback($res, 2, array($this, 'fireExternalSign'));
Parameter List
'operationid'
'hashalgorithm'
'pars'
'data'
'signeddata'
Remarks
Assign a handler to this event if you need to delegate a low-level signing operation to an external, remote, or custom signing engine. Depending on the settings, the handler will receive a hashed or unhashed value to be signed.
The event handler must pass the value of Data to the signer, obtain the signature, and pass it back to the class via the SignedData parameter.
OperationId provides a comment about the operation and its origin. It depends on the exact class being used, and may be empty. HashAlgorithm specifies the hash algorithm being used for the operation, and Pars contains algorithm-dependent parameters.
The class uses base16 (hex) encoding for the Data, SignedData, and Pars parameters. If your signing engine uses a different input and output encoding, you may need to decode and/or encode the data before and/or after the signing.
A sample MD5 hash encoded in base16: a0dee2a0382afbb09120ffa7ccd8a152 - lower case base16 A0DEE2A0382AFBB09120FFA7CCD8A152 - upper case base16
A sample event handler that uses the .NET RSACryptoServiceProvider class may look like the following:
signer.OnExternalSign += (s, e) =>
{
var cert = new X509Certificate2("cert.pfx", "", X509KeyStorageFlags.Exportable);
var key = (RSACryptoServiceProvider)cert.PrivateKey;
var dataToSign = e.Data.FromBase16String();
var signedData = key.SignHash(dataToSign, "2.16.840.1.101.3.4.2.1");
e.SignedData = signedData.ToBase16String();
};
Notification Event (SecureBlackbox_CertificateManager Class)
This event notifies the application about an underlying control flow event.
Object Oriented Interface
public function fireNotification($param);
Procedural Interface
secureblackbox_certificatemanager_register_callback($res, 3, array($this, 'fireNotification'));
Parameter List
'eventid'
'eventparam'
Remarks
The class fires this event to let the application know about some event, occurrence, or milestone in the class. For example, it may fire to report completion of the document processing. The list of events being reported is not fixed, and may be flexibly extended over time.
The unique identifier of the event is provided in the EventID parameter. EventParam contains any parameters accompanying the occurrence. Depending on the type of the class, the exact action it is performing, or the document being processed, one or both may be omitted.
PasswordNeeded Event (SecureBlackbox_CertificateManager Class)
This event is fired when a decryption password is needed.
Object Oriented Interface
public function firePasswordNeeded($param);
Procedural Interface
secureblackbox_certificatemanager_register_callback($res, 4, array($this, 'firePasswordNeeded'));
Parameter List
'password'
'cancel'
Remarks
The class fires this event when a password is needed to decrypt a certificate or a private key.
In the handler of this event, assign the password to the Password parameter, or set Cancel to true to abort the operation.
Config Settings (CertificateManager Class)
The class accepts one or more of the following configuration settings. Configuration settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the class, access to these internal properties is provided through the Config method.CertificateManager Config Settings
The following values are supported for either algorithm:
- PBES2-PBKDF2-SHA256-AES256
- PBES2-PBKDF2-SHA1-AES256
- PBE-SHA1-RC4-128
- PBE-SHA1-RC4-40
- PBE-SHA1-3DES
- PBE-SHA1-RC2-128
- PBE-SHA1-RC2-40
Base Config Settings
You can switch this property off to improve performance if your project only uses known, good private keys.
Supported values are:
off | No caching (default) | |
local | Local caching | |
global | Global caching |
This setting only applies to sessions negotiated with TLS version 1.3.
Supported values are:
file | File | |
console | Console | |
systemlog | System Log (supported for Android only) | |
debugger | Debugger (supported for VCL for Windows and .Net) |
Supported values are:
time | Current time | |
level | Level | |
package | Package name | |
module | Module name | |
class | Class name | |
method | Method name | |
threadid | Thread Id | |
contenttype | Content type | |
content | Content | |
all | All details |
Supported filter names are:
exclude-package | Exclude a package specified in the value | |
exclude-module | Exclude a module specified in the value | |
exclude-class | Exclude a class specified in the value | |
exclude-method | Exclude a method specified in the value | |
include-package | Include a package specified in the value | |
include-module | Include a module specified in the value | |
include-class | Include a class specified in the value | |
include-method | Include a method specified in the value |
none | No flush (caching only) | |
immediate | Immediate flush (real-time logging) | |
maxcount | Flush cached entries upon reaching LogMaxEventCount entries in the cache. |
Supported values are:
none | None (by default) | |
fatal | Severe errors that cause premature termination. | |
error | Other runtime errors or unexpected conditions. | |
warning | Use of deprecated APIs, poor use of API, 'almost' errors, other runtime situations that are undesirable or unexpected, but not necessarily "wrong". | |
info | Interesting runtime events (startup/shutdown). | |
debug | Detailed information on flow of through the system. | |
trace | More detailed information. |
The default value of this setting is 100.
none | No rotation | |
deleteolder | Delete older entries from the cache upon reaching LogMaxEventCount | |
keepolder | Keep older entries in the cache upon reaching LogMaxEventCount (newer entries are discarded) |
Supported values are:
none | No static DNS rules (default) | |
local | Local static DNS rules | |
global | Global static DNS rules |
This setting only applies to certificates originating from a Windows system store.
Trappable Errors (CertificateManager Class)
CertificateManager Errors
1048577 | Invalid parameter (SB_ERROR_INVALID_PARAMETER) |
1048578 | Invalid configuration (SB_ERROR_INVALID_SETUP) |
1048579 | Invalid state (SB_ERROR_INVALID_STATE) |
1048580 | Invalid value (SB_ERROR_INVALID_VALUE) |
1048581 | Private key not found (SB_ERROR_NO_PRIVATE_KEY) |
1048582 | Cancelled by the user (SB_ERROR_CANCELLED_BY_USER) |
1048583 | The file was not found (SB_ERROR_NO_SUCH_FILE) |
1048584 | Unsupported feature or operation (SB_ERROR_UNSUPPORTED_FEATURE) |
1048585 | General error (SB_ERROR_GENERAL_ERROR) |