From: "Konstantin A. Lepikhov" <lakostis@unsafe.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] openssl RSA
Date: Thu, 27 Nov 2008 16:59:16 +0300
Message-ID: <20081127135916.GA12649@lks.home> (raw)
In-Reply-To: <20081127153104.2a614158@batyrshin.kzn.ieml.ru>
[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]
Hi Timur!
Thursday 27, at 03:31:04 PM you wrote:
> Пытаюсь проверить приватный ключ CA:
>
> [root@nginx private]# openssl rsa -check -in cakey.pem
> Enter pass phrase for cakey.pem:
> unable to load Private Key
> 25940:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong
> tag:tasn_dec.c:1294:
> 25940:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested
> asn1 error:tasn_dec.c:380:Type=RSA
> 25940:error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1
> lib:d2i_pr.c:99:
> 25940:error:0907B00D:PEM routines:PEM_READ_BIO_PRIVATEKEY:ASN1
> lib:pem_pkey.c:125:
>
> Пароль, вроде бы правильный, т.к. при любом другом пароле выдает
> следующее сообщение:
>
> [root@nginx private]# openssl rsa -check -in cakey.pem
> Enter pass phrase for cakey.pem:
> unable to load Private Key
> 26006:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad
> decrypt:evp_enc.c:461:
> 26006:error:0906A065:PEM routines:PEM_do_header:bad
> decrypt:pem_lib.c:425:
>
> В чем может быть проблема?
а ключ точно rsa? Создан средствами openssl? Поскольку rsa(1) говорит что
BUGS
The command line password arguments don't currently work with NET
format.
--
WBR et al.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2008-11-27 13:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-27 12:31 Timur Batyrshin
2008-11-27 13:59 ` Konstantin A. Lepikhov [this message]
2008-11-27 14:34 ` Timur Batyrshin
2008-11-27 21:07 ` Konstantin A. Lepikhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081127135916.GA12649@lks.home \
--to=lakostis@unsafe.ru \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git