Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QSslCertificate::serialNumber - strange encoding



  • Hi

    If I ask for serial number of the certificate:

    QSslCertificate::serialNumber()
    

    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
    Marek


Log in to reply