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: Server Certs
Author
KurtDJ



Joined: 27 Feb 2012
Posts: 2
Location: Virginia Beach

PostPosted: Fri 18 May '12 19:32    Post subject: Server Certs Reply with quote

Anybody know about needing the public and private keys in the \conf directory in order to access my website without seeing the missing certificate error when i access the homepage? i'm trying to use the httpd-ssl file in the \extra directory. what steps should be taken to generate both keys that are insecure. Thanks.
Back to top
glsmith
Moderator


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

PostPosted: Fri 18 May '12 20:01    Post subject: Reply with quote

Self signed:

If your on Windows Vista/7/2008 run the command prompt window as Administrator (right click on icon, select "Run as Administrator";

Code:
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 365


you can do any number of days you want to, not restricted to the 365 I've used above


Last edited by glsmith on Fri 18 May '12 20:03; edited 1 time in total
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Fri 18 May '12 20:01    Post subject: Reply with quote

There is quite good info at apache.org: http://httpd.apache.org/docs/2.4/ssl/

For a self signed (not secure), see

http://httpd.apache.org/docs/2.4/ssl/ssl_faq.html#selfcert

Steffen
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Fri 18 May '12 20:03    Post subject: Reply with quote

Wow Gregg, we hit the Post button exactly at the same time Laughing

Steffen
Back to top
glsmith
Moderator


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

PostPosted: Fri 18 May '12 20:05    Post subject: Reply with quote

So we did Very Happy
Back to top


Reply to topic   Topic: Server Certs View previous topic :: View next topic
Post new topic   Forum Index -> Apache