Changeset 7280


Ignore:
Timestamp:
Jan 25, 2017, 1:55:35 PM (5 years ago)
Author:
Nicklas Nordborg
Message:

References #2040: TestFile? fails due to updated server certificate

Added call to checkValidity() which will give a better error message in case the current certificate has expired. But there is still a problem since the server can be updated with a new certificate before the current one expires.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.10-stable/src/test/TestFileServer.java

    r6576 r7280  
    7979        out.close();
    8080        fs.setServerCertificate(out.toByteArray());
     81        fs.getServerX509Certificate().checkValidity();
    8182      }
    8283      if (clientCertificateFile != null)
     
    8788        fs.setClientCertificate(out.toByteArray());
    8889        fs.setClientCertificatePassword(clientCertificatePassword);
     90        fs.getClientX509Certificate().checkValidity();
    8991      }
    9092      dc.saveItem(fs);
Note: See TracChangeset for help on using the changeset viewer.