fixed encoding of AIK certificates and public keys