A certificate does not match key in token error pops up when attempting to sign files using a pkcs11 token with an RSA key.
Dumping x509tools.SameKey public keys showed a problem with the rsa.PublicKey.E being different between both keys.
Result was 16777472 (0x01000100) from the RSA token vs 65537 (0x00010001) from certificate file, showing an endianness issue.
Fixes #12.
A
certificate does not match key in token
error pops up when attempting to sign files using a pkcs11 token with an RSA key.Dumping x509tools.SameKey public keys showed a problem with the rsa.PublicKey.E being different between both keys. Result was
16777472 (0x01000100)
from the RSA token vs65537 (0x00010001)
from certificate file, showing an endianness issue.