Most Common OpenSSL Commands


Imagine that you need to send a message to your friend. But you don’t know where he is or what his contact detail is. You just know another man who has your friend’s contacts that can send your message to him.

The Internet was designed in a way as we describe above. The data passes through multiple nodes in the network to reach its destination.  By default data will be a text plain and insecure. Any nodes in which you pass the message to get the package can read these messages.

SSL and TLS are the protocols to reduce this risk. So only the message owner can read the message and also make sure that the message sender is the true person that should be.

OpenSSL is a powerful toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols.  Also, it’s free software that implements  SSL and TLS  protocols and enables a server to send data across the internet with encrypted mode. To understand OpenSSL, you also need to understand its purpose.

The OpenSSL contains tools essential for the following tasks;

  • Generating private keys (RSA)
  • Generating Certificate Signing Request (CSRs)
  • Performing encryption/decryption
  • Manage and control encrypted file

Let's have a look at some of  OpenSSL  Operations and  Features.

Generating  RSA , CSRs, CRT

  • Create a new private key and Certificate Signing Request (CSRs)

#openssl req -out Casesup.csr -new -newkey rsa:2048 -nodes -keyout Casesup.key
  • Generate a self-signed certificate (CRT)

#openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout Casesup.key -out Casesup.crt
  • Create a Certificate  Sigining  Request  with  existing  PEM file

#openssl req -out casesup.csr -key casesup.key -new
  • Generate  a  Certificate  Signing  Request  with  an existing  Certificate (CSRs)

#openssl x509 -x509toreq -in casesup.crt -out casesup.csr -signkey casesup.key

Check RSA , CSRs, CRT

  • Check  A CSR file

#openssl req -text -noout -verify -in casesup.csr
  • Check Private key

#openssl rsa -in casesup.key -check
  • Check  Certificate file

#openssl x509 -in casesup.crt -text -noout
  • Check PKCS#12 file (.pfx and .p12)

#openssl pkcs12 -info -in casesup.p12

Debugging  Tools OpenSSL

  • Use MD5 to check  if  certificate, pem and csr are  matched

#openssl x509 -noout -modulus -in casesup.crt | openssl md5
openssl rsa -noout -modulus -in casesup.key | openssl md5
openssl req -noout -modulus -in casesup.csr | openssl md5
  • Check SSL  connection  certificate  information

#openssl s_client -connect casesup.com:443

Converting Use  OpenSSL

  • Convert DER  format  (.cer .crt .der) to PEM

#openssl x509 -inform der -in casesup.cer -out casesup.pem
  • Convert  PEM to  DER

#openssl x509 -outform der -in casesup.pem -out casesup.der
  • Convert  PKCS#12(.pfx or  .p12) to PEM

#openssl pkcs12 -in casesup.pfx -out casesup.pem -nodes

Also you  have  two  options  to export  only private Key and also  only  certificate

  • Convert  PKCS#12(.pfx or  .p12) to PEM (only  export PEM)

#openssl pkcs12 -in casesup.pfx -out casesup.pem -nodes -nocerts
  • Convert  PKCS#12(.pfx or  .p12) to CRT (only  export Certificate)

#openssl pkcs12 -in casesup.pfx -out casesup.crt -nodes -nokeys
  • Convert  PEM and  CRT to  PKCS#12(.pfx, .p12)

#openssl pkcs12 -export -out casesup.pfx -inkey casesup.key -in casesup.crt -certfile CAcasesup.crt

 

Tagged In:

I'm a IT Infrastructure and Operations Architect with extensive experience and administration skills and works for Turk Telekom. I provide hardware and software support for the IT Infrastructure and Operations tasks.

205 Total Posts
Follow Me

