} else if (attribute.name == "Rules-AlwaysConfirm") {
rules_always_confirm_index = i;
} else if (attribute.name == "CA-Cert") {
- id_card.trust_anchor.ca_cert = value;
+ id_card.trust_anchor.ca_cert = value.strip();
} else if (attribute.name == "Server-Cert") {
id_card.trust_anchor.server_cert = value;
} else if (attribute.name == "Subject") {
}
// Trust anchor
- id_card.trust_anchor.ca_cert = key_file.get_string (identity, "CA-Cert");
+ id_card.trust_anchor.ca_cert = key_file.get_string (identity, "CA-Cert").strip();
id_card.trust_anchor.subject = key_file.get_string (identity, "Subject");
id_card.trust_anchor.subject_alt = key_file.get_string (identity, "SubjectAlt");
id_card.trust_anchor.server_cert = key_file.get_string (identity, "ServerCert");