Linux/Unix

Creating keystore.p12 from letsencrypt certificate for spring boot projects:

Frameworks, Linux/Unix, Nginx
Creating keystore.p12 from letsencrypt certificate for spring boot projects: Step 1: Stop your server If your server is nginx then use the below command to stop the server. sudo service nginx stop   Step 2: Generating new letsencrypt certificate This is to create the new letsencrypt certificate, if you already have one certificate then skip this step. ./certbot-auto certonly -a standalone \ -d ngdeveloper.com -d www.ngdeveloper.com -d admin.ngdeveloper.com here -d takes all this domains for this certificates, meaning the same certificate can be used for ngdeveloper.com/www.ngdeveloper.com and admin.ngdeveloper.com domains and subdomains. Step 3: Converting letsencrypt to keystore.p12 go to /etc/letsencrypt/live/YOUR-CERTIFICATE-FOLDER/ sudo openssl pkcs12 -export -in full...
How to renew letsencrypt ssl certificate in cent os aws ec2 ?

How to renew letsencrypt ssl certificate in cent os aws ec2 ?

Linux/Unix, Nginx
How to renew letsencrypt ssl certificate in cent os aws ec2 ? Please go to the folder where you already installed letsencrypt (first time), path may be, /etc/letsencrypt in my case. Inside that You can find a file called letsencrypt-auto.   Run the below command inside letsencrypt-auto folder: ./letsencrypt-auto renew     Could not find letsencrypt-auto folder ? In my case it is found inĀ /letsencrypt/letsencrypt path   You can also use this below find command to search letsencrypt folder: find / -name "letsencrypt" here / tells to search from the main directory with the name "letsencrypt", you will get the search results something like this if it is found in your system, /letsencrypt /letsencrypt/letsencrypt /var/lib/letsencrypt /var
Useful Linux Commands for Beginners

Useful Linux Commands for Beginners

Linux/Unix
Useful Linux Commands for Beginners: 1. Command to get the RAM usage details free -h (use -h to get the details in MB/GB, else you will get the details in KB, which is quiet difficult to calculate and understand) To get the RAM usage details in MB, free -m in GB, free -g 2. Command to get the Disk usage details du -h 3. Command to get the Disk usage of particular directory sudo du /temp -h --max-depth=2 | sort -k2 here temp is the directory, if you want to see for all the directories then use this command, du $dir -hk --max-depth=2 | sort -k2 4. Command to get the Disk free details df -h 5. Command to clear the console clear 6. How to Sort the processes by memory usage ? ps aux --sort -rss 7. How to lists the processes running on particular port? sudo lsof -i :5000 This command will lists ...