tweaselORG / appstraction

An abstraction layer for common instrumentation functions (e.g. installing and starting apps, setting preferences, etc.) on Android and iOS.
MIT License
4 stars 1 forks source link

Support certificate authorities in DER format? #45

Closed baltpeter closed 1 year ago

baltpeter commented 1 year ago

Currently, installCertificateAuthority() and removeCertificateAuthority() expect the CA certificate to be in PEM format[^1]. It wouldn't be hard to also handle DER certificates[^2]. Do we want to do that?

[^1]: Mostly, because certificates on Android are stored as PEM, and the CA mitmproxy produces is conveniently also PEM. [^2]: That's how iOS stores its CAs.

zner0L commented 1 year ago

No, I don’t think so. If people use appstraction in a script, it is trivial to convert and we will only ever use PEM in cyanoacrylate (if that ever changes, we can just add that in I guess).