Missing leading zeroes while retrieving serial number of a x509 cert
问题 I'm trying to get serial number from a X.509 Cert.. When i compare the Serial number generated by my code with the actual serial number(on windows), leading zeroes of the actual serial number(of the X509 cert) are missing. Any suggestions or alternative ways to get the serial number of the x.509 cert in hex with the leading zeroes?? Below is the code segment which I'm currently using: InputStream in = new FileInputStream("cert"); CertificateFactory certificateFactory = CertificateFactory