On Thursday, 9 June 2022 15:14:45 CEST, Beilharz, Michael wrote:
well, i use:
pkcs12 -in "cert.p12" -clcerts -nokeys -out cert.PEM" -passin pass:<pass>
pkcs12 -in "cert.p12" -nocerts -out tmpkey.PEM -passin
pass:<pass> -passout pass:<pass>
rsa -in tmpkey.PEM" -out key.PEM -passin pass:<pass>
to create the cert.pem and the key.pem from a RSA .P12
and this:
pkcs12 -in cert.p12 -out client.pem -passin pass:<passs> -nodes
ec -in client.pem -out key.pem -passin pass:<pass>
to create the cert.pem and the key.pem from a ECC .P12
can I use the pkey for both? RSA and ECC?
yes
-----Ursprüngliche Nachricht-----
Von: Hubert Kario <hkario@xxxxxxxxxx>
Gesendet: Donnerstag, 9. Juni 2022 14:59
An: Beilharz, Michael <MBeilharz@xxxxxxxxxx>
Cc: openssl-users@xxxxxxxxxxx
Betreff: Re: AW: How to figure out if .P12 is RSA or ECC crypted
On Thursday, 9 June 2022 14:54:48 CEST, Beilharz, Michael wrote:
Well, i have to convert the .P12 into .PEMs and there are different
steps with openssl.exe the convert a .P12 (RSA) or a
.P12 (ECC). The steps are clear and everything works fine, but instead
of offering two options ("Import .P12 (RSA)" and "Import
.P12 (ECC)") I would like to offer only one import option and the
import routine analyse the .P12 to decide RSA or ECC import routine.
I think the issue is that the steps you have use the `openssl
rsa` and `openssl ec` commands instead of the `openssl pkey`
command...
Regards
Michael
-----Ursprüngliche Nachricht-----
Von: openssl-users <openssl-users-bounces@xxxxxxxxxxx> Im Auftrag von
Viktor Dukhovni ...
--
Regards,
Hubert Kario
Principal Quality Engineer, RHEL Crypto team
Web: www.cz.redhat.com
Red Hat Czech s.r.o., Purkyňova 99/71, 612 45, Brno, Czech Republic
--
Regards,
Hubert Kario
Principal Quality Engineer, RHEL Crypto team
Web: www.cz.redhat.com
Red Hat Czech s.r.o., Purkyňova 99/71, 612 45, Brno, Czech Republic