I want to check if key in a gpg file is expired without importing so I tried this :
$ gpg --list-options show-sig-expire my_key.gpg pub 2048R/8719FCE4 2016-09-28 home:stevenpusser OBS Project <home:email@example.com>
but it does not show want I need.
I've found this command but it does not exactly check if the gpg file is expired, it only shows the expiration date :
$ gpg --with-colons my_key.gpg pub:e:2048:1:0FAD31CA8719FCE4:2016-09-28:2018-12-07::-:home\x3astevenpusser OBS Project <home\firstname.lastname@example.org>:
I want to be able to automate the check of the expiration of the gpg key file.
Can you help?