Skip to content
Permalink
Newer
Older
100755 23 lines (17 sloc) 388 Bytes
1
#!/bin/bash
2
#
3
# Generate a self signed certificate
4
#
5
6
7
# Self-signed certificate for development laptops
8
# -----------------------------------------------
9
10
cat > data.conf << EOF
11
IT
12
IT
13
IT
14
IT
15
IT
16
IT
17
yes
18
19
20
EOF
21
22
# Everything in one line
23
$JAVA_HOME/bin/keytool -genkey -keyalg RSA -alias selfsigned -keystore /opt/certs/keystore.jks -storepass password -validity 360 -keysize 2048 < data.conf
You can’t perform that action at this time.