File tree Expand file tree Collapse file tree
zookeeper-client/zookeeper-client-c/ssl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,21 +8,23 @@ http://bigtop.apache.org/
88
99## Requirements
1010
11- - ant (recommended version 1.9.4 or later for concurrent JUnit test execution) or maven to build the java code
12- - gcc, cppunit and python-setuptools are required to build C and python bindings.
11+ - you need maven to build the java code
12+ - gcc, cppunit, openssl and python-setuptools are required to build C and python bindings. (only needed when using ` -Pfull-build ` )
1313
1414On RHEL machine:
1515
1616```
1717yum install cppunit
1818yum install python-setuptools
19+ yum install openssl openssl-devel
1920```
2021
2122On Ubuntu:
2223
2324```
2425apt-get install cppunit
2526apt-get install python-setuptools
27+ apt-get install openssl libssl-dev
2628```
2729
2830
Original file line number Diff line number Diff line change 2525# relative to the canonical path of this script.
2626#
2727
28+ # use local fully qualified domain name in the certificates, or fall back
29+ # to zookeeper.apache.org if no domain name is set or the `hostname` command fails
30+ FQDN=` hostname -f`
31+ FQDN=${FQDN:- " zookeeper.apache.org" }
32+
2833# Generate the root key
2934openssl genrsa -out rootkey.pem 2048
3035
4247ST = California
4348L = San Francisco
4449O = ZooKeeper
45- emailAddress = dev@zookeeper.apache.org
46- CN = zookeeper.apache.org
50+ emailAddress = dev@$FQDN
51+ CN = $FQDN
4752EOF
4853)
4954
6469ST = California
6570L = San Francisco
6671O = ZooKeeper
67- emailAddress = dev@zookeeper.apache.org
68- CN = zookeeper.apache.org
72+ emailAddress = dev@$FQDN
73+ CN = $FQDN
6974EOF
7075)
7176openssl x509 -req -in client.csr -CA root.crt -CAkey rootkey.pem -CAcreateserial -days 3650 -out client.crt
@@ -95,8 +100,8 @@ C = US
95100ST = California
96101L = San Francisco
97102O = ZooKeeper
98- emailAddress = dev@zookeeper.apache.org
99- CN = zookeeper.apache.org
103+ emailAddress = dev@$FQDN
104+ CN = $FQDN
100105EOF
101106)
102107openssl x509 -req -in server.csr -CA root.crt -CAkey rootkey.pem -CAcreateserial -days 3650 -out server.crt
You can’t perform that action at this time.
0 commit comments