add timestamp to the filename of the certificate

pull/24/head
Zlatin Balevsky 2019-11-06 14:05:17 +00:00
parent 9181829e4a
commit 83ea1bed3e
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class CertificateManager {
private void saveCert(Certificate cert) {
String infoHashString = Base64.encode(cert.infoHash.getRoot())
File certFile = new File(certDir, "${infoHashString}_${cert.issuer.getHumanReadableName()}.mwcert")
File certFile = new File(certDir, "${infoHashString}_${cert.issuer.getHumanReadableName()}_${cert.timestamp}.mwcert")
certFile.withOutputStream { cert.write(it) }
}