sc-hsm: Determine key size from public key in certificate