Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd February 2008, 14:17
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default Generating SSL Cert question

Hi folks,


Archlinux 86_64 2007-08-2


On running
$ sudo openssl rsa -in server.key -out server.key
Code:
Error opening Private Key server.key
6879:error:02001002:system library:fopen:No such file or directory:bss_file.c:352:fopen('server.key','r')
6879:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:354:
unable to load Private Key
Please advise where shall I check and how to fix this problem. Thanks


On runniing;
Code:
$ sudo openssl req -new -x509 -newkey rsa:1024 -days 365 -keyout server,key -out server.crt
/etc/ssl/certs/

What FQDN shall I use on "Common Name"?


On googling I found;
TIP Setup Your FQDN
http://gentoo-wiki.com/TIP_Setup_Your_FQDN


Do I need to do the same on Arch? TIA


B.R.
satimis
Reply With Quote
Sponsored Links
  #2  
Old 23rd February 2008, 17:01
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Quote:
Originally Posted by satimis
On running
$ sudo openssl rsa -in server.key -out server.key
Code:
Error opening Private Key server.key
6879:error:02001002:system library:fopen:No such file or directory:bss_file.c:352:fopen('server.key','r')
6879:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:354:
unable to load Private Key
Please advise where shall I check and how to fix this problem. Thanks
There's no server.key file. Please check if you are in the correct directory.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 23rd February 2008, 17:15
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko
There's no server.key file. Please check if you are in the correct directory.
$ locate server.key
$ sudo find / -name server.key
both no printout

$ locate .key
/usr/share/mime-infor/gnome-vfs.keys
/var/abs/extra/network/nxclient/nomachine.key

$ sudo find / -name *.key
/var/abs/extra/network/nxclient/nomachine.key


Where can I find/download this file? Thanks


satimis
Reply With Quote
  #4  
Old 24th February 2008, 14:03
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

I think you need to create it yourself.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 25th February 2008, 15:15
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
 
Default (solved)

Quote:
Originally Posted by falko
I think you need to create it yourself.
Problem solved as follow;


Run;
$ hostname --fqdn
Code:
arch.satimis.com

$ cd /etc/ssl/certs/
$ sudo openssl req -new -x509 -newkey rsa:1024 -days 365 -keyout server.key -out server.crt
Code:
....
..
Common Name (eg, YOUR name) []:arch.satimis.com
...
etc
At the end server.key generated


then;
$ sudo openssl rsa -in server.key -out server-no-pass.key
Code:
Enter pass phrase for server.key:
writing RSA key

B.R.
satimis
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSL Cert Question for ISPConfig Access giganet Installation/Configuration 33 28th March 2009 07:56
SSL for virtual hosts on one certificate rbartz Tips/Tricks/Mods 8 20th November 2007 17:59
New SSL Cert PoleCat Installation/Configuration 15 4th July 2007 10:13
Can't get SSL Cert to work rbartz Installation/Configuration 4 23rd April 2006 09:32
REAL SSL Cert install problems theduke Installation/Configuration 5 4th October 2005 22:06


All times are GMT +2. The time now is 10:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.