-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
executable file
·55 lines (38 loc) · 2.03 KB
/
README.txt
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
This project is maintained in svn and git:
http://tim-pizey.blogspot.co.uk/2011/08/dual-repositories-subversion-and-git.html
mvn clean install war:war
should build a jar and a war
Cloud1 has a self signed certificate: beware.
Installing certificate
======================
Note that this fails, without error:
keytool -import -file src/main/resources/ssl-cert-snakeoil.pem -alias cloud1
You need to specify cacerts explicitly (default password = changeit):
$cd /cygdrive/c/Program Files/Java/jdk1.6.0_24/jre/lib/security
$ keytool -import -file /Users/timp/workspace/casutils/src/main/resources/ssl-cert-snakeoil.pem \
-alias cloud1 -keystore ./cacerts
Enter keystore password:
Owner: CN=cloud1.cggh.org
Issuer: CN=cloud1.cggh.org
Serial number: f01c6ab885f5c5f5
Valid from: Wed May 18 14:24:53 BST 2011 until: Sat May 15 14:24:53 BST 2021
Certificate fingerprints:
MD5: 3F:F4:21:86:3E:4B:37:6D:68:18:C2:16:91:EE:C4:58
SHA1: 86:36:80:18:CA:F7:9D:6B:21:08:AF:E4:58:F4:B0:63:C5:DF:BA:D4
Signature algorithm name: SHA1withRSA
Version: 1
Trust this certificate? [no]: yes
Certificate was added to keystore
Much the same on Ubuntu:
cd /etc/java-6-openjdk/security/
sudo keytool -import -file ~/dsn-chassis/casutils/src/main/resources/ssl-cert-snakeoil.pem -alias cloud1 -keystore ./cacerts
then to get it to work in eclipse:
cd /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/security
sudo keytool -import -file ~/dsn-chassis/casutils/src/main/resources/ssl-cert-snakeoil.pem -alias cloud1 -keystore ./cacerts
And on OSX
cd /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/security/
keytool -import -file /Users/timp/workspace/casutils/src/main/resources/ssl-cert-snakeoil.pem -alias cloud1 -keystore ./cacerts
Note that Jenkins will use its own JDK unless you tell it otherwise.
for Jenkins (as root):
cd /usr/lib/jvm/java-6-openjdk/jre/lib/security
keytool -import -file /var/lib/jenkins/jobs/casutils/workspace/src/main/resources/ssl-cert-snakeoil.pem -alias cloud1 -keystore ./cacerts