title: How to add expiry date when generating Bouncy Castle PGP key pair?
body: <p>I was following <a href="https://bouncycastle-pgp-cookbook.blogspot.com/" rel="nofollow noreferrer">https://bouncycastle-pgp-cookbook.blogspot.com/</a> to generate the PGP key pair. It worked well with pub and private key files generated. But when I look at the pub key, it does not have expiry date. I set key expiration time on PGPSignatureSubpacketGenerator. <code>signhashgen.setKeyExpirationTime(true, 864000);</code></p>