Open sshallow opened 3 years ago
I seem to find the source of the problem: The privateKey is always empty. By tracking the source code, I found that there was a problem in the process of converting data to key.
JWTCryptoSecurity.h
SecItem.h
(framework
But 'kSecAttrKeyTypeECDSA' is unavailable: not available on iOS
@sshallow thanks for information!
Have you tried to change key to TypeEC
and create private key from your data?
@lolgear I tried to use kSecAttrKeyTypeEC to create, the result of SecKeyCreateWithData was empty. (Picture 1 is the process of kSecAttrKeyTypeEC)
@sshallow Could you share an example project? I would like to close many bugs before pre-release API V3
New Issue Checklist
Issue Info
Issue Description and Steps
I want to create a jwt token via oc in order to use App Store Connect API.
Error
Code
ps
This is the corresponding ruby script, it works