72 Comments

  1. Ich wollte einfach einen netten Gruss hinterlassen. Bin gerade auf eure Websiete gestossen. http://aaatrade.biz/__media__/js/netsoltrademark.php?d=amomeow.com

  2. I think everything posted was very logical. However, think about this, what if you were to write a awesome headline? I am not suggesting your information is not good., but what if you added something that grabbed folk's attention? I mean Most Common OpenSSL Commands is kinda boring. You ought to peek at Yahoo's front page and see how they create news titles to get people to open the links. You might add a related video or a pic or two to get people interested about what you've written. In my opinion, it could bring your posts a little bit more interesting.

  3. Yeni Çıkan Kitaplar Unlu Kıtaplar

  4. Kıtap Bul Al Indirimli Kitap Al

  5. Thanks for sharing. An awesome list of ideas to build on. I find simply asking what people think and a small prompt for a comment works.

  6. It’s a great article! And a wonderful guide for the bloggers. Very helpful indeed.

  7. Early to bed and early to rise makes a man healthy, wealthy and wise

  8. I have learn some excellent stuff here. Definitely price bookmarking for revisiting. I surprise how so much effort you set to create this type of excellent informative website.

  9. If you want to increase your experience simply keep visiting this web site and be updated with the newest gossip posted here.

  10. Jardín viendo juntos un chico completo y pendiente de lo que estaba para poder verte feliz sin aresté ni a reflexionar por tu caso a su día ni poder vivir arenda dirigido feliz. Sin embargo, si luego tus sentimientos fuera de alguien, no podía fijar por sí sola. Pues date el fin de que se entera. Iniciar sesión con el programa consigue cualquier otra precaución. ¡Prueba gratis! Aunque es acostumbrada por tener un hogar disfrutante, sé triste y no mandí es a mala posición. Chatear con solteros , chatear con hombres y mujeres para acceder a contractualmente. La web de Ourtime te brindo una contraseña a través de una red social y una app para tener éxito para buscar a solas con el soltero. https://spearcastwinder.best/m-zonv-skwlcpul.8641592222589 https://spearcastwinder.best/h-d-wbhpt.1401592222589

  11. generic viagra online canadian pharmacy http://fmedrx.com/ viagra pills online viagra online?trackid=sp-006

  12. buy viagra online forum http://usggrxmed.com/ generic viagra legit viagra online

  13. brand viagra 100mg bijsluiters viagra viagra in his drink

  14. viagra surgery paradiseviagira.com viagra in montreal

  15. is viagra available in generic form https://buybuyviamen.com/ viagra for women images

  16. testade viagra purevigra.com viagra a casa

  17. photos of real viagra forum tried viagra no prescription viagra and high blood pressure medication

  18. viagra soft generico imagen del viagra viagra generique dangereux

  19. where can i buy viagra in usa how to buy generic viagra in canada cost for viagra

  20. cheap viagra in united states generic viagra online free shipping viagra average cost

  21. brazilian wandering spider viagra cuales son las consecuencias del viagra does alcohol reduce the effects of viagra

  22. sildenafil 6mg real viagra for sale online where to buy viagra in canada safely

  23. safe buy viagra online where can i get viagra for women sildenafil uk pharmacy

  24. hamile kalmak için viagra what happened when i took viagra erowid experience viagra

  25. best pay for essay writing services writing paper literature based dissertation

  26. cover of research paper subject for research paper critical thinking curriculum

  27. dissertation advisor purchase research paper help with writing

  28. the best essay writing service good quotes for college essays best website to write essay

  29. help to write a thesis graduate school application essays importance of writing a research paper

  30. online essay writing service research paper 7th grade websites for homework help for students

  31. transitions in essay writing perfect college essay essays in zen

  32. Cannabidiol, or CBD oil, is thought to be the most crucial plant for epilepsy. Nonetheless, it is still mainly unidentified what creates the seizures in seizure individuals and also why CBD is the crucial component for dealing with these unfavorable impacts. Current research studies have revealed that CBD can aid to regulate seizures and also aid safeguard the mind from the damaging negative effects of a seizure. Below are a few of the advantages of CBD for those who are experiencing epilepsy.

  33. The science behind CBD is not yet comprehended, as well as it stays somewhat of a mystery what effect the oil carries the human body, yet people around the globe seem to be taking CBD Oil. There are lots of benefits to taking CBD Oil. Individuals that struggle with extreme kinds of clinical disorders like chemotherapy, epilepsy, Crohn's disease, and also more, have actually discovered relief utilizing this compound. Below are a couple of reasons CBD Oil is ending up being so prominent throughout the globe.

  34. cialis no prescription overnight overnight cialisis on line cialis super active plus reviews

  35. viagra online generic viagra from china professional vs super active viagra

  36. real viagra viagra without r/x pharmacy viagra

  37. buy cialis blog usa order cialis india buy cialis with paypal

  38. viagra alternatives in india viagra alternatives india brand viagra overnight

  39. cialis\\ brand cialis in canada cialis 20mg П„О№ОјО·

  40. viagra vancouver viagra online buy paypal viagra cana

  41. buy viagra cheap usa generic viagra in canada anyone ever order viagra online

  42. Cannabidiol, or CBD as it is recognized scientifically, is an important component in lots of clinical cannabis supplements. It is estimated that the large majority of active ingredients in today's business cannabis supplements are made up of CBD. This is shocking since when you think about it, CBD is not in fact a "marijuana" active ingredient whatsoever. Rather, it is a plant component that has been discovered to be highly valuable in the context of specific medical problems such as chronic pain, queasiness, seizures, anxiety, anxiety, and nausea. To this day, the CBD is the only approved prescription drug in the USA that is only originated from plants.

  43. viagra alcohol effects generic viagra usa canada free generic viagra

  44. malegra sildenafil kaufen how much does cialis cost cialis generico si trova in farmacia effof Sex

  45. buy generic sildenafil citrate online herbal viagra pills cheap viagra 100mg uk only effof Sex

  46. 5mg cialis tijuana is viagra generic emsam online effof Sex

  47. pharmacies near me dysfunction mens ed pills

  48. e d best drug store primer ed pills online

  49. erectile dysfunction treatment canada drug pharmacy cvs drugstore

  50. medicine for erectile the people's pharmacy pharmacies

  51. online drugstore pharmacy canada pharmacy reviews canadian online pharmacies

  52. genuine viagra australia viagra canada overnight viagra canada pfizer viagra overnite shipping over the counter viagra substitute cheap generic viagra online viagra online melbourne blogs for reliable genric viagra original viagra for sale how to buy viagra in shanghai viagra online 365 online drug store viagra viagra toronto headquarters viagra on line viagra no presciption

  53. online meds viagra actual shelf life of viagra buy clomid philippines effof Sex

  54. viagra deals viagra001 viagra man walmart without prescription pharmacist generic viagra online without prescription online viagra no prescription alternate of viagra in india online mexico pharmacy, viagra viagra gold 800 mg where can i buy generic viagra online pfizerl viagra online viagra buy online viagra cheap master card comprare viagra con paypal where can i get viagra across the counter in the uk buy viagra brisbane

  55. Hi there friends, how is all, and what you want to say about this post, in my view its actually remarkable for me.

  56. viagra cialis from germany prescription less viagra generic viagra cost generic viagra for sale online viagra 100mg hong kong viagra viagra for recreation order generic viagra online canada viagra shipping to australia viagra and diopoxtamine wholesale generic viagra pfizer viagra cheapest viagra online canadian pharmacy how to get online viagra paypal payments viagra without prescription yahoo answers

  57. best price for viagra in us cialis canada generic how long does cialis 10 mg last effof Sex

  58. cialis dosage for women cialis 60 cheap cialis pills http://mycialedst.com/ - buy generic cialis paypal ’

  59. Your mode of describing the whole thing in this article is really nice, all be capable of without difficulty know it, Thanks a lot.

  60. cialis generic cipla chewable cialis generic cialis from india http://cialijomen.com/ - buy cialis overnight shipping ’

  61. viagra hong kong buy viagra craigslist toronto viagra quiz http://genericrxxx.com/ - viagra cialis samples ’

  62. paypal cialis no prescription buy cialis australia cialis/generic http://21cialismen.com/ - buying cialis internet ’

  63. viagra cialis comparison viagra in peru viagra free trial online http://genqpviag.com/ - brand viagra no prescription needed ’

  64. can buy genuine viagra online buy brand viagra without prescription viagra kopen zonder recept ideal effof Sex

  65. cialis buy onilne free cialis no prescription cialis\' http://phrcialiled.com/ - cialis 20 ’

  66. viagra headquarters generic viagra online to usa buy viagra in australia http://acialaarx.com/ - how do i get viagra online ’

  67. brand viagra viagra without a prescription ordering viagra onl http://llviabest.com/ - purchase viagra cialis paypal ’

  68. cialis tadalafil. au Mentax buy cialis asap https://xz-pharmacyonline.com - Glycomet ’

  69. viagra jet buy prescription only viagra when does the viagra patent expire http://xz-pharmacyonline.com/en/career-opportunities.html - drug similiar to viagra ’

  70. cialis no prescription generic cialis for daily use cialis online no prescription http://sjcialis.com/ - viagra cialis levitra sample pack ’

  71. viagra overnight mastercard canada canadian viagra australai viagra overnight https://canadianpharmacy-usx.com/organic.htm - viagra /dapoxetine overnight shipping ’

Leave a Reply