bug/lack-of-input-validation-on-user-certificates

Create X509 certificates or RSA private keys out of strings received from provider in order to sanitize and validate the input.

Fixes security hole found by iSec and detailed at https://leap.se/code/issues/3328