From bfd8c95a5c216cdaf2826882a318c4af8e718418 Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Tue, 21 Feb 2017 11:17:27 +0100 Subject: [PATCH] remove writing serial number to file --- models/ssh.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/models/ssh.py b/models/ssh.py index dffdfa5..5734576 100644 --- a/models/ssh.py +++ b/models/ssh.py @@ -88,13 +88,6 @@ class SSHAuthority(Authority): '-t', self.key_algorithm, '-C', self.name]) - # write the serial file with a value of - # 0 for first certificate - with open(self.path + '.serial', 'w') as stream: - stream.write(str(0)) - - super(SSHAuthority, self).generate() - else: raise ValueError('A CA with the same id already exists')