Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help me rectify my ssl concepts.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2290
Location: $TERM

PostPosted: Mon Feb 21, 2011 9:40 am    Post subject: Help me rectify my ssl concepts. Reply with quote

When I make an ssl rsa private key, it has a password. Then I have to remove the password to get things working (with the servers).

Q. Why did openssl ask for a password?


When you make a key, you also have an option to specify a symmetric cypher algorithm. But the application using the ssl key is supposed to do that (select the cypher algorithm). So what happens when I specify this algorithm when generating the key?

----

Also, can I specify the key length of the symmetric encryption that the client (with the private certificate) users?
_________________
My blog


Last edited by dE_logics on Mon Feb 21, 2011 12:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
malern
Apprentice
Apprentice


Joined: 19 Oct 2006
Posts: 170

PostPosted: Mon Feb 21, 2011 10:47 am    Post subject: Re: Help me rectify my ssl concepts. Reply with quote

dE_logics wrote:
When I make an ssl rsa private key, it has a password. Then I have to remove the password to get things working (with the servers).

Q. Why did openssh ask for a password?

(I'm assuming you meant openssl not openssh) Most likely because you told it to encrypt the private key (you do this by specifying a cipher on the command line). Depending on what you want to do with the rsa key it is sometimes useful to have it encrypted, which is why it's an option. If you're just decrypting it straight away then there's no point encrypting it in the first place (i.e. you shouldn't be specifying a cipher to encrypt it with, and then it won't prompt for a password).

dE_logics wrote:
When you make a key, you also have an option to specify a symmetric cypher algorithm. But the application using the ssl key is supposed to do that (select the cypher algorithm). So what happens when I specify this algorithm when generating the key?

The cipher is only used to encrypt the private key, it does not dictate which cipher the application will use.
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Mon Feb 21, 2011 10:59 am    Post subject: Reply with quote

You don't have to remove the passphrase to get the key working. That's only what many SSL Howtos of certificate providers suggest, in order to minimize customer support efforts.

In a more security critical setup, it is a good idea to keep the key and have Apache etc. ask for it when restarting.

However, not all services support that. And, this can conflict with stuff like certain setups of logrotate, which try to restart Apache after rotating, and fail due to a missing passphrase to the private key.

Anyway, bottom line: the passphrase is there for a reason. ;)
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
chiefbag
Guru
Guru


Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom

PostPosted: Mon Feb 21, 2011 11:58 am    Post subject: Reply with quote

Quote:
However, not all services support that. And, this can conflict with stuff like certain setups of logrotate, which try to restart Apache after rotating, and fail due to a missing passphrase to the private key.


You can set the following in the /etc/conf.d/apache2 to overcome the passpharse at reload problem :lol:

RELOAD_TYPE="graceful"
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2290
Location: $TERM

PostPosted: Mon Feb 21, 2011 12:32 pm    Post subject: Reply with quote

Ok, thanks for clarifying all this.

Now the only question remaining is about the client.
_________________
My blog
Back to top
View user's profile Send private message
AngelKnight
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2003
Posts: 127

PostPosted: Wed Feb 23, 2011 8:27 am    Post subject: Re: Help me rectify my ssl concepts. Reply with quote

dE_logics wrote:
Also, can I specify the key length of the symmetric encryption that the client (with the private certificate) users?


As far as I know, there are no standard X509 certificate attributes that influence SSL/TLS session setup involving a given X509 cert. Generally the software on which the certificate is installed provides separate controls to constrain the permissible session ciphers and modes for enciphered sessions.


Last edited by AngelKnight on Tue Mar 01, 2011 7:44 am; edited 1 time in total
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2290
Location: $TERM

PostPosted: Thu Feb 24, 2011 1:02 am    Post subject: Re: Help me rectify my ssl concepts. Reply with quote

AngelKnight wrote:
dE_logics wrote:
Also, can I specify the key length of the symmetric encryption that the client (with the private certificate) users?


As far as I know, there are no standard X509 certificate attributes that influence SSL/TLS session setup involving a given X509 cert. Generally the software on which the certificate is installed provides separate controls to constrain the permissible session ciphers and modes for enciphered sessions.


I've yet to find any client in which I can specify the key length of the symmetric algorithm.
_________________
My blog
Back to top
View user's profile Send private message
AngelKnight
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2003
Posts: 127

PostPosted: Tue Mar 01, 2011 7:45 am    Post subject: Re: Help me rectify my ssl concepts. Reply with quote

dE_logics wrote:
I've yet to find any client in which I can specify the key length of the symmetric algorithm.


Code:
man ssl-ciphers


will provide the instructions on how to specify specific cipher requirements for commands you might issue with the openssl suite, like s_client.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum