ข้ามไปยังเนื้อหาหลัก
โทรหาเรา
  • สำหรับลูกค้าใน กรุงเทพฯ โทร.02-105-6194 (ภาษาอังกฤษ) ตั้งแต่ เวลา 04:00 น. – 21.00 น. ระหว่างวันจันทร์ ถึง ศุกร์02-105-6194
  • สำหรับลูกค้าทั่วประเทศไทย โทร. 060-002-4085 (ภาษาอังกฤษ) ตั้งแต่ เวลา 04:00 น. – 21.00 น. ระหว่างวันจันทร์ ถึง ศุกร์060 002 4085
หมายเลขโทรศัพท์และชั่วโมงทำงาน
ศูนย์ช่วยเหลือ

สำรวจแหล่งข้อมูลความช่วยเหลือออนไลน์ของเรา

ช่วยเหลือ

SSL Certificates วิธีใช้

Manually install an SSL certificate on my Apache server (Ubuntu)


Not the right server type? Go back to the list of installation instructions.

After your certificate request is approved, you can download your certificate from the SSL manager and install it on your Apache server. If your server is running CentOS instead of Ubuntu, please see Manually install an SSL certificate on my Apache server (CentOS).

  1. Find the directory on your server where certificate and key files are stored, then upload your intermediate certificate (gd_bundle.crt or similar) and primary certificate (.crt file with randomized name) into that folder.
    • For security, you should make these files readable by root only.
  2. Find your Apache configuration file.
    • On default configurations, you can find a file named apache2.conf in the /etc/apache2 folder.
    • If you have configured your server differently, you may be able to find the file with the following command:
    • grep -i -r "SSLCertificateFile" /etc/apache2/
      • /etc/apache2/ may be replaced with the base directory of your Apache installation.
  3. Open this file with your favorite text editor.
  4. Inside your apache2.conf file, find the < VirtualHost > block.
  5. To have your site available on both secure (https) and non-secure (http) connections, make a copy of this block and paste it directly below the existing < VirtualHost > block.
  6. You can now customize this copy of the < VirtualHost > block for secure connections. Here is an example configuration:
  7. <VirtualHost xxx.xxx.x.x:443>
    	DocumentRoot /var/www/coolexample
    	ServerName coolexample.com www.coolexample.com
    		SSLEngine on
    		SSLCertificateFile /path/to/coolexample.crt
    		SSLCertificateKeyFile /path/to/privatekey.key
    		SSLCertificateChainFile /path/to/intermediate.crt
    </VirtualHost>
    • Don't forget the added 443 port at the end of your server IP.
    • DocumentRoot and ServerName should match your original < VirtualHost > block.
    • The remaining/path/to/... file locations can be replaced with your custom directory and file names.
  8. First, run the following command to check your Apache configuration file for errors:
  9. apache2ctl configtest
  10. Confirm that the test returns a Syntax OK response. If it does not, review your configuration files.
  11. Warning: The Apache service will not start again if your config files have syntax errors.

  12. After confirming a Syntax OK response, run the following command to restart Apache:
  13. apache2ctl restart

Note: As a courtesy, we provide information about how to use certain third-party products, but we do not endorse or directly support third-party products and we are not responsible for the functions or reliability of such products. Third-party marks and logos are registered trademarks of their respective owners. All rights reserved.

ชุมชนที่เกี่ยวข้อง

Mike_from_K's Avatar
How do I generate a private key for a wildcard SSL cert already in use on >2 servers?

2 การตอบกลับ

Last posted 10 months ago.

Jason917's Avatar
Install certificate to secure Ubuntu server / Apache 2

1 การตอบกลับ

Last posted over 2 years ago.

eslam's Avatar
ssl with Ubuntu running apache

1 การตอบกลับ

Last posted over 4 years ago.

Arthurcab's Avatar
unable to install ssl certificate on Xampp Apache server

1 การตอบกลับ

Last posted almost 2 years ago.

ไม่พบสิ่งที่คุณกำลังมองหาอยู่ใช่ไหม ค้นหาชุมชน