public MedikitCertificate GetOrgAuthCertificate() { var orgCertificate = _certificateStore.GetOrgCertificate().Result; if (orgCertificate == null) { return(null); } return(GetCertificate(Convert.FromBase64String(orgCertificate.Payload), new Regex(AUTHENTICATION_CERT_NAME), orgCertificate.Password)); }