« Return to Thread: Error when using an encrypted private key

Re: Error when using an encrypted private key

by skawaii :: Rate this Message:

| View in Thread

On Sat, Jan 14, 2012 at 3:51 AM, Nikos Mavrogiannopoulos <nmav@...> wrote:
On 01/13/2012 09:44 PM, Jason Cooper wrote:

> I'm using Linux Mint 12, which comes with GnuTLS 2.10.5. I'm working
> on configuring Git with https. On Linux Mint, Git is using GnuTLS
> under the hood, so I'm hoping this is the right place to get help.


Hellom
 GnuTLS is a library. How it is being used depends on
the application.

[...]

> What I'm really wondering is can I use encrypted keys with GnuTLS

> 2.10.5? If so, any hints on what else could be the problem? I'd
> really prefer to not have my private key stored in the clear.
 

How did you encrypt your private key? GnuTLS supports two types of
encrypted keys. PKCS #8 and PKCS #12 [0].

Ah, well that might be the problem. I do have a PKCS#12 file, but it's both my private key and public cert. I export my private key from that using OpenSSL (openssl pkcs12 -nocerts -in mycert.p12 -out userkey.pem), but it sounds like I need to export that as a PKCS#8 or PKCS#12 file.

Good to know. Thanks for the info.
 
I exported my private key as PKCS#8, but am still getting the same error. The only thing that is currently working for me is to use my unencrypted private key. Any ideas why this might be?

Again, I'm using Git 1.7.8.3 w/ GnuTLS 2.10.5 on Linux Mint 12.

Thanks for your help,
Jason

_______________________________________________
Help-gnutls mailing list
Help-gnutls@...
https://lists.gnu.org/mailman/listinfo/help-gnutls
Jason Cooper
Software Engineer
Northrop Grumman Intelligence Group (TASC)

 « Return to Thread: Error when using an encrypted private key