Important: Please read the Qt Code of Conduct -

QSslCertificate::serialNumber - strange encoding

  • Hi

    If I ask for serial number of the certificate:


    I get QByteArray size 5 with something like: 14:57 - according to docs this is hexadecimal format
    This is for certificate number: Serial Number: 5207 (0x1457)

    How should I decode this into int number 5207 ? This colon inside QByteArray seems to be the problem. Why there is colon ?

    Best Regards

Log in to reply