Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and configure the new version of OpenSSL without uninstalling the existing OpenSSL+Apache

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to install and configure the new version of the source code without uninstalling the existing OpenSSL". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to install and configure the new version of OpenSSL+Apache without uninstalling the existing OpenSSL".

Recently there was a problem with the need to install OpenSSL1.0.1c, but both Ubuntu10.04 and 11.04 only support version 0.9.8 of the OpenSSL package. I wanted to uninstall OpenSSL before installing the new version. I introduced the 12.04 source on Ubuntu11.04, directly Upgrade the old version of OpenSSL, and installed several new versions of the dependency package. As a result, something unexpected happened and my virtualbox virtual machine software could not run, prompting an error, (failed to create virtualbox object!) I can't handle life or death. The guess is that there was a failure after upgrading some dependent libraries, so I was extremely disappointed with the precompiled software package.

Having nothing to do today, I decided to try to compile OpenSSL with source code and work with Apache anyway. After referring to some articles on the Internet, I began to practice.

The first step is to compile OpenSSL, which is very simple.

. / config prefix=/usr/local/openssl & & make install

I originally wanted to uninstall the old version of OpenSSL, but then I gave up because:

Sudo apt-get remove openssl [sudo] password for * *: Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libqimageblitz4 ijsgutenprint libotr2 language-pack-kde-en quassel-data libvncserver0 amarok-common libaccess-bridge-java-jni libflac++6 language-pack-kde-zh-hans libaccess-bridge-java libplasma-geolocation-interface4 language-pack-kde-en-base plasma-widget-kimpanel-backend-ibus k3b-data libqtscript4-core python-qt4-dbus libqtscript4-gui libqtscript4-uitools libindicate-qt0 libpoppler-qt4-3 libzip1 openoffice.org-l10n-zh-cn libqtscript4-sql ksysguardd libqtscript4-xml openoffice.org -l10n-en-gb libqca2-plugin-ossl libepub0 libtag-extras1 liblastfm0 libqtscript4-network language-pack-kde-zh-hans-base libmsn0.3 Use 'apt-get autoremove' toremove them. The following packages will be REMOVED: akonadi-server akregator amarok amarok-utils apport-kde apt-transport-https apturl apturl-kde ark bluez-cups ca-certificates ca-certificates-java couchdb-bin cups cups-driver-gutenprint default-jre default-jre-headless desktopcouch dolphin dragonplayer evolution-couchdb foo2zjs foomatic-db foomatic-db-engine foomatic-db-gutenprint freespacenotifier gdebi-kde ghostscript-cups gnupg-curl gwenview gwibber gwibber-service hpijs-ppds hplip icedtea-6-jre-cacao icedtea-netx install-package jockey-kde k3b kaddressbook kamera kate kbluetooth kcalc kcm-gtk Kcm-touchpad kde-l10n-engb kde-l10n-zhcn kde-window-manager kde-zeroconf kdebase-bin kdebase-runtime kdebase-workspace kdebase-workspace-bin kdebase-workspace-data kdebase-workspace-kgreet-plugins kdegraphics-strigi-plugins kdelibs-bin kdelibs5 kdemultimedia-kio-plugins kdepasswd kdepim-groupware kdepim-kresources kdepim-runtime kdepim-strigi-plugins kdepim-wizards kdepimlibs5 kdesudo kdm kerneloops-daemon kfind khelpcenter4 klipper kmag kmail kmix kmousetool knm-runtime knotes konqueror konqueror-nsplugins konsole kontact kopete kopete-message-indicator korganizer kpackagekit kppp krdc krfb ksnapshot ksysguard ksystemlog ktimetracker kubuntu-debug -installer kubuntu-desktop kubuntu-konqueror-shortcuts kubuntu-notification-helper kvkbd kwalletmanager language-selector-qt libakonadiprivate1 libcurl3 libcurl3-gnutls libk3b6 libk3b6-extracodecs libkcddb4 libkdcraw8 libkdecorations4 libkdepim4 libkexiv2-8 libkfontinst4 libkipi7 libkleo4 libkonq5 libkonqsidebarplugin4 libkopete4 libkpgp4 libkscreensaver5 libksgrd4 libksieve4 libksignalplotter4 libkwineffects1 libkworkspace4 libmimelib4 libokularcore1 libplasma-applet-system-monitor4 libplasma3 libplasmaclock4 libplasmagenericshell4 libprocesscore4 libprocessui4 libraptor1 librasqal2 librdf0 libsolidcontrol4 libsoprano4 libtaskmanager4 libweather-ion4 network-manager-kde okular okular-extra-backends openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib openoffice.org-base-core openoffice.org-calc openoffice.org- Core openoffice.org-draw openoffice.org-emailmerge openoffice.org-gnome openoffice.org-gtk openoffice.org-help-en-gb openoffice.org-help-en-us openoffice.org-help-zh-cn openoffice.org-impress openoffice.org-kde openoffice.org-math openoffice.org-style-oxygen openoffice.org-writer openprinting-ppds openssl packagekit packagekit-backend-apt plasma-dataengines-addons plasma-dataengines-workspace plasma-desktop plasma-scriptengine-javascript plasma-scriptengine-python plasma-widget-facebook plasma-widget-folderview plasma- Widget-kimpanel plasma-widget-kubuntu-feedback plasma-widget-message-indicator plasma-widget-quickaccess plasma-widgets-addons plasma-widgets-workspace polkit-kde-1 printer-applet pxljr python-desktopcouch python-desktopcouch-records python-kde4 python-pycurl python-software-properties python-ubuntuone-client python-uno quassel software-properties-gtk software-properties-kde soprano-daemon splix ssl-cert system-config-printer-kde systemsettings ubuntu-desktop ubuntuone-client update-manager-kde usb-creator-kde userconfig xul-ext-ubufox 0 upgraded 0 newly installed, 201 to remove and 0 not upgraded. After this operation, 823MB disk space will be freed. Do you want to continue [Y/n]?

With so many software packages, didn't you force me to uninstall the whole system!

I used several techniques to deal with the problem.

The first step is to add the installation path of the new version of OpenSSL to $PATH

Sudo gvim / .bashrc

Add the following at the end of the file:

PATH= "$PATH:/usr/local/openssl/bin:" export PATH

And then save.

Rename / usr/bin/openssl

/ usr/bin$ sudo mv openssl openssl0.9.8

In this way, you can use the new version of OpenSSL directly from the command line.

$openssl version-an OpenSSL 1.0.1c 10 May 2012 built on: Sun Jul 22 20:43:26 CST 2012 platform: linux-elf options: bn (64jue 32) rc4 (8xmemmmx) des (ptr,risc1,16,long) idea (int) blowfish (idx) compiler: gcc-DOPENSSL_THREADS-D_REENTRANT-DDSO_DLFCN-DHAVE_DLFCN_H-Wa -- noexecstack-DL_ENDIAN-DTERMIO-O3-fomit-frame-pointer-Wall-DOPENSSL_BN_ASM_PART_WORDS-DOPENSSL_IA32_SSE2-DOPENSSL_BN_ASM_MONT-DOPENSSL_BN_ASM_GF2m-DSHA256_ASM-DSHA512_ASM-DMD5_ASM-DRMD160_ASM-DAES_ASM-DVPAES_ASM-DWHIRLPOOL_ASM-DGHASH_ASM OPENSSLDIR: "/ usr/local/openssl/ssl"

Change the include header file:

/ usr/include$ sudo mv openssl openssl0.9.8

/ usr/include$ sudo cp-r / usr/local/openssl/include. /

You also need to recompile Apache to use the new version of OpenSSL

$. / configure-prefix=/usr/local/apache2.4-with-layout=Apache

-enable-modulues=most-enable-mods-shared=all-with-mpm=prefork

-- with-ssl=/usr/local/openssl

Note that the last sentence is the key to enabling the new version of OpenSSL

And then there's the routine, make & & make install.

Configure.

Then test it, and one of the evidence to prove that it can be used is:

. / ab-t 5-c 100-n 20000 https://127.0.0.1/index.html This is ApacheBench, Version 2.4 (OpenSSL 1.0.1c 10 May 2012)

It seems that we should use more source code installation and less system precompiled packages in the future, otherwise the updatable software will be really troublesome.

Thank you for reading, the above is the content of "how to install and configure the new version of OpenSSL without uninstalling the existing OpenSSL+Apache". After the study of this article, I believe you have a deeper understanding of how to install and configure the new version of OpenSSL+Apache without uninstalling the existing OpenSSL+Apache. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report