Friday, December 22, 2023

Plan your long weekends for 2024 - India

January - 26th to 28th long weekend due to Republic day.

February - Nothing just consume your leaves.

March - Take leave on 26th to 28th , for days off Holi.

April - Take leave on 8th, 10th, 12th to get 9 days off due to Ugadi, Eid, RamaNavami, Ambedkar jayanti.

May - Take leave on 24th to get 4 days off.

June - 15th to 17th long weekend due to Bakrid.

July - No chances

August - Take a leave on 16th to get 4 days off due to Independence day.

September - 14 to 16th long weekend due to Onam.

October - Take leave on 3rd and 4th for 4 days off due to Gandhi Jayanthi.

November - Take leave on 1st and 4th for 5 days off. 15th to 17th is long weekend.

December - Take leave on 26th and 27th for 5 days off due to Christmas.


Sunday, December 10, 2023

Extracting Private key and certificate from .PEM file using OpenSSL


OpenSSL, a popular open-source tool for working with cryptographic operations, can be used to extract the.pem and.key files from a.pfx (or.p12) file. 
The steps are as follows:


Extraction of.pem and.key from.pfx File:

Install OpenSSL as follows:

Check that your system has OpenSSL installed. You can get it from the OpenSSL website or install it with a package manager such as Homebrew on macOS or apt-get on Linux.



Conversion Method:

OpenSSL is used to extract the private key and certificate from the.pfx file.

Code:-
openssl pkcs12 -in yourfile.pfx -nocerts -out privatekey.key

Change yourfile.pfx to the name of privatekey.key file. The private key will be extracted and saved to privatekey.key using this command.


Code:-
openssl pkcs12 -in yourfile.pfx -clcerts -nokeys -out certificate.pem

This command will extract the certificate and save it to certificate.pem.


K@run@