Author Topic: update openssl on directadmin ทำยังไงบ้าง ทำอะไร  (Read 6383 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
update openssl on directadmin ทำยังไงบ้าง ทำอะไร
« on: มิถุนายน 29, 2015, 10:26:23 PM »
ทำการ Download new version of openssl

#cd /usr/src
check latest version of openssl on https://www.openssl.org
#wget https://www.openssl.org/source/openssl-1.0.2d.tar.gz
#tar -xvzf openssl-1.0.2d.tar.gz
#cd openssl-1.0.2d

#./config --prefix=/usr no-threads shared
#make
#make test
#make install

After updating openSSL, we need to update DirectAdmin
#cd /usr/local/directadmin/custombuild
#./build clean
#./build update
#./build apache
#./build php d
#./build exim
#./build dovecot


check version openssl
#openssl version
OpenSSL 1.0.2d 9 Jul 2015


ในกรณีที่อัฟเกรด openssl แล้วทำการเชคตามพวกเว็บ check ssl => https://www.ssllabs.com/ssltest/
แล้วค่า configure ที่ทำการเปลี่ยนแล้วยังไม่อัฟเดท ตามที่ตั้งค่าไว้ เช่น disable TLS1.0 , SSLv2
SSLProtocol -SSLv2 -SSLv3 +TLSv1.1 +TLSv1.2
#/etc/init.d/httpd restart
แล้วค่าที่เชคก็ยัง ขึ้นว่ายังไม่ support TLSv1.1 , TLSv1.2 ให้ทำการ clear cache configure ของ da ด้วยครับผม

#cd /usr/local/directadmin/custombuild
#./build update
#mv configure/ap2/conf configure/ap2/conf_back
#./build rewrite_confs

#/etc/init.d/httpd restart
แล้วทำการเชคผ่านเว็บอีกรอบ ก็จะอัฟเดทเป็นค่า configure ใหม่อย่างถูกต้อง และ เรียบร้อยครับผม : )

ขอบพระคุณทีมงาน support team : บริษัท Packetlove IT Service and Consulting ครับ
« Last Edit: ตุลาคม 21, 2015, 11:31:16 PM by golfreeze »

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: update openssl on directadmin ทำยังไงบ้าง ทำอะไร
« Reply #1 on: ตุลาคม 21, 2015, 11:39:47 PM »
##upgrade apache 2.2.x -> 2.4.x on directadmin
cd /usr/local/directAdmin/custombuild
./build set apache_ver 2.4
./build update
./build clean
./build apache n
./build php n
service httpd restart

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: update openssl on directadmin ทำยังไงบ้าง ทำอะไร
« Reply #2 on: สิงหาคม 16, 2018, 08:25:43 PM »
###Directadmin could not start and return error like
error while loading shared libraries: libssl.so.10: cannot find
error while loading shared libraries: libcrypto.so.10: cannot find

ทำการ Download new version of openssl

#cd /usr/src
check latest version of openssl on https://www.openssl.org
#wget https://www.openssl.org/source/openssl-1.0.2p.tar.gz
#tar -xvzf openssl-1.0.2p.tar.gz
#cd openssl-1.0.2p

#./config --prefix=/usr no-threads shared
#make
#make test
#make install

cd /usr/lib64
ln -s libssl.so.1.0.0 libssl.so.10
ln -s libcrypto.so.1.0.0 libcrypto.so.10

/etc/init.d/directadmin restart