Generate Let’s Encrypt Wildcard SSL Certificate

CK CK 3788 
Created at
Updated at  
626 0 0

STEP 1. Install Let’s Encrypt Certbot Tool

Before you can create free wildcard certificates, you need certbot installed. I’m using an CentOS Server here. To install it, run the following commands:

sudo yum update
sudo yum -y install letsencrypt

 

STEP 2. Generate Let’s Encrypt Wildcard SSL Certificate

After installing Certbot, you can now start creating certificates.

For wildcard certificates Let’s Encrypt requires verification via DNS. This ensures that you are really authorized to create a certificate for this domain.

So, to create a wildcard certificate for the *.strcpy.com domain, we run the following commands:

sudo certbot certonly --manual --preferred-challenges=dns --email webmaster@avanet.com --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d strcpy.com -d *.strcpy.com
certonlyRequest or renew certificate without installing it
-manualObtaining certificates
-preferred-challenges=dnsUse DNS to authenticate as domain owner
-serverServer, which should be used for the generation of the certificates
-agree-tosAgree with the terms and conditions of the ACME server
-dDomain for which a certificate is to be created

After completing the above command, it is still necessary to verify the ownership of the domain. For this purpose, it is necessary to create a TXT record on the DNS servers.

After verification, the certificates are generated and can be downloaded from the following path:

/etc/letsencrypt/live/strcpy.com/

Later we need the files cert.pem and privkey.pem. The last one must be renamed from privkey.pem to privkey.key.

Tags CentOS Certbot DNS Verification Free SSL Lets Encrypt SSL Secure Website Web Security Wildcard SSL Facebook X
Comments 0
Similar posts
  1. Upgrading to GCC 4.9.4 in CentOS 7 requires installing a newer version manually
    583
  2. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    157
  3. Importing a wild card domain SSL certificate into AWS Certificate Manager
    10,348
  4. How to mount windows shared folder on Centos 6.8 - mount error 12 = Cannot allocate memory to the mount.cifs(8)
    912
  5. Configuring IP Address on Centos 6.7
    789
  6. Setup Apache+PHP+MySQL on Centos 6.7
    605
  7. Adding new cron job for automated processing on every 10 minutes on Centos 6.7
    1,330
  8. mcrypt missing when using phpMyAdmin on Centos 6.7
    548
  9. Set timezone and time on Centos 6.7
    540
  10. How to optimize MySQL automatically in CentOS Linux
    1,007
  1. Why SPF and DKIM Are Essential for Linux Email Servers?
    34
  2. Upgrading to GCC 4.9.4 in CentOS 7 requires installing a newer version manually
    583
  3. Force no caching in Apache by modifying the .htaccess file using appropriate headers
    2,673
  4. Beyond your conventional memory size with swap file instead of a partition
    1,142
  5. Gmail requires all senders to authenticate with either SPF or DKIM.
    681
  6. Bash script to install postfix and sasl for sending email
    1,195
  7. Guide for tmux shortcuts - split current pane, toggle pane
    1,300
  8. Tistory remote blogging example based in CLI & PHP
    2,719
  9. Preventing Unauthorized Image Crawling by Bots: A Clever Discovery and How to Address It
    1,727
  10. Network diagnostic tool for IPv4/IPv6 - traceroute/traceroute6
    1,918
  11. chmod by type (directory and file permission)
    734
  12. Check network port is open or not on CentOS 7
    1,188
  13. Change MySQL port number for security purpose
    815
  14. CentOS warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory on CentOS 7
    1,072
  15. Set up an SMTP server on CentOS 7
    726
  16. How to mount windows shared folder on Centos 6.8 - mount error 12 = Cannot allocate memory to the mount.cifs(8)
    912
  17. Configuring IP Address on Centos 6.7
    789
  18. Adding new cron job for automated processing on every 10 minutes on Centos 6.7
    1,330
  19. Set timezone and time on Centos 6.7
    540
  20. How to optimize MySQL automatically in CentOS Linux
    1,007
  21. File conversion to UTF in Schell Script
    1,023
  22. Server status checking by Shell Script
    1,516
  23. How can I increase MySQL max connections?
    460
Recently updated
  1. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    39
  2. Why SPF and DKIM Are Essential for Linux Email Servers?
    34
  3. How do I create animated background for Google Meet?
    20,611
  4. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    244
  5. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    94
  6. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    157
  7. Array of arguments passed to script in PHP
    90
  8. Invalid Auction Storms in Ad Tech
    98
  9. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    202
  10. The Two Clocks of Ad Server Architecture
    70
  11. Frequency Cap Architecture Overview
    514
  12. Collecting Proof-of-Play from 100,000 Screens
    146
  13. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    287
  14. What is RedisVL?
    109
  15. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    230
  16. TPU & GPU Cluster Management Tools
    243
  17. The Concept of Scaffolding in AI Agents
    233
  18. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    583
  19. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    258
  20. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    339
  21. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    202
  22. Machine Learning: Training vs. Ranking
    221
  23. The Continuous Learning Machine: Designing a Loop That Actually Turns
    222
  24. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    195
  25. Designing a Data Curation System Around a Vector Database
    220
  26. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    256
  27. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    656
  28. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    195
  29. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    216
  30. Understanding Data Lineage
    260