Apache Uncategorized

Verifying the .crt and .key

Verifying the .crt and .key

Everybody had that panic moment when apache refusing to start saying ‘private key doesn’t match while installing SSL certificate.

Here is how to check whether the .crt and .key you have is matching or not.

      #openssl x509 -noout -modulus -in leosimon.crt | openssl md5
         (stdin)= 038475df33aeb7c2bb7645214b420c09

     #openssl rsa -noout -modulus -in leosimon.key | openssl md5
        (stdin)= 038475df33aeb7c2bb7645214b420c09

note: replace the .crt and .key filenames

If both the outputs display the same information then they are matching ones and you are all set to proceed with install SSL.

Related Articles

  • Functionality of the file reading commands

    While learning the how to navigate through directories and systems through terminals and command lines,one thing is certain, your ability to located  exactly your looking for is essential. As we...

    What is a LAMP Stack? “LAMP stack is a popular open source web platform commonly used to run dynamic web sites and servers. It includes Linux, Apache, MySQL, and PHP/Python/Perl...
  • Intro to JQuery, Part I

    Introduction Before we begin, it’s important to note that this article assumes basic knowledge of HTML, CSS, and Javascript. If you haven’t already, it may be beneficial to review some...
  • Lost Dynamic Linker Configuration on FreeBSD

    Troubleshooting Dynamic Linker In this article we will go over how you can determine if your operating system has lost its current ELF cache. In my example I will be...