From the Firehose

When the sun comes up, you’d better be running.

Every morning in Africa, a gazelle wakes up, it knows it must outrun the fastest lion or it will be killed.

Every morning in Africa, a lion wakes up. It knows it must run faster than the slowest gazelle, or it will starve.

It doesn’t matter whether you’re the lion or a gazelle-when the sun comes up, you’d better be running.

FYI View


SSL Certificate in detail

SSL Certificate in detail

What is SSL (Secure Socket Layer) ?

SSL is also known as Transport Layer Security

PEM Format

The PEM format is the most common format that Certificate Authorities issue certificates in. PEM certificates usually have extentions such as .pem, .crt, .cer, and .key. They are Base64 encoded ASCII files and contain "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----" statements. Server certificates, intermediate certificates, and private keys can all be put into the PEM format.

PKCS#7/P7B Format

The PKCS#7 or P7B format is usually stored in Base64 ASCII format and has a file extention of .p7b or .p7c. P7B certificates contain "-----BEGIN PKCS7-----" and "-----END PKCS7-----"statements. A P7B file only contains certificates and chain certificates, not the private key. Several platforms support P7B files including Microsoft Windows and Java Tomcat.

PKCS#12/PFX Format

The PKCS#12 or PFX format is a binary format for storing the server certificate, any intermediate certificates, and the private key in one encryptable file. PFX files usually have extensions such as .pfx and .p12. PFX files are typically used on Windows machines to import and export certificates and private keys.

When converting a PFX file to PEM format, OpenSSL will put all the certificates and the private key into a single file. You will need to open the file in a text editor and copy each certificate and private key (including the BEGIN/END statments) to its own individual text file and save them as certificate.cer, CACert.cer, and privateKey.key respectively.

OpenSSL Commands to Convert SSL Certificates on Your Machine

It is highly recommended that you convert to and from .pfx files on your own machine using OpenSSL so you can keep the private key there. Use the following OpenSSL commands to convert SSL certificate to different formats on your own machine:

OpenSSL Convert PEM

Convert PEM to P7B

    openssl crl2pkcs7 -nocrl -certfile certificate.cer -out certificate.p7b -certfile CACert.cer

Convert PEM to PFX

    openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt

OpenSSL Convert P7B

Convert P7B to PEM

    openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer

Convert P7B to PFX

    openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer

    openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx -certfile CACert.cer

OpenSSL Convert PFX

Convert PFX to PEM

    openssl pkcs12 -in certificate.pfx -out certificate.cer -nodes
Happy work life rules

Happy work life rules

I have read some where these following rules to become more happier with work life.

  1. Trust no one but respect everyone.
  2. What happens in office, remain in office. Never take office gossips to home and vice versa.
  3. Enter office on time, leave on time. Your desktop is not helping to improve your health.
  4. Expect nothing. If somebody helps, feel thankful. If not, you will learn to know things on your own.!
  5. Never rush for a position. If you get promoted, congrats. If not, it doesn't matter. You will always be remembered for your knowledge and politeness, not for your designation.
  6. Never run behind office stuff. You have better things to do in life.
  7. Avoid taking everything on your ego. Your salary matters. You are being paid. Use your assets to get happiness.
  8. It doesn't matter how people treat you. Be humble. You are not everyone's cup of tea.
  9. In the end nothing matters except family, friends, home and inner peace.