Closed supermay554 closed 1 year ago
Hi,
This is the documentation about ICefX509Certificate : https://cef-builds.spotifycdn.com/docs/114.2/classCefX509Certificate.html
See the MiniBrowser demo to know how to get the available certificates : https://github.com/salvadordf/CEF4Delphi/blob/784edfca3486f635e73450d4d086b3d8a0790fbb/demos/Delphi_VCL/MiniBrowser/uMiniBrowser.pas#L1260 https://github.com/salvadordf/CEF4Delphi/blob/784edfca3486f635e73450d4d086b3d8a0790fbb/demos/Delphi_VCL/MiniBrowser/uMiniBrowser.pas#L796
Use the PEM or DER data for the certificate as a ICefBinaryValue instance and copy the the data using the ICefBinaryValue.GetData method : https://cef-builds.spotifycdn.com/docs/114.2/classCefBinaryValue.html
Please, use our forums for more questions.
generate MD5WithRSAKEY with openssl,av error function Sign(priKey, Msg: String; _type: KEY_ALGORITHM): String; var ctx: EVP_MD_CTX; pkey: pEVP_PKEY; key_type: pEVP_MD;
SigBuf: array [0 .. 4095] of Byte; SigLen: Cardinal; Buf: TStringStream; buf_len: Integer; err: Integer; begin Result := '';
pkey := LoadPrivateKey(priKey);
if pkey = nil then begin RaiseOpenSSLError('RSA load stream error'); Exit; end;
try
//CRYPTO_free or OPENSSL_free av error OPENSSL_free(key_type); end; end; except RaiseOpenSSLError('Sign error'); end; finally Buf.Free; end; finally EVP_PKEY_free(pkey); end; end;