mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-12-01 12:32:15 -05:00
Merge branch 'master' of https://github.com/timprepscius/mailiverse
This commit is contained in:
commit
e746e7cd28
2
java/ext/.gitignore
vendored
2
java/ext/.gitignore
vendored
@ -1,2 +1,4 @@
|
|||||||
lcrypto-jdk15on-*
|
lcrypto-jdk15on-*
|
||||||
bc-packaged
|
bc-packaged
|
||||||
|
bc-project
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
lcrypto-jdk15on-149
|
|
@ -10,7 +10,7 @@
|
|||||||
<property name="Mailiverse.Core.location" value="../../core"/>
|
<property name="Mailiverse.Core.location" value="../../core"/>
|
||||||
<property name="Mailiverse.Mail-WebServer.location" value="../../webserver"/>
|
<property name="Mailiverse.Mail-WebServer.location" value="../../webserver"/>
|
||||||
<property name="ECLIPSE_HOME" value="../../../../../Desktop/eclipse"/>
|
<property name="ECLIPSE_HOME" value="../../../../../Desktop/eclipse"/>
|
||||||
<property name="Mailiverse.Ext.BouncyCastle.location" value="../lcrypto-jdk15on-148"/>
|
<property name="Mailiverse.Ext.BouncyCastle.location" value="../bouncycastle"/>
|
||||||
<property name="debuglevel" value="source,lines,vars"/>
|
<property name="debuglevel" value="source,lines,vars"/>
|
||||||
<property name="target" value="1.6"/>
|
<property name="target" value="1.6"/>
|
||||||
<property name="source" value="1.6"/>
|
<property name="source" value="1.6"/>
|
||||||
|
4
java/ext/setup.bc → java/ext/setup-bc
Normal file → Executable file
4
java/ext/setup.bc → java/ext/setup-bc
Normal file → Executable file
@ -2,6 +2,8 @@ set -x
|
|||||||
|
|
||||||
wget http://www.bouncycastle.org/download/lcrypto-jdk15on-149.tar.gz
|
wget http://www.bouncycastle.org/download/lcrypto-jdk15on-149.tar.gz
|
||||||
tar xzf lcrypto-jdk15on-*.tar.gz
|
tar xzf lcrypto-jdk15on-*.tar.gz
|
||||||
ln -fs lcrypto-jdk15on-* bc-project
|
|
||||||
|
rm bc-project
|
||||||
|
ln -fs lcrypto-jdk15on-*/ bc-project
|
||||||
|
|
||||||
./make-bc-packaged
|
./make-bc-packaged
|
@ -1,6 +1,6 @@
|
|||||||
set -x
|
set -x
|
||||||
|
|
||||||
JKSSTORE=server.jks
|
JKSSTORE=../primary/server.jks
|
||||||
cp $JKSSTORE store.jks
|
cp $JKSSTORE store.jks
|
||||||
|
|
||||||
keytool -importkeystore -srckeystore store.jks -srcstoretype JKS -deststoretype PKCS12 -destkeystore store.p12
|
keytool -importkeystore -srckeystore store.jks -srcstoretype JKS -deststoretype PKCS12 -destkeystore store.p12
|
||||||
|
@ -1,11 +1,31 @@
|
|||||||
set -x
|
set -x
|
||||||
|
|
||||||
JKSSTORE=server.jks
|
JKSSTORE=../primary/keystore.jks
|
||||||
cp $JKSSTORE store.jks
|
cp $JKSSTORE store.jks
|
||||||
|
|
||||||
keytool -importkeystore -srckeystore store.jks -srcstoretype JKS -deststoretype PKCS12 -destkeystore store.p12
|
echo "password
|
||||||
|
password
|
||||||
|
password" | keytool -importkeystore -srckeystore store.jks -srcstoretype JKS -deststoretype PKCS12 -destkeystore store.p12
|
||||||
|
|
||||||
|
echo '
|
||||||
|
*****************
|
||||||
|
*****************
|
||||||
|
** Enter: "password" 3 times
|
||||||
|
*****************
|
||||||
|
*****************
|
||||||
|
'
|
||||||
|
|
||||||
openssl pkcs12 -in store.p12 -nocerts -out store.key
|
openssl pkcs12 -in store.p12 -nocerts -out store.key
|
||||||
|
|
||||||
|
echo '
|
||||||
|
*****************
|
||||||
|
*****************
|
||||||
|
** Enter: "password" 3 times
|
||||||
|
*****************
|
||||||
|
*****************
|
||||||
|
'
|
||||||
|
|
||||||
openssl rsa -in store.key -out final.key
|
openssl rsa -in store.key -out final.key
|
||||||
|
|
||||||
rm final.crt
|
rm final.crt
|
||||||
cat selfsignedcert.cer >> final.crt
|
cat ../primary/selfsignedcert.cer >> final.crt
|
||||||
|
36
setup
Executable file
36
setup
Executable file
@ -0,0 +1,36 @@
|
|||||||
|
pushd ext
|
||||||
|
tar -xzf apache-tomcat.tar.gz
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd java/ext
|
||||||
|
./setup-bc
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd build
|
||||||
|
./compile-java
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd passwords
|
||||||
|
./make
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd keys
|
||||||
|
./make
|
||||||
|
|
||||||
|
pushd primary
|
||||||
|
./make-self-signed-key
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd nginx
|
||||||
|
./convert-selfsigned
|
||||||
|
popd
|
||||||
|
popd
|
||||||
|
|
||||||
|
echo 'Enter the name of your site (example: joesmail.com):'
|
||||||
|
read site
|
||||||
|
|
||||||
|
pushd config/hosts
|
||||||
|
./make-prod $site
|
||||||
|
./make-dev $site
|
||||||
|
popd
|
||||||
|
|
Loading…
Reference in New Issue
Block a user