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, 05:17 PM   #1
Arty Ziff
Member
 
Registered: May 2008
Location: Tacoma, WA
Distribution: CentOS and RHEL
Posts: 124

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, 03:17 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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 03:36 PM
MDCrack cracks key with pass but not pass with key?... lynx5 Linux - Security 1 02-02-2008 05:49 PM
ssh can't connect wrong pass phrase knockout_artist Linux - Newbie 1 12-10-2007 10:47 AM
mod ssl asking pass phrase ZAMO Linux - Server 4 05-22-2007 06:36 AM
pass phrase from disk in ppdd shashi_lq Linux - Security 1 04-18-2004 05:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:51 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
Open Source Consulting | Domain Registration