証明書の作成をします。 |
[root@ns1 log]# cd /etc/pki/tls/certs/ |
[root@ns1 certs]# openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/pki/tls/certs/vsftpd.pem -out /etc/pki/tls/certs/vsftpd.pem |
Generating a 2048 bit RSA private key |
........................................................................+++ |
.......................................................................+++ |
writing new private key to '/etc/pki/tls/certs/vsftpd.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) [XX]:JP ← 国 |
State or Province Name (full name) []:Tokyo ← 地域 |
Locality Name (eg, city) [Default City]:Tokyo ← 都市 |
Organization Name (eg, company) [Default Company Ltd]:hopu.company ← 組織名 |
Organizational Unit Name (eg, section) []:System ← 組織の部門名 |
Common Name (eg, your name or your server's hostname) []:hopu.dip.jp ← 応答サーバー名 |
Email Address []:root@hopu.dip.jp ← 管理者アドレス |
Common Nameには ftp.hopu.dip.jp などとつけたいところですが、ローカル内だとDNS設定で実現できますが、外部からだとieServerの設定ではAレコード登録ができないタイプなのでドメインのみにしています。 |
rootのみ読み取りできるようにします。 |
[root@ns1 certs]# chmod 400 vsftpd.pem |
Vsftpdの設定です。最終行に追記します。 |
[root@ns1 ~]# vi /etc/vsftpd/vsftpd.conf |
rsa_cert_file=/etc/pki/tls/certs/vsftpd.pem |
ssl_enable=YES |
force_local_logins_ssl=NO ←暗号化しなくても接続できるようにする場合の設定 |
force_local_data_ssl=NO ←暗号化しなくても接続できるようにする場合の設定 |
サービス再起動 |
[root@ns1 log]# systemctl restart vsftpd |
★CentOS7 まとめ
★Ubuntu14 まとめ
★Ubuntu12用無線アダプタ紹介
★Ubuntu12 まとめ
★Server 2008R2 まとめ
★SCCM2012R2 まとめ
★Windows10 アップグレード
★Windows7 まとめ
★Windows7 SSD まとめ
★Windows8 まとめ
★EaseUS Todo Backup Server
★Linux Destbision まとめ
★Linuxコマンド関連Index
★Zorin8.1まとめ
★Fedora17まとめ
★Fedora15まとめ
☆VB Script まとめ
★USB3.0で快適バックアップ
★リンク集・メール
・はじめての自宅サーバ構築 - Fedora/CentOS -
SCCM Backup 遠隔操作 VirtualBox FeliCaポート/パソリ ESXi
<%plugin_third_description>
<%plugin_third_content><%plugin_third_description2>