389 DS failing to start after ssl encryption in centos 6.2
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.