Fix parsing of certificate serial number

This patch fixes issue #900, it allows to "ber_read" an integer with a size of 8 bytes.