LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2010, 06:17 PM   #1
Arty Ziff
Member
 
Registered: May 2008
Location: Tacoma, WA
Distribution: CentOS and RHEL
Posts: 102

Rep: Reputation: 15
SSL Server Key W/O Pass Phrase?


I'm having trouble trying to generate an SSL server key WITHOUT a pass phrase.

Here's what I did. Wrong, obviously.
Code:
# Create the server key

cd /usr/bin/

openssl genrsa -des3 -out MyDomain.key 2048

# Remove passphrase

cp MyDomain.key MyDomain.key.org

openssl rsa -in MyDomain.key.org -out MyDomain.key
 
Old 07-17-2010, 04:17 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,

Why you think it's wrong?
After that you have to create a CSR (certificate request based on this key) and create the certificate. When creating the CSR pay attention to the Common Name (CN). It must match your server name. The commands you have to use, are:
Code:
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
To verify the certificate you can run:
Code:
openssl verify server.crt
Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Start apache with the pass phrase DropHit Linux - Software 7 02-12-2010 04:36 PM
MDCrack cracks key with pass but not pass with key?... lynx5 Linux - Security 1 02-02-2008 06:49 PM
ssh can't connect wrong pass phrase knockout_artist Linux - Newbie 1 12-10-2007 11:47 AM
mod ssl asking pass phrase ZAMO Linux - Server 4 05-22-2007 07:36 AM
pass phrase from disk in ppdd shashi_lq Linux - Security 1 04-18-2004 06:52 AM


All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration