찾기
내용으로 건너뛰기
추적
문서의 이전 판을 선택했습니다!
저장하면 이 자료로 새 판을 만듭니다.
미디어 파일
{{tag>tech ssl_on_ubuntu}} ======SSL on Ubuntu 8.10 Apache2====== Setting up SSL with Ubuntu 8.10 is a simple process but it does have a few gotchas that you need to be aware of. The setup has changed from 8.04. One issue is that the +CompatEnvVars is no longer used as it created a bug in 8.10 and you will have to enable the default-ssl site to get everything working. First, log on to your server Install Apache: sudo apt-get install apache2 Change to the /etc/apache2/mods-available directory and look at the available modules. Then change to the /etc/apache2/mods-enabled directory to see what modules are enabled: cd /etc/apache2/mods-available ls cd /etc/apache2/mods-enabled ls Now, install and enable SSL: sudo a2enmod ssl sudo /etc/init.d/apache2 force-reload Change to the default webserver directory, and create a simple web page: cd /var/www sudo vim index.html Add the following content: <html> <head> <title>Welcome to Your_Name’s Web Site</title> </head> <body> <p>This is the best web site in the whole wide world. </p> </body> </html> Save and exit. On your own local computer, open a tab or window for your web browser. For the URL, enter: http://IP_address_of_my_server You should be able to view your web page. Now, you’ll want to encrypt your site. Create the server encryption keys: cd /etc/apache2 sudo openssl genrsa -des3 -out server.key 1024 Use this set of keys to create a certificate request: sudo openssl req -new -key server.key -out server.csr When asked to input data, use your imagination to create something appropriate. Be sure to write down your passphrase. Use this request to create your self-signed certificate: sudo openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt Install the key and certificate: sudo cp server.crt /etc/ssl/certs/ sudo cp server.key /etc/ssl/private/ Open the “defaults” file for editing: cd /etc/apache2/sites-available sudo vim default-ssl This file is basically set up but you will want to uncomment the SSLOptions line and also change the SSLCertificate lines to reflect the location and name of your new information. SSLEngine on SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire SSLCertificateFile /etc/ssl/certs/server.crt SSLCertificateKeyFile /etc/ssl/private/server.key The port 443 is enabled when you use SSL so that is ready to go. Enable the default SSL site: sudo a2ensite default-ssl If you do not enable the default-ssl you will get this error: “ssl_error_rx_record_too_long apache” Restart Apache. sudo /etc/init.d/apache2 restart That should do it. * 출처: [[http://beginlinux.com/blog/2009/01/ssl-on-ubuntu-810-apache2/|]] ^ 누구나 수정하실 수 있습니다. 문법은 [[wiki:syntax]]참조하세요. |
2+1?
이 필드는 비어 있도록 유지하세요:
저장
미리 보기
취소
편집 요약
참고: 이 문서를 편집하면 내용은 다음 라이선스에 따라 배포하는 데 동의하는 것으로 간주합니다:
CC Attribution-Noncommercial-Share Alike 4.0 International
문서 도구
문서 보기
이전 판
연결문서
맨 위로
다크 모드로 보기
☀️
Toggle Menu
기술
너두 고쳐두 됩니다.
사이트 도구
최근 바뀜
미디어 관리자
사이트맵
사용자 도구
등록
로긴
최근 수정된 문서
misuse_topical5
노박
unique_items
dinner_bell
deputy_beagle
ratslayer
one_for_my_baby
alerio
power_fist
제거됨
fixer
climb_ev_ry_mountain
companion
[장비 분실]
crashed_vertibird
brotherhood_t-51b_power_armor
marco
i_forgot_to_remember_to_forget
cateye