Removed key password
This commit is contained in:
parent
91e96973ef
commit
eec66395c1
6 changed files with 6 additions and 3 deletions
|
|
@ -77,7 +77,7 @@ class User < Person
|
|||
def assign_key
|
||||
keys = GPGME.list_keys(nil, true)
|
||||
if keys.empty?
|
||||
#generate_key
|
||||
generate_key
|
||||
end
|
||||
self.key_fingerprint = GPGME.list_keys(nil, true).first.subkeys.first.fingerprint
|
||||
end
|
||||
|
|
@ -94,7 +94,6 @@ Name-Real: #{self.real_name}
|
|||
Name-Comment: #{self.url}
|
||||
Name-Email: #{self.email}
|
||||
Expire-Date: 0
|
||||
Passphrase: #{self.password}
|
||||
</GnupgKeyParms>"
|
||||
ctx.genkey(paramstring, nil, nil)
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -26,6 +26,11 @@ describe 'user encryption' do
|
|||
it 'should retrieve a user key' do
|
||||
@u.key.subkeys[0].fpr.should == @u.key_fingerprint
|
||||
end
|
||||
|
||||
describe 'key exchange on friending' do
|
||||
|
||||
end
|
||||
|
||||
describe 'signing and verifying' do
|
||||
|
||||
it 'should sign a message on create' do
|
||||
|
|
@ -41,7 +46,6 @@ describe 'user encryption' do
|
|||
|
||||
it 'should know if the signature is from the wrong person' do
|
||||
pending
|
||||
my_message = Factory.create(
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue