The K Blag

Interesting Topics
  • Home
  • How To...
  • Who is The K?

Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server

Published by Mike on December 10, 2008 10:28 am under ldap, sun

I’ve long had an itch to scratch about the default 3-month duration of self-signed certificates available in Sun DSEE 6.x.

For the initial part, I’ve followed the instructions available at http://www.akadia.com/services/ssh_test_certificate.html.

Create your server’s key

# openssl genrsa -des3 -out server.key 1024

<it will ask for a password, twice>

Make the key use no password, one less thing to remember.

# cp server.key server.key.org
# openssl rsa -in server.key.org -out server.key

We need to generate a certificate signing request, from the Sun Directory Server (DSEE).

cd /path/to/dsadm

./dsadm request-cert –name “ldap.example.com” –org “Example.com” –org-unit “IT” –city “New York” –state “New York” –country “USA” /path/to/ldap > /tmp/server.csr

Sign the certificate request locally, using the key we generated ourselves.  In my case, I’m making it good for approximate 10y (3650 days)

# openssl x509 -req -days 3650 -in /tmp/server.csr -signkey server.key -out
server.crt

We now have a cert as server.crt we need to add to the directory keystore

./dsadm import-selfsign-cert /path/to/ldap ‘ldap.example.com’ server.crt

./dsadm restart /path/to/ldap
./dsconf set-server-prop -h hostname -p 389
ssl-rsa-cert-name:ldap.example.com

Thats all it takes to get your server running with a self-signed 10y certificate.

bookmark to
Add 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to Del.icio.usAdd 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to diggAdd 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to redditAdd 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to TechnoratiAdd 'Longer term self-signed OpenSSL Certificates and Sun DSEE Directory Server' to Stumble Upon

No Comment

Comments are closed.

Posting your comment.

  • Categories

    • changelog
    • E-Mail
    • ldap
    • random
    • replication
    • sun
  • RSS Feeds

    • Posts RSS
    • Comments RSS
  •  

    March 2010
    M T W T F S S
    « Dec    
    1234567
    891011121314
    15161718192021
    22232425262728
    293031  
  • Blogroll

    • Konopka Family
    • The Gastromaniacs

Copyright © 2010 The K Blag