Fall back to js crypto in case native RSA keygen fails