use homedir instead of gnupghome argument
parent
46b3fd01e5
commit
c1217b1d44
|
@ -37,7 +37,7 @@ class Core:
|
|||
''' Generate the main PGP key for our client. Should not be done often.
|
||||
Uses own PGP home folder in the data/ directory. '''
|
||||
# Generate main pgp key
|
||||
gpg = gnupg.GPG(gnupghome='data/pgp/')
|
||||
gpg = gnupg.GPG(homedir='data/pgp/')
|
||||
input_data = gpg.gen_key_input(key_type="RSA", key_length=2048, name_real='anon', name_comment='Onionr key', name_email='anon@onionr')
|
||||
key = gpg.gen_key(input_data)
|
||||
return
|
||||
|
@ -147,4 +147,4 @@ class Core:
|
|||
c.execute('INSERT into commands (command, data, date) values (?, ?, ?)', t)
|
||||
conn.commit()
|
||||
conn.close()
|
||||
return
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue