OpenSSL: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
No edit summary
Boiarino (talk | contribs)
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
NOTE: FOLLOWING PROCEDURE WORKS FINE ON LINUX WHERE WE DO NOT NEED IT BECAUSE IT COMES WITH RHEL4.
UNFORTUNATELY IT DOES NOT WORK ON SOLARIS, SO IT WAS INSTALLED USING 'pkg...' UTILITIES IN ACCORDING
TO FOLLOWING PROCEDURE:
  download from the web 'openssl-0.9.8d-sol10-x86-local.gz' and 'openssl-0.9.8d-sol10-sparc-local.gz' to
  /usr/local/downloads; it was obtained from http://sunfreeware.com/
  copy appropriate version to /usr/local/src and gunzip it; it will produce so-called datastream 'SMCosl98d'
  pkgtrans openssl-0.9.8d-sol10-xxx-local .
  pkgadd -d . SMCosl98d
It will place everything to /usr/local/ssl/, it is mounted partition from file server. Now make symbolic links from /usr/local/lib
since that directory is in LD_LIBRARY_PATH (or should be !):
  cd /usr/local/lib
  ln -s /usr/local/ssl/lib/libssl.so.0.9.8 libssl.so.0.9.8
  ln -s libssl.so.0.9.8 libssl.so
  ln -s /usr/local/ssl/lib/libcrypto.so.0.9.8 libcrypto.so.0.9.8
  ln -s libcrypto.so.0.9.8 libcrypto.so
XXXXXXXXXXXXXXXXXXXXXX DOES NOT WORK FOR SOLARIS XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
OpenSSL comes with RHEL4. On Solaris it seems exist in /usr/lib/mps and /usr/include/mps
OpenSSL comes with RHEL4. On Solaris it seems exist in /usr/lib/mps and /usr/include/mps
but *.so libraries only, no *.a. Anyway, to install it do following:
but *.so libraries only, no *.a. Anyway, to install it do following:


Download openssl-0.9.8d.tar.gz from web to /usr/local/downloads. Then:
Download openssl-0.9.7a.tar.gz from web to /usr/local/downloads (the same version we have on RHEL4). Then:


   cp openssl-0.9.8d.tar.gz /usr/local/src/
   cp openssl-0.9.7a.tar.gz /usr/local/src/
   cd /usr/local/src/
   cd /usr/local/src/
   gunzip openssl-0.9.8d.tar.gz
   gunzip openssl-0.9.7a.tar.gz
   tar xvf openssl-0.9.8d.tar
   tar xvf openssl-0.9.7a.tar
   cd openssl-0.9.8d
   cd openssl-0.9.7a
 
Configure for Sparc Solaris (32-bit version):


Configure on Linux (we want to replace default version, the same version must be on all machines otherwise they cannot talk to each other):
  ./Configure --prefix=/usr/local --openssldir=/usr/local/myssl solaris-sparcv9-cc
        other possible flags:
                  solaris64-sparcv9-cc


  ./config --prefix=/usr
Configure for Opteron Solaris (32-bit version):


Configure for Sparc Solaris (32-bit version):
  ./Configure --prefix=/usr/local --openssldir=/usr/local/myssl solaris-x86-gcc
        other possible flags:
                  solaris-x86-cc
                  solaris64-x86_64-cc


  ./Configure --prefix=/usr/local
Configure for Linux if nedded:


Configure for Sparc Solaris (64-bit version):
  ./config --prefix=/usr/local --openssldir=/usr/local/share
Compile:


   ./Configure --prefix=/usr/local
   gmake


Configure for Opteron Solaris (32-bit version):
Run test (IMPORTANT: if test failed, do not try to continue, most likely nothing will work !):


   ./Configure --prefix=/usr/local solaris-x86-cc
   gmake test
        other possible flags:
  ./Configure --prefix=/usr/local solaris-x86-gcc
  ./Configure --prefix=/usr/local solaris64-x86_64-cc


Compile and install:
Install:


  gmake
   gmake install
   gmake install

Latest revision as of 00:54, 7 January 2007

NOTE: FOLLOWING PROCEDURE WORKS FINE ON LINUX WHERE WE DO NOT NEED IT BECAUSE IT COMES WITH RHEL4. UNFORTUNATELY IT DOES NOT WORK ON SOLARIS, SO IT WAS INSTALLED USING 'pkg...' UTILITIES IN ACCORDING TO FOLLOWING PROCEDURE:

 download from the web 'openssl-0.9.8d-sol10-x86-local.gz' and 'openssl-0.9.8d-sol10-sparc-local.gz' to
 /usr/local/downloads; it was obtained from http://sunfreeware.com/
 copy appropriate version to /usr/local/src and gunzip it; it will produce so-called datastream 'SMCosl98d'
 pkgtrans openssl-0.9.8d-sol10-xxx-local .
 pkgadd -d . SMCosl98d

It will place everything to /usr/local/ssl/, it is mounted partition from file server. Now make symbolic links from /usr/local/lib since that directory is in LD_LIBRARY_PATH (or should be !):

 cd /usr/local/lib
 ln -s /usr/local/ssl/lib/libssl.so.0.9.8 libssl.so.0.9.8
 ln -s libssl.so.0.9.8 libssl.so
 ln -s /usr/local/ssl/lib/libcrypto.so.0.9.8 libcrypto.so.0.9.8
 ln -s libcrypto.so.0.9.8 libcrypto.so


XXXXXXXXXXXXXXXXXXXXXX DOES NOT WORK FOR SOLARIS XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

OpenSSL comes with RHEL4. On Solaris it seems exist in /usr/lib/mps and /usr/include/mps but *.so libraries only, no *.a. Anyway, to install it do following:

Download openssl-0.9.7a.tar.gz from web to /usr/local/downloads (the same version we have on RHEL4). Then:

 cp openssl-0.9.7a.tar.gz /usr/local/src/
 cd /usr/local/src/
 gunzip openssl-0.9.7a.tar.gz
 tar xvf openssl-0.9.7a.tar
 cd openssl-0.9.7a

Configure for Sparc Solaris (32-bit version):

 ./Configure --prefix=/usr/local --openssldir=/usr/local/myssl solaris-sparcv9-cc
       other possible flags:
                 solaris64-sparcv9-cc

Configure for Opteron Solaris (32-bit version):

 ./Configure --prefix=/usr/local --openssldir=/usr/local/myssl solaris-x86-gcc
       other possible flags:
                 solaris-x86-cc
                 solaris64-x86_64-cc

Configure for Linux if nedded:

 ./config --prefix=/usr/local --openssldir=/usr/local/share

Compile:

 gmake

Run test (IMPORTANT: if test failed, do not try to continue, most likely nothing will work !):

 gmake test

Install:

 gmake install