Support key loading from certificate file