readPrivateKeyDataFromFile

readPrivateKeyDataFromFile(fileName: String;
                           password: String) updating;

The readPrivateKeyDataFromFile method of the JadeX509Certificate class reads private key data from the file specified in the fileName parameter, using the password specified in the password parameter.

The following example shows the use of the readPrivateKeyDataFromFile method.

vars
    x509 : JadeX509Certificate;
begin
    create x509 transient;
    x509.readPrivateKeyDataFromFile("c:\certificates\myprivate.pem",
                                    "zz99zz99demo");
epilog
    delete x509;
end;