-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
24 lines (20 loc) · 988 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="mobi">
<property name="tmpdir" value="${java.io.tmpdir}/${user.name}/${ant.project.name}" />
<target name="import-certificates">
<mkdir dir="${tmpdir}"/>
<delete file="conf/keystore.jks"/>
<exec executable="openssl" inputstring="" output="${tmpdir}/openxades.cert">
<arg line="s_client -showcerts -connect www.openxades.org:8443"/>
</exec>
<exec executable="openssl" inputstring="">
<arg line="x509 -outform der -in ${tmpdir}/openxades.cert -out ${tmpdir}/openxades.der"/>
</exec>
<!--<exec executable="keytool" inputstring="">
<arg line="-delete -alias openxades -keystore keystore.jks -storepass changeit"/>
</exec>-->
<exec executable="keytool" inputstring="yes">
<arg line="-importcert -alias openxades -file ${tmpdir}/openxades.der -keystore conf/keystore.jks -trustcacerts -storepass changeit"/>
</exec>
<delete dir="${tmpdir}"/>
</target>
</project>