~ifolder-dev/simias/trunk-packaging

« back to all changes in this revision

Viewing changes to tools/gsoap/gsoap-linux-2.7/samples/ssl/.svn/text-base/root.sh.svn-base

  • Committer: Jorge O. Castro
  • Date: 2007-12-03 06:56:46 UTC
  • Revision ID: jorge@ubuntu.com-20071203065646-mupcnjcwgm5mnhyt
* Remove a bunch of .svn directories we no longer need.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Create the self-signed root CA and root's certificate: root.pem cacert.pem
2
 
 
3
 
echo "* Create the self-signed root CA and root's certificate: root.pem cacert.pem"
4
 
echo "* Distribute the cacert.pem to clients to authenticate your server"
5
 
echo "* Enter a (new) secret pass phrase when requested"
6
 
echo "* Enter it again when prompted"
7
 
echo "* You need the pass phrase later to sign the client and server key files"
8
 
echo "* Enter your company name as the Common Name (e.g. genivia.com) when requested"
9
 
echo "* The root CA will expire after three years (1095 days)"
10
 
 
11
 
openssl req -newkey rsa:1024 -sha1 -keyout rootkey.pem -out rootreq.pem
12
 
 
13
 
openssl x509 -req -in rootreq.pem -sha1 -extfile openssl.cnf -extensions v3_ca -signkey rootkey.pem -out cacert.pem -days 1095
14
 
 
15
 
cat cacert.pem rootkey.pem > root.pem
16
 
 
17
 
openssl x509 -subject -issuer -dates -noout -in root.pem