SSL help with Apache via OpenSSL on XAMPP

Status
Not open for further replies.

Trifid

Fully Optimized
Messages
4,010
Some fun is starting to **** me off now...

I have installed Xampp to replace Apache on its own. I saw it had SSL already installed but it is really ****ing me off creating a CSR to get a proper certificate. This is what I entered when following guides on the internet.

http://www.spacereg.com/help_csr_modssl.html#1
http://www.kossoy.com/wpress/2007/01/23/quick-ssl-setup-with-xampp-3/
http://sial.org/howto/openssl/csr/

None of them work. I then installed openssl to get the same results. :(

C:\Documents and Settings\sam>cd "C:\Program Files\GnuWin32\bin"

C:\Program Files\GnuWin32\bin>openssl req -config openssl.cnf -new -out
req [options] <infile >outfile
where options are
-inform arg input format - DER or PEM
-outform arg output format - DER or PEM
-in arg input file
-out arg output file
-text text form of request
-pubkey output public key
-noout do not output REQ
-verify verify signature on REQ
-modulus RSA modulus
-nodes don't encrypt the output key
-engine e use engine e, possibly a hardware device
-subject output the request's subject
-passin private key password source
-key file use the private key contained in file
-keyform arg key file format
-keyout arg file to send the key to
-rand file;file;...
load the file (or the files in the directory) into
the random number generator
-newkey rsa:bits generate a new RSA key of 'bits' in size
-newkey dsa:file generate a new DSA key, parameters taken from CA in 'file'
-[digest] Digest to sign with (md5, sha1, md2, mdc2, md4)
-config file request template file.
-subj arg set or modify request subject
-new new request.
-batch do not ask anything during request generation
-x509 output a x509 structure instead of a cert. req.
-days number of days a certificate generated by -x509 is valid for.
-set_serial serial number to use for a certificate generated by -x509.
-newhdr output "NEW" in the header lines
-asn1-kludge Output the 'request' in a format that is wrong but some CA's
have been reported as requiring
-extensions .. specify certificate extension section (override value in config
file)
-reqexts .. specify request extension section (override value in config file
)
-utf8 input characters are UTF8 (default ASCII)
-nameopt arg - various certificate name options
-reqopt arg - various request text options


C:\Program Files\GnuWin32\bin>openssl req -new -key server.key -out domainname.c
sr
Unable to load config info
Enter pass phrase for server.key:
unable to find 'distinguished_name' in config
problems making Certificate Request
2968:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envi
ronment variable:conf_lib.c:325:

C:\Program Files\GnuWin32\bin>openssl req -new -key server.key -out my.ip.is.here
5.csr
Unable to load config info
Enter pass phrase for server.key:
unable to find 'distinguished_name' in config
problems making Certificate Request
3104:error:0E06D06A:configuration file routines:NCONF_get_string:no conf or envi
ronment variable:conf_lib.c:325:

C:\Program Files\GnuWin32\bin>

Help greatly wanted. I don't like failing. :(
 
Status
Not open for further replies.
Back
Top Bottom