Skip to main content

convert_certificate_bytes

Function convert_certificate_bytes 

Source
pub fn convert_certificate_bytes(value: Option<&str>) -> Option<Vec<Vec<u8>>>
Expand description

Converts an optional certificate string into bytes. Handles PEM format, file paths, and base64-encoded data.

§Arguments

  • value - Optional string containing the certificate data

§Returns

Optional vector of bytes containing the certificate data