mirror of https://github.com/zlatinb/muwire
add timestamp to the filename of the certificate
parent
9181829e4a
commit
83ea1bed3e
|
@ -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) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue