|
|||||
| | |||||
|
if you answered yes to any of the above, get and install the openssl library, as it will generate your keys, sign your certificates, and offer encryption libraries you can link against and use over and over again.
2. Build OpenSSL by running:
$ make
This will build the OpenSSL libraries (libcrypto.a and libssl.a) and the
OpenSSL binary ("openssl"). The libraries will be built in the top-level
directory, and the binary will be in the "apps" directory.
| individual servers |
|---|
for the impatient, /etc/ssl/ is the directory you are looking for. somebody know the env settting? It's not an environmental setting, but the cert location perhaps should be? NB: the rpm default installation is not /etc/ssl but rather /usr/share/ssl, so all is relative to that ...
"USING SSL/TLS WITH SENDMAIL
By default, sendmail(8) expects both the keys and certificates to reside
in /etc/mail/certs, not in the /etc/ssl directory. The default paths may
be overridden in the sendmail.cf file. See starttls(8) for information
on configuring sendmail(8) to use SSL/TLS."
Compile and Optimize ... apache_1.3.12 \ --with-crt=/etc/ssl/certs/server.crt \ --with-key=/etc/ssl ... must already be installed on your server, and your public and private keys ... link - 8k - Cached - Similar pages
*.pem usually specifies a private key. The ssl page here tells you to execute openssl req -new -days 365 -nodes -config stunnel.cnf -out certreq.pem -keyout stunnel.pem . The output from this command is: (error)
[joe@www joe]$ openssl req -new -days 365 -nodes -config stunnel.cnf -out certr
eq.pem -keyout stunnel.pem
Using configuration from stunnel.cnf
error on line 4 of stunnel.cnf
28955:error:02001002:system library:fopen:No such file or directory:bss_file.c:1
04:fopen('stunnel.cnf','rb')
28955:error:2006D002:BIO routines:BIO_new_file:system lib:bss_file.c:106:
28955:error:0E064002:configuration file routines:CONF_load:system lib:conf_lib.c
:91:
[joe@www joe]$ sudo locate stunnel.cnf
RSA is used in SSH and apache. who uses DES?
you don't have random number generator utility that is used by OpenSSL to get seed. Look at this link, you can find one here.
13
14 RSA *x;
15 FILE *fp;
16
17 ERR_load_crypto_strings();
18 if ( (fp=fopen("public.pem","r")) == NULL)
19 {
20 perror("ERROR: rsapubkey.pem");
21 exit(0);
22 }
23
24 if ((x=(RSA *)PEM_read_RSAPublicKey(fp,NULL, NULL,NULL)) !=
25 NULL)
26 free(x);
27 else ERR_print_errors_fp(stderr);
28 fclose(fp);
3 that's because there's two ways to read public keys. a public key can
4 be rsa, dsa and dh (may be more in openssl i don't remember now). with
5 the function PEM_read_RSAPublicKey OpenSSL is expecting a concrete RSA
6 Public key which will have in the header of the PEM file
7
8 -----BEGIN RSA PUBLIC KEY-----
9
10 instead of
11
12 -----BEGIN PUBLIC KEY-----
13
14 if you'd like to load an RSA key with the "BEGIN PUBLIC KEY" header,
15 you should use PEM_read_RSA_PUBKEY function instead of the one you use.
16
17 this header will be common for dsa, rsa and dh keys.
18
| Leave a Reply |