auto renew letsencrypt ssl apache on linux

For auto renew SSL certificate I added following code in crontab. 0 0 */10 * * certbot renew >> /logs/certbot-cron.log 2>&1 Log of certbot renew command. [root@vps147238 ep]# certbot renew Saving debug log to /var/log/letsencrypt/letsencrypt.log Processing /etc/letsencrypt/renewal/purabtech.com.conf – – – – – – – – – – – – – – – – – – …

how to get free ssl certificate from letsencrypt

For getting a free SSL certificate you need SSH access to your server where you installed your application code. Then follow commands and articles which will guide you to install the necessary application. https://certbot.eff.org/lets-encrypt/centosrhel7-apache After installing certbot to your machine. you need to run following command to generate SSL certificate. certbot –apache certonly –cert-name purabtech.com …

Open 443 and 80 port on linux VM

If your apache or Nginx or tomcat server is configured properly still your site is not opening then check firewall and port is opened on the internet. Check the status of your firewall. use this command firewall-cmd –state running Check which zones are active [root@vps147238 purab]# firewall-cmd –get-active-zonespublicinterfaces: eth0 Open port 80 and port 443 …

Solved: letsencrypt certbot KeyError: ‘Directory field not found’

While running certbot command I got following error: [root@vps147238 letsencrypt]# certbot –apache certonly –cert-name purabtech.com -d purabtech.inSaving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator apache, Installer apacheEnter email address (used for urgent renewal and security notices) (Enter ‘c’ tocancel): purab@test.inStarting new HTTPS connection (1): acme-v02.api.letsencrypt.orgAn unexpected error occurred:KeyError: ‘Directory field not found’Please see the logfiles in …

CentOS Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org An unexpected error occurred:

While running certonly command I got following error:[root@vps147238 letsencrypt]# certbot –apache certonly –cert-name purabtech.com -d purabtech.inSaving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator apache, Installer apacheStarting new HTTPS connection (1): acme-v01.api.letsencrypt.orgAn unexpected error occurred:ConnectionError: (‘Connection aborted.’, gaierror(-2, ‘Name or service not known’))Please see the logfiles in /var/log/letsencrypt for more details. I solved this issue by doing …

install redis docker on windows 10 and run

I am using docker desktop on windows 10 machine. I used the following commands to run Redis and used them in my application for Redis connection. docker pull redisdocker run -p 6379:6379 –name some-redis -d redis Following the code will help you. If Redis running properly. you can go into Redis docker-machine. docker exec -it …

wsl issue code visual studio not working windows 10 ubuntu console

I installed docker desktop and ubuntu on windows 10. I followed the following tutorial:https://code.visualstudio.com/docs/remote/wsl-tutorial When I was trying to run on the ubuntu console. I got the following error: /usr/share/code/bin/../code: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory I did not install VS code through the installer …

Without changing, ownership of folder give read-write permission Linux

If you want to give read and write permission to a folder in Linux os (fedora, centos, ubuntu then use the following command: #setfacl -R -m u:YOUR_USERNAME:rwx FOLDER_NAME This command will be helpful for other Linux users to change files and folders.

create self signed certificate for website and use in linux

Within in 5 minutes you can can create self signed certificate on linux machine. First you need to open console and execute following command. Before executing following command first check openssl utility is installed on your linux machine. # openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mysitename.key -out mysitename.crt Then open your apache …

delete some days old files and folder linux command

Linux systems are always used as server. Many times we need to cleanup the server. I found nice solution for deleting older files and folders from server without any issue. For deleting files or folder you can use following command: rm -rf `find /home/purab/* -type d -mtime +90` Above command will find all files and …