Browse Source

remove writing serial number to file

master
Edoardo Putti 7 years ago
parent
commit
bfd8c95a5c
1 changed files with 0 additions and 7 deletions
  1. +0
    -7
      models/ssh.py

+ 0
- 7
models/ssh.py View File

@ -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')


Loading…
Cancel
Save