Skip to content
Snippets Groups Projects
Commit 8da75196 authored by Larbi Gharib's avatar Larbi Gharib
Browse files

x509: support UID field

Change-Id: I1f91cd9b10e907e291f4ac21b14d167086ab5766
parent f56f7e2a
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ import lombok.Setter;
public class X509Fields {
private String commonName;
private String uid;
private String country;
private String state;
private String organization;
......@@ -42,6 +43,9 @@ public class X509Fields {
if(commonName != null) {
stringBuilder.append("CN=").append(commonName);
} else return null;
if(uid !=null) {
stringBuilder.append(",").append("UID=").append(uid);
}
if(country != null) stringBuilder.append(",").append("C=").append(country);
if(state != null) stringBuilder.append(",").append("ST=").append(state);
if(organization != null) stringBuilder.append(",").append("O=").append(organization);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment