logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: openssl compilation and encryption
Author
abeo



Joined: 18 Feb 2011
Posts: 1

PostPosted: Fri 18 Feb '11 16:18    Post subject: openssl compilation and encryption Reply with quote

Hi,

I have recently begun learning some php and mysql and I'd like to encrypt my php - mysql and http connection. Thus I need to generate a certificate using openssl as well as configuring my.ini, php.ini, httpd.conf and httpd-ssl.conf accordingly. (I reckon)

How can I compile openssl? (I'm using windowsxp) http://www.openssl.org/source/openssl-1.0.0d.tar.gz

How can I tweak my server to allow encrypted connections(http and tcp(php-mysql)) ?

I would appreciate a thorough explanation. Very Happy
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 18 Feb '11 22:45    Post subject: Reply with quote

Compiling openssl is easy but do you need to? What you need to create certificates is in most Apache packages you can download, you just may have to create a directory and move openssl.cnf from Apache's /conf folder to the one you created.

Win32 or Win64?

In that 1.0.0d tarball you link to there are instructions in the files INSTALL.W32 & INSTALL.W64 depending on what you want.

These are build instructions for building Apache but the steps suggesting how to do openssl are there are well.

Win32: http://wiki.apache.org/httpd/Win32VC9Build
Win64: http://wiki.apache.org/httpd/Win64Compilation

Are you going to need a real certificate or will a self-signed one do? Self-signed will be noisy in all browsers. If you are going to get a real cert, the certificate authority you choose will tell you what you need to do.

If you just want to make self signed ones that's rather easy to do as well. At the command line this does me well.

> cd\folder\containing\openssl
> openssl req -new > server.csr
> openssl rsa -in privkey.pem -out server.key
> openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 2048

Everything you need to know as far as Apache is in this forum somewhere so use the search. What's not here I'm sure Google could be quite friendly to provide.

Do you really want to encrypt talking to mysql? This part of your question is not my area so I cannot say you can or cannot do this. Encryption however is heavy on cpu and therefore slower, the bigger the key size the slower it is. If you encrypt on the front end and encrypt on the back end, you're slowing down on both side. If mysql is in house or on the server do you really need it anyway and take the added speed hit?
Back to top


Reply to topic   Topic: openssl compilation and encryption View previous topic :: View next topic
Post new topic   Forum Index -> Apache