###前提・実現したいこと
Postfix+Dovecot+MySQL+TSLの構成でクライアント証明書ベースでのDovecotのログイン認証を行いたいと考えております。クライアント証明書がないとDovecotメールサーバにログインさせないというようにしたいです。
メールサーバのクライアント証明書に対応しているCAやクライアント証明書の作り方を教えて下さい。
//Postfix+Dovecot+MySQLでのTLSログインは出来ております。
//Apacheのクライアント認証は俺俺証明書ですら出来てしまいますが、メールサーバのクライアント認証は難しく出来ておりません。
###発生している問題・エラーメッセージ
CA,サーバー証明書、中間証明書、クライアント証明書に少しでも不備があるとメールサーバのクライアント認証には失敗してしまうようです。
Thunderbirdのメッセージ
1Client didn't present valid SSL certificate
http://www.dovecot.org/list/dovecot/2011-June/059655.html
状況として上記とほぼ同じ状態です。
http://www.checktls.com/index.html
上記サイトでのTLSチェックは行っております。
###試したこと
下記参考サイトによるクライアント証明書は試しました。
Apacheのクライアント証明書ベースでの認証は出来ますが、メールサーバだと厳しいようです。
Postfix TLS サポート
http://www.postfix-jp.info/trans-2.2/jhtml/TLS_README.html
プライベート認証局の証明書、サーバー証明書、クライアント証明書の作成方法について
http://server-setting.info/centos/private-ca-cert.html
Postfixの証明書認証アレコレ
http://qiita.com/jem_3/items/23199dfcb8c1f8b2a3be
SSLサーバ証明書FAQ:ウェブサーバ以外の証明書設定方法
https://jp.globalsign.com/support/ssl/list.php?cat=ftp
http://safe-linux.homeip.net/mail/linux-ssl_smtp-05.html
opensslでオレオレ認証局を開局して証明書を発行する
https://hgotoh.jp/wiki/doku.php/documents/other/other-045
SSLサーバ証明書FAQ:ウェブサーバ以外の証明書設定方法
https://jp.globalsign.com/support/ssl/list.php?cat=ftp
http://safe-linux.homeip.net/mail/linux-ssl_smtp-05.html
Postfix TLS認証(証明書ベースの認証)
http://www.cory.jp/98/postfix.html
SSLクライアント証明書でユーザ認証 (nginx)
http://www.nslabs.jp/pki-client-certification-with-nginx.rhtml
Certificate-based auth with Dovecot + sendmail
http://strange.systems/certificate-based-auth-with-dovecot-sendmail/
クライアント証明書申請、インストール方法
http://www.iimc.kyoto-u.ac.jp/services/cert/client_cert/client%20certificate%20manual_20160609.pd
https://gato.intaa.net/freebsd/memo/postfix_ssl
http://www.checktls.com/index.html
###補足情報(言語/FW/ツール等のバージョンなど)
○Dovecot設定
# vi /etc/dovecot/conf.d/10-ssl.conf ssl_cert = </etc/mail/certs/cert.pem ssl_key = </etc/mail/certs/privkey.pem ssl_ca = </var/ssl/CA/cacert.pem ##クライアント証明書 ログイン時に認証強制 ssl_verify_client_cert = yes auth_ssl_require_client_cert=yes # service dovecot restart
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/09/24 07:17
2016/09/25 14:53