Codeunit 1286 "X509Certificate2"
System Application · System.Security.Encryption
Across versions
- BC23present
- BC2413 procedures added, 13 procedures removed
- BC25-26unchanged
- BC271 procedures added
- BC282 procedures added
- BC29-30unchanged
Neighbourhood 2 connected objects and pages
System Application · System.Security.Encryption · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Public |
Procedures
VerifyCertificate(var CertBase64Value: Text; Password: SecretText; X509ContentType: Enum "X509 Content Type"): Boolean+ BC24 − BC24: Verifes that a certificate is initialized and can be exported.GetCertificateFriendlyName(CertBase64Value: Text; Password: SecretText; var FriendlyName: Text)+ BC24 − BC24: Specifies the friendly name of the certificate based on it’s Base64 value.GetCertificateSubject(CertBase64Value: Text; Password: SecretText; var Subject: Text)+ BC24 − BC24: Specifies the subject of the certificate based on it’s Base64 value.GetCertificateThumbprint(CertBase64Value: Text; Password: SecretText; var Thumbprint: Text)+ BC24 − BC24: Specifies the thumbprint of the certificate based on it’s Base64 value.GetCertificateIssuer(CertBase64Value: Text; Password: SecretText; var Issuer: Text)+ BC24 − BC24: Specifies the issuer of the certificate based on it’s Base64 value.GetCertificateExpiration(CertBase64Value: Text; Password: SecretText; var Expiration: DateTime)+ BC24 − BC24: Specifies the expiration date of the certificate based on it’s Base64 value.GetCertificateNotBefore(CertBase64Value: Text; Password: SecretText; var NotBefore: DateTime)+ BC24 − BC24: Specifies the NotBefore date of the certificate based on it’s Base64 value.HasPrivateKey(CertBase64Value: Text; Password: SecretText): Boolean+ BC24 − BC24: Checks whether the certificate has a private key based on it’s Base64 value.GetCertificatePropertiesAsJson(CertBase64Value: Text; Password: SecretText; var CertPropertyJson: Text)+ BC24 − BC24: Specifies the certificate details in Json objectGetCertificatePublicKey(CertBase64Value: Text; Password: SecretText): Text+ BC24 − BC24: Gets Certificate public keyGetCertificatePrivateKey(CertBase64Value: Text; Password: SecretText): SecretText+ BC24 − BC24: Gets Certificate private keyGetCertificateSerialNumber(CertBase64Value: Text; Password: SecretText; var SerialNumber: Text)+ BC24 − BC24: Gets Certificate serial numberGetCertificateSerialNumberAsASCII(CertBase64Value: Text; Password: SecretText; var SerialNumberASCII: Text)+ BC24 − BC24: Gets Certificate serial number as ASCIIGetCertificatePublicKeyAsBase64String(CertBase64Value: Text; Password: SecretText): Text+ BC28: Gets certificate public key as Base64 stringGetRawCertDataAsBase64String(CertBase64Value: Text; Password: SecretText): Text+ BC28: Returns the raw data for the certificate as a Base64 string.CreateFromPemAndExportAsBase64(CertificateBase64: Text; PrivateKeyXmlString: SecretText; Password: SecretText): Text+ BC27: Creates a new instance of X509Certificate2 from the specified Base64 encoded certificate value. The certificate is exported as Base64 encoded string.
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 1285 “X509Certificate2 Impl.” (16 calls:
CreateFromPemAndExportAsBase64 → CreateFromPemAndExportAsBase64,GetCertificateExpiration → GetCertificateExpiration,GetCertificateFriendlyName → GetCertificateFriendlyName, …)
Called by
- Codeunit 2202 “Azure Key Vault Impl.” (1 call:
GetCertificateFromClient → GetCertificateThumbprint)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "X509Certificate2"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.