apache2 SSL will not start. :(

I am getting this error in my log files using 'apachectl start':

[Wed May 23 15:18:56 2007] [error] Init: Private key not found

[Wed May 23 15:18:56 2007] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag

[Wed May 23 15:18:56 2007] [error] SSL Library Error: 218529960 error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag

[Wed May 23 15:18:56 2007] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error

[Wed May 23 15:18:56 2007] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib

test1#

Now if I move my webserver's private key to another name, it gives me the error that the key can't be found, so I know it can find the file. I even changed the permissions to 444 to make sure during testing. This is a key that is running in another Zone (our production web zone), but under the Apache 1.3.36 that Solaris 11/06 ships with.

Here is the last part of the output from truss:

open("/opt/coolstack/apache2/logs/error_log", O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = 8

fcntl(8, F_DUP2FD, 0x00000002)= 2

open("/opt/coolstack/apache2/logs/www.intotheoven.com-error_log", O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = 9

open("/opt/coolstack/apache2/logs/access_log", O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = 10

open("/opt/coolstack/apache2/logs/www.intotheoven.com-access_log", O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = 11

open("/opt/coolstack/apache2/logs/ssl_request_log", O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = 12

brk(0x08184EA0) = 0

brk(0x08186EA0) = 0

write(8, " [ W e dM a y2 3 ".., 106)= 106

brk(0x08186EA0) = 0

brk(0x08188EA0) = 0

getpid()= 6326 [6325]

open("/dev/urandom", O_RDONLY|O_LARGEFILE)= 13

read(13, " &89820E { C PD6 o81 ( 5".., 512)= 512

close(13)= 0

time()= 1179945783

getpid()= 6326 [6325]

open("/dev/urandom", O_RDONLY|O_NONBLOCK|O_NOCTTY) = 13

pollsys(0x080438F0, 1, 0x080439B0, 0x00000000) = 1

read(13, " %F2F1 "82EF1E m < hFC \".., 32)= 32

close(13)= 0

getuid()= 0 [0]

time()= 1179945783

stat64("/opt/coolstack/apache2/conf/www.intotheoven.com.crt", 0x08045A80) = 0

open("/opt/coolstack/apache2/conf/www.intotheoven.com.crt", O_RDONLY|O_LARGEFILE) = 13

close(13)= 0

open("/opt/coolstack/apache2/conf/www.intotheoven.com.crt", O_RDONLY) = 13

fstat64(13, 0x08045740) = 0

fstat64(13, 0x08045680) = 0

ioctl(13, TCGETA, 0x08045714)Err#25 ENOTTY

read(13, " - - - - - B E G I NC".., 2048)= 1842

brk(0x08188EA0) = 0

brk(0x0818AEA0) = 0

llseek(13, 0, SEEK_CUR) = 1842

close(13)= 0

stat64("/opt/coolstack/apache2/conf/www.intotheoven.com.crt", 0x08045A80) = 0

open("/opt/coolstack/apache2/conf/www.intotheoven.com.crt", O_RDONLY|O_LARGEFILE) = 13

close(13)= 0

open("/opt/coolstack/apache2/conf/www.intotheoven.com.crt", O_RDONLY) = 13

fstat64(13, 0x08045360) = 0

fstat64(13, 0x080452A0) = 0

ioctl(13, TCGETA, 0x08045334)Err#25 ENOTTY

read(13, " - - - - - B E G I NC".., 2048)= 1842

read(13, 0x08188C8C, 2048) = 0

llseek(13, 0, SEEK_CUR) = 1842

close(13)= 0

open("/opt/coolstack/apache2/conf/www.intotheoven.com.crt", O_RDONLY) = 13

fstat64(13, 0x080458A0) = 0

fstat64(13, 0x080457E0) = 0

ioctl(13, TCGETA, 0x08045874)Err#25 ENOTTY

read(13, " - - - - - B E G I NC".., 2048)= 1842

read(13, 0x08189E14, 2048) = 0

brk(0x0818AEA0) = 0

brk(0x0818CEA0) = 0

llseek(13, 0, SEEK_CUR) = 1842

close(13)= 0

open("/opt/coolstack/apache2/conf/www.intotheoven.com.crt", O_RDONLY) = 13

fstat64(13, 0x08045910) = 0

fstat64(13, 0x08045850) = 0

ioctl(13, TCGETA, 0x080458E4)Err#25 ENOTTY

read(13, " - - - - - B E G I NC".., 2048)= 1842

llseek(13, 0xFFFFFFFFFFFFF8FD, SEEK_CUR)= 47

close(13)= 0

write(9, " [ W e dM a y2 3 ".., 63)= 63

write(9, " [ W e dM a y2 3 ".., 123)= 123

write(9, " [ W e dM a y2 3 ".., 128)= 128

write(9, " [ W e dM a y2 3 ".., 137)= 137

write(9, " [ W e dM a y2 3 ".., 126)= 126

_exit(1)

[4366 byte] By [AnthonyCa] at [2007-11-27 5:17:56]
# 1
Ok, ignore me..... Sheesh, it's been a busy week...Problem solved, I copied over some of the lines from my Apache 1.3.x setup and there was a slight chance in the directive...Apache 1.3.x = SSLCertificateFileApache 2.x = SSLCertificateKeyFile
AnthonyCa at 2007-7-12 10:40:53 > top of Java-index,Open Source Technologies,OpenSPARC...