Home > Net >  You are using a private key format error, please check the RSA private key configuration, charset=ut
You are using a private key format error, please check the RSA private key configuration, charset=ut

Time:09-28

Pay treasure to invoke a refund interface you are using the private key format error, please check the RSA private key configuration, charset=utf-8

CodePudding user response:

The same problems, heart good tired, put a newline and -- -- -- -- -- BEGIN RSA PRIVATE KEY -- -- -- -- -- and -- -- -- -- -- END RSA PRIVATE KEY -- -- -- -- -- delete the same mistake, don't validation has been at the wrong,

CodePudding user response:

Encoding correct

CodePudding user response:

The building Lord, I know what reason, be paid treasure to interface pit, you check the DefaultAopClient. Cs, there is a custom attribute keyFromFile into=true
Is this judgment is with the private key file or string private key, the error is in AlipaySignature cs RSASignCharSet method in the quote, can have a look at,

CodePudding user response:

You check the DefaultAopClient. Cs, there is a custom attribute keyFromFile into=true
Is this judgment is with the private key file or string private key, the error is in AlipaySignature cs RSASignCharSet method in the quote, can see,

CodePudding user response:

You check the DefaultAopClient. Cs, there is a custom attribute keyFromFile into=true
Is this judgment is with the private key file or string private key, the error is in AlipaySignature cs RSASignCharSet method in the quote, can see,

CodePudding user response:

You solved?

CodePudding user response:

A: excuse me, do you is how to solve? If know, please share. Thank you

CodePudding user response:

<iframe marginwidth="0" marginheight="0" frameborder="0" scrolling="no" width="100%" SRC="https://bbs.csdn.net/bettings/11/embed"> <iframe>

CodePudding user response:

My private key is the company to a string, I don't know what format, is not too long, not pem file copying the private key, and I don't know what, pem file is DefaultAopClient. Cs, the inside of the custom attributes keyFromFile is set to true and false is the mistake, please explain

CodePudding user response:

Are you in the new DefaultAopClient, parameters of utf-8 is lowercase? Not capitalized utf-8?

CodePudding user response:

Need to download the alipay open platform development assistant, then put your private key to convert the format, turn PKCS8 (JAVA) or PKCS1 JAVA (not applicable) the private key
  •  Tags:  
  • C#