Advertisement
Justman10000

Manage OpenSSL

May 25th, 2023 (edited)
1,155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.74 KB | None | 0 0
  1. // To install
  2. # The version! Choose between 1.1.1w, 3.0.11, 3.1.3 and 3.2.0-alpha1
  3. # For maybe newer versions, see https://www.openssl.org/source
  4. version=3.2.0-alpha1
  5.  
  6. wget https://www.openssl.org/source/openssl-$version.tar.gz
  7. gunzip openssl-$version.tar.gz
  8. tar xvf openssl-$version.tar
  9. mv openssl-$version /usr/local/openssl
  10. rm -r openssl-$version.tar
  11.  
  12. cd /usr/local/openssl
  13. rm -r *.md *.txt
  14. ./Configure --prefix /usr/local/openssl --shared
  15. make install
  16. ldconfig /usr/local/lib64/
  17. cp libssl.so.3 /usr/lib
  18. cp libcrypto.so.3 /usr/lib
  19. ln -s /usr/local/openssl/apps/openssl /usr/bin
  20.  
  21. // To uninstall
  22. rm -r /usr/local/openssl
  23. rm -r /usr/bin/openssl
  24. rm -r /usr/local/bin/openssl
  25. rm -r /usr/lib/libssl.so.3
  26. rm -r /usr/lib/libcrypto.so.3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement