> On 20 Feb 2020, at 08:43, Dirk-Willem van Gulik <di...@webweaving.org> wrote:
>> On 20 Feb 2020, at 08:38, Estefania <stef...@gmail.com> wrote:
>> I would like to ask if it is possible to create a p12 just with a .pem with
>> private key but not certificate.
> 
> Try
> 
>       openssl req -x509 -subj /CN=foo -keyout /dev/null -nodes | openssl 
> pkcs12 -out sample.p12 -export -ce rts
> 
> to make one containing just one cert without a private key.

Sorry - that should be

        openssl req -x509 -subj /CN=foo -keyout /dev/null -nodes | openssl 
pkcs12 -out x.p12 -export -nokeys

and

        openssl pkcs12 -in x.p12

to test.

Dw.

Reply via email to