cygwin+and+open ssl+install+guide

16
Cygwin and OpenSSL I ll i G id Installation Guide Cygwin Installation

Upload: ganaaturuu

Post on 19-May-2015

12.873 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Cygwin+and+open ssl+install+guide

Cygwin and OpenSSL

I ll i G idInstallation Guide

Cygwin Installationyg

Page 2: Cygwin+and+open ssl+install+guide

What is Cygwin?

• Cygwin is a “free” Linux-like environment for Windows. It consists of two parts: – A DLL (cygwin1.dll) which acts as a Linux API A DLL (cygwin1.dll) which acts as a Linux API

emulation layer providing substantial Linux API functionality.

– A collection of tools which provide Linux look and feel.

3

Cygwin Installation (1/13)

1. Browse http://www.cygwin.com/2. Click the button “Install or update now! ”3. Click the button “Run”

4

Page 3: Cygwin+and+open ssl+install+guide

Cygwin Installation (2/13)

Click the button “Next”.

5

Cygwin Installation (3/13)

Select “Install from Internet” and then click the button “Next”.

6

Page 4: Cygwin+and+open ssl+install+guide

Cygwin Installation (4/13)

Select the root install directory (by default, C:\cygwin) and then click the button “Next”.

7

Cygwin Installation (5/13)

Select local package directory and then click the button “Next”.

8

Page 5: Cygwin+and+open ssl+install+guide

Cygwin Installation (6/13)

Choose the connection method. In this example, “Direct Connection” is selected and then the button “Next”.

9

Cygwin Installation (7/13)

Choose a mirror site and the click the button “Next”. (In this example, we chose http://ftp.daum.net)

10

Page 6: Cygwin+and+open ssl+install+guide

Cygwin Installation (8/13)

Select packages to install (See next slide).By default, “setup.exe” will install only the packages in the Base category and their dependencies, resulting in a minimal Cygwin installation.

11

Minimal Cygwin installation will not include many commonly used tools such as gcc (which you will find in the Devel category).

Cygwin Installation (9/13)

So, the following packages at miminum must be selected to install “OpenSSL“ packages later on.

Category | Packages- editor : vim (other editors available)- devel : gcc-core ( gcc-mingw-core by default )- devel : gcc-core ( gcc-mingw-core, by default )

gcc-g++ ( gcc-mingw-g++, by default)make

12

Page 7: Cygwin+and+open ssl+install+guide

Cygwin Installation (10/13)

How to select the packages: if you click the “Skip” in the subtitle “New”, the check-up mark (V) will be shown in “Bin”. Select the minimum packages listed in the previous slide and then click the button “Next”. 13

Cygwin Installation (11/13)

Finally, the selected packages is being installing from the download site.

14

Page 8: Cygwin+and+open ssl+install+guide

Cygwin Installation (12/13)

Cygwin setup is done.

15

Cygwin Installation (13/13)

Run Cygwin by double-clicking “Cygwin” icon on the Windows Desktop or “cygwin.bat” in the folder in which cygwin is installed.

16

Page 9: Cygwin+and+open ssl+install+guide

Cygwin Installation Check-up (1/3)

$ gcc --version

17

Cygwin Installation Check-up (2/3)

$ make --version

18

Page 10: Cygwin+and+open ssl+install+guide

Cygwin Installation Check-up (3/3)

$ vi --version

19

OpenSSL Installationp

Page 11: Cygwin+and+open ssl+install+guide

What is OpenSSL?

• “Free” library providing cryptographic functions

• The important feature is the complete implementation of the protocols SSL and TLSthe protocols SSL and TLS

21

Algorithms implemented

• Block ciphers: DES, 3DES, DESX, CAST, RC2, RC5, IDEA, Blowfish

• stream cipher: RC4stream cipher RC4• hash: MD2, MD4, MD5, SHA-1, RIPEMD 160, MDC2• asymmetric cryptosystems: RSA, DSA, DH• MAC: HMAC

22

Page 12: Cygwin+and+open ssl+install+guide

Standards implemented

• PKCS 1, PKCS 7, PKCS 8, PKCS10 and PKCS 12• X509v3

ASN 1 ith DER nc din (n t c mpl t )• ASN.1 with DER encoding (not complete)• SSLv3 and TLSv1 (practically identical)

23

OpenSSL Installation (1/8)

1. Browse http://www.openssl.org/2. Click the button “Source ”.

24

Page 13: Cygwin+and+open ssl+install+guide

OpenSSL Installation (2/8)

Download the latest version of OpenSSL.

25

OpenSSL Installation (3/8)

Copy the downloaded OpenSSL source into “home” subfolder of the folder where “cygwin” is installed (eg, C:\cygwin\home).

26

Page 14: Cygwin+and+open ssl+install+guide

OpenSSL Installation (4/8)

Run “cygwin” and then do the followings: $ cd /home$ tar zxvf openssl-x.x.x.tar.gz

27

OpenSSL Installation (5/8)

$ cd /home/openssl-x.x.x$ ./config

28

Page 15: Cygwin+and+open ssl+install+guide

OpenSSL Installation (6/8)

$ make

29

OpenSSL Installation (7/8)

$ make test

30

Page 16: Cygwin+and+open ssl+install+guide

OpenSSL Installation (8/8)

$ make install

31

~/openssl-x.x.x

Package Structure

/apps(openssl)

/crypto /ssl /include libssl.alibcrypto.a

....

32

• Check if the following three files show up.

– Execution file: openssl

– Library files: libssl.a, libcrypto.a