Hi,
I have problem with POST payment.
I successfully go through installation, device-server, session-server where I get session token and user id. After that I call user/{{user_id}}/monetary-account where I get monetary id. But when I call /user/{{user_id}}/monetary-account/{{monetary_account_id}}/payment it fails on because of X-Bunq-Client-Signature. When I'm sending public key converted to pkcs8
let (privateKey, publicKey) = try CC.RSA.generateKeyPair(2048)
let publicKeyPEM = SwKeyConvert.PublicKey.derToPKCS8PEM(publicKey)
But problem is with private key, with which I sign request.
CC.RSA.sign(body, derKey: privateKey, padding: .pss, digest: .sha256, saltLen: 16)
This key is pkcs1 and google through all web, but didn't find solution how to convert it to pkcs8 to be accepted by bunq api. Is there somebody, who was able to make it work on iOS?
Thanks