ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Roman Lesnichenko <sysadmins@avangard.dn.ua>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] Сертификаты в арк сервер 5
Date: Sun, 17 Jan 2010 12:12:51 +0200
Message-ID: <4B52E2A3.8040506@avangard.dn.ua> (raw)
In-Reply-To: <4B52D0DE.8040003@mail.ru>

17.01.2010 10:57, Vladimir Karpinsky пишет:
> Здравствуйте!
>
> Меняю имя сервера, в сертификатах, перечисленных в ЦУСе ->
> удостоверяющий центр естественно значится ещё старое имя. Нашёл внятную
> статью о генерации сертификатов LDAP
> (http://www.altlinux.org/OpenLDAP/TLS#.D0.9D.D0.B0.D1.81.D1.82.D1.80.D0.BE.D0.B9.D0.BA.D0.B0_slap),
> а, вот про то, как сгенерировать новые сертификаты postfix, dovecot и
> т.д., никак ничего нагуглить могу. Где про это можно почитать?
>
также они генерятся.

Настроим TLS/SSL

Код:


     $>
     openssl req -new -x509 -days 3650 -nodes -out 
/etc/ssl/certs/dovecot.pem \
     -keyout /etc/ssl/private/dovecot.pem

Ответьте на несколько вопросов и сертификат будет создан, не забудьте 
указать правльно все параметры вместо примеров привеленных ниже

Код:


     Generating a 1024 bit RSA private key
     .........++++++
     ............................++++++
     writing new private key to '/etc/ssl/certs/dovecot.pem'
     -----
     You are about to be asked to enter information that will be 
incorporated
     into your certificate request.
     What you are about to enter is what is called a Distinguished Name 
or a DN.
     There are quite a few fields but you can leave some blank
     For some fields there will be a default value,
     If you enter '.', the field will be left blank.
     -----
     Country Name (2 letter code) [AU]:RU
     State or Province Name (full name) [Some-State]:Russia
     Locality Name (eg, city) []:Russia
     Organization Name (eg, company) [Internet Widgits Pty Ltd]:example.com
     Organizational Unit Name (eg, section) []:
     Common Name (eg, YOUR name) []:mail.example.com
     Email Address []:postmaster@example.com

Выставим права доступа на файл

Код:


     $>
     chmod o= /etc/ssl/private/dovecot.pem

Создадим еще один сертификат по аналогии с предыдущим

Код:


     $>
     openssl req -new -x509 -days 3650 -nodes -out 
/etc/ssl/certs/postfix.pem \
     -keyout /etc/ssl/private/postfix.pem

Сменим права доступа

Код:


     chmod o= /etc/ssl/private/postfix.pem

Внесите изменения в конфиг Postfix'a

-- 
With best wishes, Roman.


  reply	other threads:[~2010-01-17 10:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-17  8:57 Vladimir Karpinsky
2010-01-17 10:12 ` Roman Lesnichenko [this message]
2010-01-17 12:10   ` Vladimir Karpinsky

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=4B52E2A3.8040506@avangard.dn.ua \
    --to=sysadmins@avangard.dn.ua \
    --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