From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QtwtJ-00076X-EF for garchives@archives.gentoo.org; Thu, 18 Aug 2011 07:19:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0540021C276; Thu, 18 Aug 2011 07:19:36 +0000 (UTC) Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com [209.85.212.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 931FD21C257 for ; Thu, 18 Aug 2011 07:18:41 +0000 (UTC) Received: by vws13 with SMTP id 13so1612273vws.40 for ; Thu, 18 Aug 2011 00:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=2VObsLPP3yC/zXUGnEssBuCmgVW3+YE91/pEYvl0Zuo=; b=gbtN7j05YJI2lFlFwZdd7bO9/2/sjOi3EeyNwgkzyIDL5M99nds05I3f1qo5128Gjd HwTwG5eVrvMXE0jmk7XrnbxipBItLftXvHEmmCp+ZlMxrWGCaOM05T+L9LdZ5fBalFS0 a2C2J+Kk6y0MniJ7duelpLYSPrSQWTFPCAH3s= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.52.96.1 with SMTP id do1mr342840vdb.355.1313651921007; Thu, 18 Aug 2011 00:18:41 -0700 (PDT) Received: by 10.52.109.229 with HTTP; Thu, 18 Aug 2011 00:18:40 -0700 (PDT) In-Reply-To: References: <4E4C6EA7.2040600@gentoo.org> Date: Thu, 18 Aug 2011 03:18:40 -0400 Message-ID: Subject: Re: [gentoo-user] {OT} Can I retrieve my SSL key? From: Matthew Finkel To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=20cf307abcbd1c328004aac26c11 X-Archives-Salt: X-Archives-Hash: 22535a7891d044356894573407e615c7 --20cf307abcbd1c328004aac26c11 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Aug 17, 2011 at 10:24 PM, Michael Mol wrote: > On Wed, Aug 17, 2011 at 9:45 PM, Francisco Blas Izquierdo Riera (klondike= ) > wrote: > >> El 18/08/11 03:37, Grant escribi=F3: >> >>> I just accidentally overwrote my SSL certificate key. Is there any >> >>> way to retrieve it? Possibly some sort of export since I haven't >> >>> restarted apache2 yet? >> >> What, exactly, did you do that caused the overwrite? >> > I generated a new key but used the wrong filename so it overwrote a >> > key that has an associated certificate. >> Hopefully you can still ext3undelete it Worst case you have to parse the >> whole disk looking for a pattern with a custom C program (AHH the pain!) >> >> There are file carver tools I've not had any luck with them, though. > > > -- > :wq > As Francisco mentioned, depending on the filesystem you're using, there may exist an 'undelete' tool which came with the util package. If not, then assuming you have at least a few gigs of free space on your drive/partition the chances that the file was /actually/ overwritten are quite slim, so the cert is most likely still there. Any decent "data recovery" program should be able to find it (and just about every single other file you've ever deleted). I wish I could recommend one, but I thankfully have not needed on= e recently (hopefully this won't jinx it :) ). Good Luck! - Matt --20cf307abcbd1c328004aac26c11 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Wed, Aug 17, 2011 at 10:24 PM, Michael Mol <mikemol@gmail.com<= /a>> wrote:
On Wed, Aug 17= , 2011 at 9:45 PM, Francisco Blas Izquierdo Riera (klondike) <klondike@g= entoo.org> wrote:
El 18/08/11 03:37, Grant escribi=F3:
>>> I just accidentally overwrote my SSL cert= ificate key. =A0Is there any
>>> way to retrieve it? =A0Possibly some sort of export since I ha= ven't
>>> restarted apache2 yet?
>> What, exactly, did you do that caused the overwrite?
> I generated a new key but used the wrong filename so it overwrote a > key that has an associated certificate.
Hopefully you can still ext3undelete it Worst case you have to = parse the
whole disk looking for a pattern with a custom C program (AHH the pain!)
There are file carver tools I've not had= any luck with them, though.

<= div>
--
:wq


As Francisco mentioned= , depending on the filesystem you're using, there may exist an 'und= elete' tool which came with the util package. If not, then assuming you= have at least a few gigs of free space on your drive/partition the chances= that the file was /actually/ overwritten are quite slim, so the cert is mo= st likely still there. Any decent "data recovery" program should = be able to find it (and just about every single other file you've ever = deleted). I wish I could recommend one, but I thankfully have not needed on= e recently (hopefully this won't jinx it :) ).

Good Luck!

- Matt
--20cf307abcbd1c328004aac26c11--