/// <summary> /// Construct from a general name. /// </summary> /// <param name="GeneralName"></param> public SubjectAltName(GeneralName GeneralName) { this.Names = new List<GeneralName>(); this.Names.Add(GeneralName); }
/// <summary> /// /// </summary> /// <param name="Name"></param> public void SetSubjectAltName(string Name) { GeneralName GeneralName = new GeneralName(Name); SubjectAltName SubjectAltName = new SubjectAltName(GeneralName); AddExtension(new Extension(SubjectAltName, false)); }