We want to use capillary to support E2E encryption for push messages, on both android and iOS, on iOS we need to generate an RSA keypair, and provide the public key to the server. The problem is that we don't know what format Capillary expects the public key in.
We have tried to find out, and think that its an RSA 2048 in X.509 format and base64encoded. But our early attempts at this fails when Capillary tries to parse the public-key generated by our iOS app. We have used Heimdall to generate the keypair, and experimented with CryptoExportImportManager to convert the keys into DER format, but still no luck...
Anybody who can help, or at least say if this is feasible. (that is, using Capillary on server and E2E encrypt for iOS Clients.)
(Please excuse me if any of this doesn't make sense, as crypto is something Im not very familiar with. Im trying to learn, but all these key-types, formats, sizes, curves and encodings is still a jungle for me.)