My favorites | Sign in
Project Home Downloads Issues Source
Repository:
Checkout   Browse   Changes   Clones    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

# This script will make a set of certificates for federation.
# To actually federate, the certificiates will need to be signed.
#
# For instructions, see: http://www.waveprotocol.org/federation/certificates

NAME=$1

if [ "$NAME" == '' ]
then
echo "Usage: $0 <domain name>" 1>&2
echo "See http://www.waveprotocol.org/federation/certificates\
for more information" 1>&2
exit 1
fi

echo "1) Generating key for $NAME in '$NAME.key' ..."
echo
openssl genrsa 2048 | openssl pkcs8 -topk8 -nocrypt -out "$NAME.key"

echo
echo "2) Generating certificate request for $NAME in '$NAME.crt' ..."
echo
openssl req -new -x509 -nodes -sha1 -days 365 -key "$NAME.key" -out "$NAME.crt"

Change log

598145d64a52 by so...@google.com on Oct 11, 2010   Diff
Updated wiki references to point to new
sites pages.
Go to: 
Sign in to write a code review

Older revisions

73f71825de63 by Joseph Gentle <josephg> on Sep 6, 2010   Diff
added url to usage information
bacc564ff7e1 by Joseph Gentle <josephg> on Sep 6, 2010   Diff
Cleaned up script a touch
2034b3fa61cf by Joseph Gentle <josephg> on Sep 6, 2010   Diff
Added make_sert script to the
repository
All revisions of this file

File info

Size: 760 bytes, 25 lines
Powered by Google Project Hosting