Skip to main content
Cloud & DevOps (AWS)

SSL-certificaat installeren op Amazon Linux 2023 met Apache | Stapsgewijze handleiding

Stapsgewijze handleiding voor het installeren van SSL-certificaten op Amazon Linux 2023 met Apache. Gratis Let's Encrypt-instelling voor HTTPS op je EC2-server.

2 min
Leestijd
309
Woorden
Gepubliceerd
Engr Mejba Ahmed

Geschreven door

Engr Mejba Ahmed

Artikel delen

SSL-certificaat installeren op Amazon Linux 2023 met Apache | Stapsgewijze handleiding

Het beveiligen van uw website met SSL (Secure Sockets Layer) is essentieel voor de bescherming van gebruikersgegevens, betere SEO-posities en meer vertrouwen bij bezoekers. Deze handleiding begeleidt u door het volledige installatieproces van een SSL-certificaat op een Amazon Linux 2023-instantie met Apache.

Wat u nodig heeft:

  • Amazon Linux 2023 EC2-instantie
  • Domeinnaam die naar uw EC2-instantie wijst
  • AWS CLI geïnstalleerd op uw lokale machine
  • SSH-toegang tot uw EC2-instantie

Stap 1: Verbinding maken met uw EC2-instantie

Log in op uw EC2-instantie via SSH:

ssh -i "your-key.pem" ec2-user@your-ec2-instance-public-ip

Stap 2: Uw server updaten en Apache installeren

sudo dnf update -y
sudo dnf install httpd -y
sudo systemctl start httpd
sudo systemctl enable httpd

Controleer of Apache actief is door het IP-adres van uw EC2-instantie in uw browser te openen:

http://your-ec2-instance-public-ip

Stap 3: Certbot voor SSL installeren

Certbot vereenvoudigt de installatie en vernieuwing van SSL-certificaten:

sudo dnf install epel-release -y
sudo dnf install certbot python3-certbot-apache -y

Stap 4: SSL-certificaat aanvragen en installeren

Vervang example.com door uw werkelijke domeinnaam:

sudo certbot --apache -d example.com -d www.example.com

Volg de interactieve instructies om de installatie te voltooien.


Stap 5: Uw SSL-certificaatinstallatie verifiëren

Bezoek uw website via HTTPS:

https://example.com

Er zou een slotpictogram moeten verschijnen, wat aangeeft dat het SSL-certificaat succesvol is geïnstalleerd.


Stap 6: Automatische vernieuwing van SSL-certificaten

Certbot kan certificaten automatisch vernieuwen:

Test de automatische vernieuwing:

sudo certbot renew --dry-run

Als dit slaagt, vernieuwt Certbot uw certificaten automatisch vóór de vervaldatum.


Stap 7: Firewall configureren (optioneel maar aanbevolen)

Als u firewalld gebruikt, sta HTTP- en HTTPS-verkeer toe:

sudo firewall-cmd --add-service=http --permanent
sudo firewall-cmd --add-service=https --permanent
sudo firewall-cmd --reload

Conclusie

Gefeliciteerd! U heeft met succes een SSL-certificaat geïnstalleerd op uw Amazon Linux 2023-server met Apache. Uw website is nu beveiligd, vertrouwd door browsers en beter gepositioneerd voor zoekmachineoptimalisatie.

Coffee cup

Vond u dit artikel leuk?

Uw steun helpt mij meer diepgaande technische content, open-source tools en gratis bronnen voor de ontwikkelaarsgemeenschap te maken.

Gerelateerde onderwerpen

Engr Mejba Ahmed

Engr Mejba Ahmed

Engr. Mejba Ahmed builds AI-powered applications and secure cloud systems for businesses worldwide. With 8+ years shipping production software in Laravel, Python, and AWS, he's helped companies automate workflows, reduce infrastructure costs, and scale without security headaches. He writes about practical AI integration, cloud architecture, and developer productivity.

Gerelateerde artikelen

Alles bekijken

Comments

Leave a Comment

Share a question or add to the discussion.

Comments are moderated before appearing.

Learning Resources

Expand Your Knowledge

Accelerate your growth with structured courses, verified certificates, interactive flashcards, and production-ready AI agent skills.

Sample Certificate of Completion

Sample certificate — complete any course to earn yours

Engr Mejba Ahmed

Engr Mejba Ahmed

AI assistant · trained on my work

👋

Hey there!

Quick Actions

WhatsApp Direct line to me

Chat on WhatsApp

+880 1723 741224 · Replies within the hour on working days

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

mejba.13@gmail.com

✓ Details sent! I'll get back to you shortly.

Powered by Claude

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support