File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
dslink-v2/src/main/java/com/acuity/iot/dsa/dslink/sys/cert Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 66import java .util .Base64 .Encoder ;
77import org .iot .dsa .node .DSIObject ;
88import org .iot .dsa .node .DSNode ;
9+ import org .iot .dsa .time .DSTime ;
910
1011public class CertCollection extends DSNode {
1112
@@ -31,7 +32,7 @@ public boolean containsCertificate(X509Certificate cert) {
3132 }
3233
3334 public static String certToName (X509Certificate cert ) {
34- return cert . getIssuerX500Principal (). getName () + "-" + Integer . toHexString (cert .hashCode () );
35+ return DSTime . encodeForFiles ( DSTime . getCalendar ( System . currentTimeMillis ()), new StringBuilder (cert .getIssuerX500Principal (). getName ())). toString ( );
3536 }
3637
3738 public static String encodeCertificate (X509Certificate cert ) throws CertificateEncodingException {
You can’t perform that action at this time.
0 commit comments