mirror of
https://github.com/nab138/isideload.git
synced 2026-03-02 06:26:16 +01:00
Trim leading zeros in serial number
This commit is contained in:
@@ -62,7 +62,8 @@ impl CertificateIdentity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_serial_number(&self) -> String {
|
pub fn get_serial_number(&self) -> String {
|
||||||
self.certificate.serial_number_asn1().encode_hex()
|
let serial: String = self.certificate.serial_number_asn1().encode_hex();
|
||||||
|
serial.trim_start_matches('0').to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn retrieve(
|
pub async fn retrieve(
|
||||||
|
|||||||
Reference in New Issue
Block a user