ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Ivanov Maxim <ivanov@amos.ru>
To: "community@altlinux.ru" <community@altlinux.ru>
Subject: [Comm] Сентр Сертификации (openssl)
Date: Wed, 14 Apr 2004 14:49:51 +0400
Message-ID: <6984392453.20040414144951@amos.ru> (raw)

Здравствуйте, community.

Есть такая задача:
1. научиться генерировать сертификаты X.509 с целью ввести внутри
фирмы электронную подпись документов, пересылаемых по e-mail.
2. проверять подписи на сервере (пока не нужно).

Что делал:

1. Построение собственного CA с self-signed сертификатом:

Генерируем секретный ключ:
openssl genrsa -out CAkey.pem -rand randfile -des3 4096

Создаем self-signed сертификат:
openssl req -new -x509 -key CAkey.pem -out CAcert.pem -days 365

2. Далее необходимо сгенерировать пользовательские сертификаты такие,
чтобы они были подписаны ключом центра сертификации:
openssl genrsa -rand /var/log/messages:/boot/vmlinuz:/tmp/.rnd -out tmp.key 2048
Создаем запрос на сертификацию:
openssl req -new -key tmp.key -rand /var/log/messages:/boot/vmlinuz:/tmp/.rnd -out client.pem

До этого момента все ОК. Но вот дальше...

Далее надо бы подписать сертификат сертификатом сервера:
openssl x509 -req -in client.pem -CA CAcert.pem -CAkey CAkey.pem \
-CAsetserial -extensions -days 365 -out client.pem

Ан нет, ругается...
Где ошибка в строке, подскажите пожалуйста! Как правильно это должно
выглядеть?

-- 
С уважением,
 Ivanov                         



             reply	other threads:[~2004-04-14 10:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-14 10:49 Ivanov Maxim [this message]
2004-04-14 17:41 ` Egor S. Orlov

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=6984392453.20040414144951@amos.ru \
    --to=ivanov@amos.ru \
    --cc=community@altlinux.ru \
    /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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git