on i4PACE(i for Personal Archiving and Creating Environment)
actions » SearchLogin 89 articles • 30 Jul 2010

Article with comments

Thursday, 17 Sep 2009

permalink SSL

struggling with the procedure to make https connection available for the domain emediajp, running apache on my home server (Ubuntu9.04 server).

> sudo su
> mkdir -p /etc/ssl/private
> openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
root@yarrow:/etc/ssl/private# sudo openssl req -
out server.key -out server.csrey 
Generating a 2048 bit RSA private key
..+++
................................................................................
.....+++
writing new private key to 'server.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:JP
State or Province Name (full name) [Some-State]:Yamagata
Locality Name (eg, city) []:Yamagata-shi
Organization Name (eg, company) [Internet Widgits Pty Ltd]:YUI
Organizational Unit Name (eg, section) []:RD
Common Name (eg, YOUR name) []:*.emedia.jp
Email Address []:admin@emedia.jp

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

make sure to specify the name as *.emedia.jp for subdomains.

Access to http://www.cacert.org/, create an account, login, register email, register domain *.emedia.jp. Click Server Certificates, and paste all of the lines of server.csr in the textarea.

Set permission

> chown root:ssl-certs server.*
> chmod 400 server.key
> chmod 440 server.csr
> chmod 444 server.crt

Edit /etc/apache2/sites-available/default-ssl.

SSLCertificateFile      /etc/ssl/private/server.crt
        SSLCertificateKeyFile   /etc/ssl/private/server.key

Enable it

> a2ensite default-ssl
>/etc/init.d/apache restart

Access to https://192.168.1.81/ from a PC over LAN. Success!

• Wrote Teru at 16:28 (edited 3×, last on 17 Sep 2009) | read 33× | Add comment

Comments (1)

gdqsra <a href="http://mlldqatzctwb.com/">mlldqatzctwb</a>, frotqsqulbau, [link=http://ctcxzhrpxyyz.com/]ctcxzhrpxyyz[/link], http://kdhpvqpslbgh.com/

• wrote gczoii (ip) on 29 Oct 2009, 06:52  permalink


Write a comment

Your name  
E-mail   (only visible for blog owner)
Homepage
How much is 3+9?   (protection against spam-bots)
Text:

[b] [i] [u] [tt] [center] [code] [quote] [url] [url=] [img] [@] [@@] [@:]
detailed help about markup
Process times: page=0.019 request=0.033 cpu=0.040