Hello,
I use gpgsm and gpg2 concurrently. I can quickly and easily see whether
there are private keys in gnupghome/private-keys-v1.d/. But I cannot
easily see whether these keys belong to X.509 key pairs or to OpenPGP
key pairs.
For my application, I need to know:
a) What is the fastest way to detect whether I have a private X.509
key? I need a simple boolean answer: yes or no.
The response time of ? gpgsm --list-secret-key ? is .4 seconds, that
is far too long.
b) What is the fastest way to detect whether I have a private OpenPGP
key? I need a simple boolean answer: yes or no.
The response time of ? gpg2 --list-secret-key ? is .4 seconds, that
is far too long.
c) What is the fastest way to detect whether a private key in
gnupghome/private-keys-v1.d/ belongs to an X.509 key and/or to an
OpenPGP key? I need a simple answer: X.509-only, OpenPGP-only or
both.
The response time of ? gpgsm --list-secret-key '&'${filename%.key} ?
and ? gpg2 --with-keygrip --list-secret-key | grep ${filename%.key}
? is 1 second, that is far too long
(My application needs these responses very quickly without any visible
delay. There is no time to wait for startup of gpg-agent, dirmngr or
any other daemon first. Perhaps there is already any indicator in the
.key file?)
Best regards
--
Rainer Perske
Abteilung Systembetrieb und Leiter der Zertifizierungsstelle (WWUCA)
Zentrum f?r Informationsverarbeitung (Universit?tsrechenzentrum)
Westf?lische Wilhelms-Universit?t
Zentrum f?r Informationsverarbeitung
Rainer Perske
R?ntgenstra?e 7-13
48149 M?nster
Tel.: +49 251 83-31582
Fax.: +49 251 83-31555
E-Mail: rainer.perske@uni-muenster.de
WWW: https://www.uni-muenster.de/ZIV/Mitarbeiter/RainerPerske.shtml
B?ro: Raum 006, R?ntgenstra?e 11
Lageplan: http://wwwuv2.uni-muenster.de/uniplan/?action=spot&gebnr=7474
Zertifizierungsstelle der Universit?t M?nster (WWUCA):
Tel.: +49 251 83-31590
Fax.: +49 251 83-31555
E-Mail: ca@uni-muenster.de
WWW: https://www.uni-muenster.de/WWUCA/
Zentrum f?r Informationsverarbeitung (ZIV):
Tel.: +49 251 83-31600 (Mo-Fr 7:30-17:30 Uhr)
Fax.: +49 251 83-31555
E-Mail: ziv@uni-muenster.de
WWW: https://www.uni-muenster.de/ZIV/
I use gpgsm and gpg2 concurrently. I can quickly and easily see whether
there are private keys in gnupghome/private-keys-v1.d/. But I cannot
easily see whether these keys belong to X.509 key pairs or to OpenPGP
key pairs.
For my application, I need to know:
a) What is the fastest way to detect whether I have a private X.509
key? I need a simple boolean answer: yes or no.
The response time of ? gpgsm --list-secret-key ? is .4 seconds, that
is far too long.
b) What is the fastest way to detect whether I have a private OpenPGP
key? I need a simple boolean answer: yes or no.
The response time of ? gpg2 --list-secret-key ? is .4 seconds, that
is far too long.
c) What is the fastest way to detect whether a private key in
gnupghome/private-keys-v1.d/ belongs to an X.509 key and/or to an
OpenPGP key? I need a simple answer: X.509-only, OpenPGP-only or
both.
The response time of ? gpgsm --list-secret-key '&'${filename%.key} ?
and ? gpg2 --with-keygrip --list-secret-key | grep ${filename%.key}
? is 1 second, that is far too long
(My application needs these responses very quickly without any visible
delay. There is no time to wait for startup of gpg-agent, dirmngr or
any other daemon first. Perhaps there is already any indicator in the
.key file?)
Best regards
--
Rainer Perske
Abteilung Systembetrieb und Leiter der Zertifizierungsstelle (WWUCA)
Zentrum f?r Informationsverarbeitung (Universit?tsrechenzentrum)
Westf?lische Wilhelms-Universit?t
Zentrum f?r Informationsverarbeitung
Rainer Perske
R?ntgenstra?e 7-13
48149 M?nster
Tel.: +49 251 83-31582
Fax.: +49 251 83-31555
E-Mail: rainer.perske@uni-muenster.de
WWW: https://www.uni-muenster.de/ZIV/Mitarbeiter/RainerPerske.shtml
B?ro: Raum 006, R?ntgenstra?e 11
Lageplan: http://wwwuv2.uni-muenster.de/uniplan/?action=spot&gebnr=7474
Zertifizierungsstelle der Universit?t M?nster (WWUCA):
Tel.: +49 251 83-31590
Fax.: +49 251 83-31555
E-Mail: ca@uni-muenster.de
WWW: https://www.uni-muenster.de/WWUCA/
Zentrum f?r Informationsverarbeitung (ZIV):
Tel.: +49 251 83-31600 (Mo-Fr 7:30-17:30 Uhr)
Fax.: +49 251 83-31555
E-Mail: ziv@uni-muenster.de
WWW: https://www.uni-muenster.de/ZIV/