From 83ea1bed3edd91de6cab6cbb49b1ef6764a23a0c Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Wed, 6 Nov 2019 14:05:17 +0000 Subject: [PATCH] add timestamp to the filename of the certificate --- .../groovy/com/muwire/core/filecert/CertificateManager.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/groovy/com/muwire/core/filecert/CertificateManager.groovy b/core/src/main/groovy/com/muwire/core/filecert/CertificateManager.groovy index ca2f1870..a3a92cb2 100644 --- a/core/src/main/groovy/com/muwire/core/filecert/CertificateManager.groovy +++ b/core/src/main/groovy/com/muwire/core/filecert/CertificateManager.groovy @@ -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) } }