Using an SSL certificate has become a necessity to enhance your website's security and provide your users with a secure browsing experience. In this article, we will explain step by step how to install an SSL certificate on a VPS/VDS server running on the Nginx web server. You will also find useful tips to improve your SEO strategy while performing these operations.
First, you need to connect to your VPS or VDS server via SSH. To do this, open your terminal application and enter the following command:
ssh root@sunucu_ip_adresi
Remember to replace sunucu_ip_adresi
with your server IP address.
Before installing the SSL certificate, it is important to set your server's hostname correctly. You can use the following command to determine the hostname:
hostnamectl set-hostname sunucu.eka.net.tr
Here, you should use your own domain name instead of sunucu.eka.net.tr
.
acme.sh
ScriptWe will use the acme.sh
script to create the SSL certificate. This script works with free certificate providers such as Let's Encrypt and ZeroSSL. First, download and install the script on your server:
cd /www/server/panel
curl https://get.acme.sh | sh
After the installation is complete, you may need to restart your terminal for the script to work:
source ~/.bashrc
socat
ToolsThe acme.sh
script requires the socat
tool when running in standalone mode. Therefore, you need to install the socat
tool:
For Debian/Ubuntu:
apt-get update
apt-get install socat -y
For CentOS/RHEL:
yum install socat -y
Nginx must not be running while creating the SSL certificate, because acme.sh
, running in standalone mode, uses port 80. Therefore, temporarily stop Nginx:
systemctl stop nginx
Create your SSL certificate using the acme.sh
script:
~/.acme.sh/acme.sh --issue -d sunucu.eka.net.tr --standalone
When the script successfully creates the certificate, you must move this certificate to the relevant directories.
Move the certificate and private key file you created to the directories that Nginx will use:
cp /root/.acme.sh/sunucu.eka.net.tr_ecc/fullchain.cer /www/server/panel/ssl/certificate.pem
cp /root/.acme.sh/sunucu.eka.net.tr_ecc/sunucu.eka.net.tr.key /www/server/panel/ssl/private.pem
After moving the certificate files, restart Nginx to activate the SSL certificate:
systemctl start nginx
Check whether the SSL certificate is working properly by going to https://sunucu.eka.net.tr:8888
in your browser.
The use of SSL certificates is extremely important for SEO. Search engines prefer websites with SSL certificates and give these sites higher rankings. If you do not yet have a VPS or VDS server, or if you want to upgrade your existing server, you can check out the Turkey Location VDS/VPS options. With its strong infrastructure and affordable prices, EkaSunucu offers hosting solutions suitable for your needs.
In this article, we explained step by step how to install an SSL certificate on the Nginx web server. While increasing the security of your server, you also strengthened your SEO strategy. By following these steps, you can maximize the security of your site and improve your ranking in search engines.
By following this guide, which explains how important a correct SSL installation is for SEO and the role of hosting choices in this process, you can satisfy both your users and search engines. You can visit our blog or contact us for more information about SSL certificate installation and SEO.
By following the steps we have given in this guide, you can successfully install the SSL certificate on your server and increase security. If you do not yet have a VPS or VDS server, meet EkaSunucu, which offers Turkey Location VDS/VPS services, and increase your site's performance immediately.
Web siteniz için uygun fiyatlı Ucuz Hosting Paketleri ile yüksek performanslı barındırma hizmeti sunuyoruz.
Dijital varlığınızı güçlendirmek için profesyonel Sosyal Medya Hesap Yönetimi hizmeti sağlıyoruz.
Görsellerinizi sıkıştırmak için kullanışlı PNG to WebP dönüştürücümüzü deneyin.
Resim boyutlarını küçültmek isteyenler için JPG to WebP aracı idealdir.
SEO uyumu için Robots.txt Oluşturucu aracımızı kullanabilirsiniz.
Htaccess Oluşturucu ile yönlendirme ve erişim ayarlarınızı kolayca yapın.
Kullanıcı deneyimini artırmak için özgün UI/UX Tasarım çözümleri sunuyoruz.
Hızlı ve güvenli kurulum için WordPress hizmetimizden faydalanın.
Sitenizi arama motorlarında yükseltmek için Google Optimizasyon hizmeti sunuyoruz.
Markanızı tanıtmak için Tanıtım Yazısı içerikleri üretiyoruz.
UGC ile içerik gücünüzü artırın: UGC İçerik.
Profesyonel Yazılım Kurulum hizmetleri sunuyoruz.
Kaliteli içerik arayanlara özel Hazır Makale & İçerik Satışları.
Sıra Bulucu ile arama motoru sıralamanızı takip edin.
Google Haritalara Kayıt ile konumunuzu haritada gösterin.
Alan adı otoritenizi öğrenin: DA PA Sorgula.
Dış bağlantılarınızı analiz edin: Dış Link Aracı.
Dahili link yapınızı inceleyin: İç Link Aracı.
Arama motoru başarınızı artırmak için SEO Danışmanlığı alın.
Organik trafiğinizi artırmak için SEO çözümleri geliştirin.
Özel çözümler için Mobil Uygulama geliştirme hizmeti sunuyoruz.
Markanız için Logo tasarlıyoruz.
İşinize özel Web Yazılım çözümleri sunuyoruz.
Kurumsal imajınızı yansıtan Kurumsal Web Tasarım hizmeti.
Süreçlerinizi hızlandırmak için Bot Program geliştiriyoruz.
Online satışlarınız için Sanal POS sistemleri sunuyoruz.
Entegrasyonlar için Pazaryeri ve Kargo Entegrasyonu.
Kullanıcı deneyimi testleri için Son Kullanıcı Testleri.
İçerik indirimi için TikTok Video İndir aracı.
Görsellerinizi kolayca küçültün: Resim Boyutlandırma.
Yararlı kod örnekleri için Site Kodları rehberine göz atın.
Kodları online inceleyin: HTML Viewer.
IP adresinizi öğrenmek için IP Adresim Nedir aracını kullanın.
Bağlantı hızınızı test etmek için Hız Testi.
DNS önbellek sorunları için DNS Cache Problemi sayfasını inceleyin.
DNS değişikliklerini görmek için DNS Önizleme aracı.
IDN dönüştürme için IDN Çevirme kullanın.
Sunuculara ping atmak için Ping Gönder özelliğini deneyin.
Web sitenizin yanıt süresini test etmek için Web Site Ping aracımızı kullanın.