> I am trying to figure out how to set expiration on a key upon generation as

This is not yet implemented. Should be a new parameter for
openpgp.key.generate function.

> well as finding the expiration time of an already created key.

See here:
http://openpgpjs.org/openpgpjs/doc/key.js.html#line453
http://openpgpjs.org/openpgpjs/doc/key.js.html#line819

Thomas


On Fri, Apr 4, 2014 at 9:19 AM, Daniel <[email protected]> wrote:
> Hello,
>
> I am trying to figure out how to set expiration on a key upon generation as
> well as finding the expiration time of an already created key.
>
> In looking at the mailvelope application itself as well the mailvelope code
> it appears that key expiration is not handled at all.  The same appears to
> be true of the whiteout code.
>
> Looking at the openpgp.js library it looks like there are constructs in
> place to evaluate if a key or signature is expired, but not to actually set
> the expiration.  It appears key expiration is set to zero by default, which
> means that the key never expires.
>
> Have I overlooked this function or is the ability to set a non-zero
> expiration absent?
>
> Thanks,
> Daniel
>
> _______________________________________________
>
> http://openpgpjs.org
> Subscribe/unsubscribe: http://list.openpgpjs.org
_______________________________________________

http://openpgpjs.org
Subscribe/unsubscribe: http://list.openpgpjs.org

Reply via email to