Codeunit 1259 Certificate Management

Base Application, System.Security.Encryption

Source AL, 330 lines

src/Layers/W1/BaseApp/System/IsolatedStorage/CertificateManagement.Codeunit.allines 13 to 28 of 330, Copyright (c) Microsoft Corporation. MIT

codeunit 1259 "Certificate Management"{    trigger OnRun()    begin    end;    var        TempBlob: Codeunit "Temp Blob";        DotNet_X509Certificate2: Codeunit DotNet_X509Certificate2;        FileManagement: Codeunit "File Management";        CryptographyManagement: Codeunit "Cryptography Management";        UploadedCertFileName: Text;        SecretCertPassword: SecretText;        PasswordSuffixTxt: Label 'Password', Locked = true;

All 330 lines

Public procedures 20 in 29

UploadAndVerifyCert(var IsolatedCertificate: Record "Isolated Certificate"): Boolean17-29
InitIsolatedCertificateFromBlob(var IsolatedCertificate: Record "Isolated Certificate"; NewTempBlob: Codeunit "Temp Blob"): Boolean17-29
VerifyCert(var IsolatedCertificate: Record "Isolated Certificate"): Boolean17-29
VerifyCertFromString(var IsolatedCertificate: Record "Isolated Certificate"; CertString: Text)17-29
SaveCertToIsolatedStorage(IsolatedCertificate: Record "Isolated Certificate")17-29
SavePasswordToIsolatedStorage(var IsolatedCertificate: Record "Isolated Certificate")17-29

All 23 procedures in 17-29

Changes 5 in 27

List17181920212223242526272829
Procedures4165
GetPassword(IsolatedCertificate: Record "Isolated Certificate"): Textgone after 26
gone
SetCertPassword(CertificatePassword: Text)gone after 26
gone
GetPublicKeyAsBase64String(FullCertificateBase64: Text; Password: Text): Text23 to 26
gone
ReadCertFromStream(Password: SecretText; var InStr: InStream): Booleannew in 27
added
ValidateCertFields(var IsolatedCertificate: Record "Isolated Certificate")new in 27
added

All 16 changes in 17-29