November 06, 2025

Migrate from Nginx to Caddy for SSL auto-renewal in Amazon AWS EC2

 Dear friends,

Today, we will see a simple migration with less configuration of SSL auto-renewal.

I was using Nginx for SSL auto-renewal using certbot. Every 90 days, the renewal code should run, I made one more service it.

I have come across Caddy, which does an auto-renewal of SSL automatically with certbot. Reducing efforts and making the system smooth.

Follow the steps below

Stop and disable the Nginx

sudo systemctl stop nginx

sudo systemctl disable nginx

Install the Caddy

In EC2, if you are running Amazon Linux, then execute the following to install Caddy.

    sudo yum -y install yum-plugin-copr

    sudo yum -y copr enable @caddy/caddy epel-8-$(arch)

    sudo yum -y install caddy

Edit and configure the Caddyfile

Usually, it will be in the path /etc/caddy/Caddyfile

sudo vi /etc/caddy/Caddyfile

I have only one server that is running locally. So, my configuration is easy

domain_name {

    reverse_proxy localhost:port

}

You can configure more with your existing Nginx sites-enabled reference.

Happy SSLing.

If you like the blog or want to comment, kindly reach out to psrdotcom@gmail.com


May 13, 2025

Indian Passport renewal process and documents

 Hi all,

Here is the updated process for renewing a passport for an adult and a child on the same day and time.


Appointment

  • Visit the India Passport Seva website
  • Click on "Register" if you don't have an account.
  • Click on "Login" if you already have an account.
  • After successful login, navigate to "Services".
  • Click on "Fresh Passport/Re-Issue of Passport"
  • Enter your existing passport number to pre-fill the data.
  • If it's a fresh passport or you want to manually enter the details, click on the "Skip for Now" link.
  • Choose the Passport Office
  • You should see the form below 
  • In the case of "Re-issue of Passport", you will have options to change/modify details in existing passport.
  • Check the appropriate items
  • When you check the "Change in Existing Personal Particulars", you will have options to update the following details.
  • After selecting the "Type of Application" and "Type of Passport Booklet"
  • Click on "Save and Next".
  • Post that you will be navigated tothe  next section as mentioned in the flow below.
  • Fill in the relevant details and submit the form.
  • After submitting the form, you will be able to upload the relevant documents that are available in the DigiLocker.
  • Select the center and date that you want to visit.
  • Note: It did not help me to smooth the process even after uploading the documents.


Visiting Center

  • Take all hard copies, Originals, and Xerox (2 sets)
    • Application form
    • Aadhaar Card (Full length)
    • Existing passport (Front 2 and back 2 Pages) Xerox (no print out with 100% page fill)
  • In case of a spouse's addition 
    • Marriage certificate original
  • For the kid application
    • Fill in "Annexure D"
    • Date of Birth Certificate
  • Counters
    • A Counter: Verification of the documents, scanning the documents, and taking a photo.
    • B Counter: Cross verification of the A counter form and documents.
    • C Counter: Originals will be verified.


Police Verification (Will be indicated in the status of the application after the center visit)

  • In a couple of days, the police will call and make sure you are available upon the visit at the address submitted in the passport application.
  • Submitted the application form that has been finalized during the center visit.
  • Original documents (Old passport(s) and address proof).
  • Details of the neighbour's & physical presence with a signature.
  • Applicant's signature and thumb along with a passport-size photo that will be stuck to the police filled application.

Please provide your feedback and comments on this blog or email me on psrdotcom@gmail.com



Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com