Use server time as a default everywhere
This commit is contained in:
parent
fd6579114c
commit
c515ef8dc5
6 changed files with 47 additions and 25 deletions
5
key.go
5
key.go
|
|
@ -155,14 +155,11 @@ func (o *OpenPGP) generateKey(userName string, domain string, passphrase string,
|
|||
}
|
||||
|
||||
comments := ""
|
||||
timeNow := func() time.Time {
|
||||
return o.getNow()
|
||||
}
|
||||
|
||||
cfg := &packet.Config{
|
||||
Algorithm: packet.PubKeyAlgoRSA,
|
||||
RSABits: bits,
|
||||
Time: timeNow,
|
||||
Time: o.getTimeGenerator(),
|
||||
DefaultHash: crypto.SHA256,
|
||||
DefaultCipher: packet.CipherAES256,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue