LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-21-2013, 12:28 PM   #1
bhargav123
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Rep: Reputation: Disabled
389 DS failing to start after ssl encryption in centos 6.2


HI, I am trying to encrypt 389 ds traffic through ssl encryption but failing to start the server after enabling ssl encryption. Following are the steps that I have done do generate CA key/cert and csr(client).

1. vi /etc/pki/tls/openssl.cnf
####################################################################
[ CA_default ]

dir = /etc/pki/CA # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file.
#unique_subject = no # Set to 'no' to allow creation of
# several ctificates with same subject.
new_certs_dir = $dir/newcerts # default place for new certs.

certificate = $dir/ca.crt # The CA certificate
serial = $dir/serial # The current serial number
crlnumber = $dir/crlnumber # the current crl number
# must be commented out to leave a V1 CRL
crl = $dir/ca.crl # The current CRL
private_key = $dir/private/ca.key # The private key
RANDFILE = $dir/private/.rand # private random number file
string_mask = pkix

2. cd /etc/pki/CA
( umask 077; openssl genrsa -out private/ca.key -des3 2048 )
( umask 077; openssl req -new -x509 -key private/ca.key -days 365 > ca.crt )

3. In directory server I am genrerating a csr and signing it by CA
openssl ca -in xx.csr -out xx.crt

4. Importing the Certificates to Database
certutil -A -d . -n CA -t CT,, -i /etc/pki/CA/ca.crt
certutil -A -d . -n CERT -t CT,, -i /etc/pki/CA/certs/xx.crt

5. Enabiling ssl encryption in config tab

6. Now when I am trying to restart 389 ds following error is displayed

/etc/init.d/dirsrv restart
Shutting down dirsrv:
view... [ OK ]
Starting dirsrv:
view...[21/Apr/2013:22:25:23 +051800] createprlistensockets - PR_Bind() on All Interfaces port 636 failed: Netscape Portable Runtime error -5982 (Local Network address is in use.)
[FAILED]
*** Error: 1 instance(s) failed to start

I have check whether any service is using port 636 with netstat command but no luck
#################################################################################################### ###
Please help me in resolving the issue.

Thanks
 
Old 04-21-2013, 03:36 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I have check whether any service is using port 636 with netstat command but no luck

what kind of "Luck" is involved here?? either something is using the port, which is what the error says, or it's not. Luck doesn't come into it.

netstat -plnt | grep 636

Note though that LDAPS is deprecated, and you should really be using STARTTLS over the standard 389 port anyway.
 
Old 04-21-2013, 07:09 PM   #3
bhargav123
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
When I run the command netstat -ntpl | grep 636 I havent found any service using the port.
 
Old 04-22-2013, 01:08 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Are there any selinux errors? I wouldn't usually expect that exact port, but it could be the reason.
 
  


Reply



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
[SOLVED] Setting up Fedora DS(389 DS Server) on centOS 5.4? your_shadow03 Linux - Newbie 8 12-07-2011 01:04 AM
389 Directory Server on CentOS 5.5 rhbegin Linux - Server 4 02-04-2011 01:19 PM
[SOLVED] After 389-ds update dirsrv will no longer start => entire server dead martdj Linux - Server 1 09-25-2010 03:16 PM
LXer: How To Set Up MySQL Database Replication With SSL Encryption On CentOS 5.4 LXer Syndicated Linux News 0 02-18-2010 07:50 PM
Break SSL encryption Ephracis Linux - Security 8 06-05-2005 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:43 PM.

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