Added workaround method to avoid loading certificate directly as that crashes .NET with EC-based keys.