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.
|
''' Generate the main PGP key for our client. Should not be done often.
|
||||||
Uses own PGP home folder in the data/ directory. '''
|
Uses own PGP home folder in the data/ directory. '''
|
||||||
# Generate main pgp key
|
# 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')
|
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)
|
key = gpg.gen_key(input_data)
|
||||||
return
|
return
|
||||||
|
@ -147,4 +147,4 @@ class Core:
|
||||||
c.execute('INSERT into commands (command, data, date) values (?, ?, ?)', t)
|
c.execute('INSERT into commands (command, data, date) values (?, ?, ?)', t)
|
||||||
conn.commit()
|
conn.commit()
|
||||||
conn.close()
|
conn.close()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue