Open FeyverkSoft opened 7 years ago
Probably because you chose a wrong private key. Please get private key with steps described in README and try again.
I have key for working with EC_v1. Need some other?
openssl pkcs12 -in PrivateKey.p12 -nodes -out PrivateKey.pem
cat PrivateKey.pem
return
-----BEGIN EC PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w
{Private-Key}
-----END EC PRIVATE KEY-----
It seemed strange to me..... 😕 I have only these keys and csr. request_applepay.csr apple_pay.cer B217ACA5C9CC601.p12
@FeyverkSoft Were you able to get this working for you? I've hit the same snag.
I had this problem except my private key file looked slightly different (notice no "EC" in the BEGIN tag)
-----BEGIN PRIVATE KEY----- MIGHAgEAMBMGByqGSM ... {etc} -----END PRIVATE KEY-----
I then ran "openssl ec -in privatekeyonly.pem -out tradfile.pem" to output the key in "traditional" format on a file containing just that private key with the output looking like this
-----BEGIN EC PRIVATE KEY----- MHcCAQEEILc/zZdDHbmM ... {etc} -----END EC PRIVATE KEY-----
Using this version of the private key the CreateKey method did not throw the exception and the decryption I was trying worked.
Hi Cheng.
The Decryption method throws an exception on the call
PrivateKeyParameters = CreatePrivateKeyParameters ();
In the lineReturn (ECPrivateKeyParameters) PrivateKeyFactory.CreateKey (privInfo);
Because of what this can be?