Re: [PATCH v2] Add ability to import PKCS12 keys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2020-03-13 at 12:31 +0100, Grant Williamson wrote:
> With this method I can create a wrapped private key and connect to our vpn.
> 
> However I still need to extract the certificates to connect.

Right. 

> With my original p12(not wrapped) I can connect to our vpn gateway
> without specifying the certificates.
> 
> I am wondering if there is a way to repack the tpm wrapped private key
> and certs into a new p12 file .
>
> i.e.
> create_tpm2_key -w private.pem private-key-tpm-wrapped.pem

Not into a PKCS#12 file but you can put the cert and the TPM-wrapped
key into the same PEM file.

$ cat private-key-tpm-wrapped.pem user_cart.crt > cert-and-key.pem

And perhaps append your ca_cert.crt if that is the one that issued your
user_cert and you want to include it on the wire.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
openconnect-devel mailing list
openconnect-devel@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/openconnect-devel

[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux