OpenSSL: Difference between revisions
From charlesreid1
(Created page with "=Configure= Configure 32 bit: <pre> ./Configure --prefix=${HOME}/pkg/openssl/1.0.0_32 </pre> Configure 64 bit: <pre> ./Configure darwin64-x86_64-cc --prefix=${HOME}/pkg/opens...") |
No edit summary |
||
| Line 1: | Line 1: | ||
=Configure= | =Configure= | ||
==New Instructions: From Homebrew== | |||
<pre> | |||
$ brew install openssl | |||
</pre> | |||
==Old Instructions: From Source== | |||
Configure 32 bit: | Configure 32 bit: | ||
| Line 14: | Line 22: | ||
or just run <code>./Configure</code> and follow the instructions. | or just run <code>./Configure</code> and follow the instructions. | ||
=Installing New Certificates= | |||
To install new certificates, put them in <code>/usr/local/opt/openssl/certs</code> | |||
Once you do that, run <code>/usr/local/opt/openssl/bin/c_rehash</code> | |||
This can be useful for a couple of different things: | |||
* Using [[Stunnel]] to route arbitrary traffic through SSL, which requires a certificate (see [[RaspberryPi/Reverse_SSH]], [[RaspberryPi/SSH_Stunnel]], and [[RaspberryPi/Reverse_SSH_Stunnel]] for applications) | |||
* Setting up an HTTPS-capable web server | |||
* Issuing a certificate for a wireless network | |||
There are multiple other uses (beyond the scope of this page). | |||
=References= | =References= | ||
Revision as of 07:19, 7 August 2015
Configure
New Instructions: From Homebrew
$ brew install openssl
Old Instructions: From Source
Configure 32 bit:
./Configure --prefix=${HOME}/pkg/openssl/1.0.0_32
Configure 64 bit:
./Configure darwin64-x86_64-cc --prefix=${HOME}/pkg/openssl/1.0.0_64
or just run ./Configure and follow the instructions.
Installing New Certificates
To install new certificates, put them in /usr/local/opt/openssl/certs
Once you do that, run /usr/local/opt/openssl/bin/c_rehash
This can be useful for a couple of different things:
- Using Stunnel to route arbitrary traffic through SSL, which requires a certificate (see RaspberryPi/Reverse_SSH, RaspberryPi/SSH_Stunnel, and RaspberryPi/Reverse_SSH_Stunnel for applications)
- Setting up an HTTPS-capable web server
- Issuing a certificate for a wireless network
There are multiple other uses (beyond the scope of this page).