Wednesday, 26 February 2014

How to install and git openssl?


Need to generate Public and Private key?
Do some encryption?


First you need to install Openssl!!


  1. git clone https://github.com/openssl/openssl
  2. cd to the new directory created
    • view (vi) INSTALL (For instruction how to install)
  3. Basically command needed is:
    • ./config
    • make
    • make test
    • make install

If you encounter issue when installing sbsigntool in the next step that:
Probably you need to do the following as well:
  • sudo yum install openssl-devel-1.0.0i-1.fc17.i686
If got error on libcrypto not found:
Check using: pkg-config --libs libcrypto

  • Good Result: -lcrypto
  • Bad Result -
    Package libcrypto was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libcrypto.pc' to the PKG_CONFIG_PATH environment variable
    No package 'libcrypto' found
Solution:
  • Try CMD: locate libcrypto
  • Need to have: 
    • /usr/local/ssl/lib/libcrypto.a
    • /usr/local/ssl/lib/pkgconfig/libcrypto.pc
    • /usr/lib64/pkgconfig/libcrypto.pc
    • /usr/lib64/libcrypto.so
    • /usr/lib/libcrypto.so
     

No comments:

Post a Comment