From: Tomas Mraz Subject: Re: Wrong system clock vs X.509 date specifiers Date: Tue, 25 Sep 2012 20:39:07 +0200 Message-ID: <1348598347.22489.57.camel@vespa.frost.loc> References: <1348588977.22489.55.camel@vespa.frost.loc> <20120925163037.20ba3f3c@pyramind.ukuu.org.uk> <5555.1348531649@warthog.procyon.org.uk> <21845.1348585794@warthog.procyon.org.uk> <30071.1348587320@warthog.procyon.org.uk> <12475.1348594285@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-2" Content-Transfer-Encoding: 7bit Cc: Alan Cox , rusty@rustcorp.com.au, herbert@gondor.hengli.com.au, pjones@redhat.com, jwboyer@redhat.com, linux-crypto@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, keyrings@linux-nfs.org To: David Howells Return-path: Received: from mx1.redhat.com ([209.132.183.28]:10429 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751991Ab2IYSj3 (ORCPT ); Tue, 25 Sep 2012 14:39:29 -0400 In-Reply-To: <12475.1348594285@warthog.procyon.org.uk> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Tue, 2012-09-25 at 18:31 +0100, David Howells wrote: > Tomas Mraz wrote: > > > You can use openssl ca that allows to set arbitrary start date to > > generate selfsigned certs as well (-selfsign option). > > That seems to require some stuff I don't have installed: > > warthog>openssl ca -in signing_key.priv -extensions v3_ca -out newcert.pem > Using configuration from /etc/pki/tls/openssl.cnf > Error opening CA private key /etc/pki/CA/private/cakey.pem > 140244246955872:error:0200100D:system library:fopen:Permission denied:bss_file.c:398:fopen('/etc/pki/CA/private/cakey.pem','r') > 140244246955872:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400: > unable to load CA private key > unable to write 'random state' > > (the /etc/pki/CA/private/ dir is inaccessible if not root and doesn't in any > case contain cakey.pem). > > Do I need to start with all the CA stuff in the right places to use it? You can configure it to point to a different directories. But yes, you have to create a CA cert and so on. -- Tomas Mraz No matter how far down the wrong road you've gone, turn back. Turkish proverb