Skip to content

Commit 31b4a02

Browse files
committed
v1.0.2 - Updated to latest Kotlin and gradle version
1 parent 7e60b8e commit 31b4a02

File tree

5 files changed

+19
-22
lines changed

5 files changed

+19
-22
lines changed

README.md

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 🏺 Install Certs [ ![version](https://img.shields.io/badge/installcerts-1.0.1-green.svg) ](https://github.com/sureshg/InstallCerts/releases/download/1.0.1/installcerts)
1+
# 🏺 Install Certs [ ![version](https://img.shields.io/badge/installcerts-1.0.2-green.svg) ](https://github.com/sureshg/InstallCerts/releases/download/1.0.2/installcerts)
22

33
`InstallCerts` is a simple cli tool to create [PKCS12](https://en.wikipedia.org/wiki/PKCS_12) trustStore by retrieving server's TLS certificates.
44
You can achieve the same using [OpenSSL](https://en.wikipedia.org/wiki/OpenSSL) and java [Keytool](https://docs.oracle.com/javase/8/docs/technotes/tools/unix/keytool.html) commands, but `InstallCerts` makes it fully automated using a single command.
@@ -7,7 +7,7 @@ You can achieve the same using [OpenSSL](https://en.wikipedia.org/wiki/OpenSSL)
77

88
* Binary
99

10-
[Download (v1.0.1)](https://github.com/sureshg/InstallCerts/releases/download/1.0.1/installcerts)
10+
[Download (v1.0.2)](https://github.com/sureshg/InstallCerts/releases/download/1.0.2/installcerts)
1111

1212
> After download, make sure to set the execute permission (`chmod +x installcerts`). Windows users can run the executable jar.
1313
@@ -20,7 +20,7 @@ You can achieve the same using [OpenSSL](https://en.wikipedia.org/wiki/OpenSSL)
2020
```
2121
> The binary would be located at `build/libs/installcerts`
2222

23-
Inorder to build a new version, change `appVersion` in the [gradle properties](https://github.com/sureshg/InstallCerts/blob/master/gradle.properties) or pass it to `./gradlew -PappVersion=1.0.1`
23+
Inorder to build a new version, change `appVersion` in the [gradle properties](https://github.com/sureshg/InstallCerts/blob/master/gradle.properties) or pass it to `./gradlew -PappVersion=1.0.2`
2424

2525
### Usage
2626

@@ -163,7 +163,7 @@ $ installcerts -h
163163
* Debug TLS Session (`-d`)
164164

165165
```ruby
166-
$ installcerts https://rsa2048.badssl.com/ -d
166+
$ installcerts https://rsa2048.badssl.com/ -a -d
167167
168168
➤ Enabling TLS debug tracing...
169169
Loading default ca truststore...
@@ -185,20 +185,15 @@ $ installcerts -h
185185
0040: 0E 00 33 00 32 C0 2B C0 2F 00 9C C0 2D C0 31 00 ..3.2.+./...-.1.
186186
...
187187
188-
Cached client session: [Session-1, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256]
189-
[read] MD5 and SHA1 hashes: len = 16
190-
0000: 14 00 00 0C 98 CD 71 4B 98 1E 07 A0 3B 82 B1 84 ......qK....;...
191-
main, called close()
192-
main, called closeInternal(true)
193188
main, SEND TLSv1.2 ALERT: warning, description = close_notify
194189
Padded plaintext before ENCRYPTION: len = 2
195190
0000: 01 00 ..
196191
main, WRITE: TLSv1.2 Alert, length = 26
197192
[Raw write]: length = 31
198-
0000: 15 03 03 00 1A 00 00 00 00 00 00 00 01 71 F1 91 .............q..
199-
0010: C5 97 8D 78 EC FA 7D B4 C5 91 69 6C BD 99 78 ...x......il..x
193+
0000: 15 03 03 00 1A 00 00 00 00 00 00 00 01 18 B9 59 ...............Y
194+
0010: 96 9B 04 93 CB 8A 4C EC D8 B1 9B 0C 43 76 E3 ......L.....Cv.
200195
main, called closeSocket(true)
201-
🍺 No errors, certificate is already trusted!
196+
...
202197
```
203198

204199
* Some useful Keytool commands

build.gradle.kts

+9-7
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ buildscript {
1717
var wrapperVersion: String by extra
1818

1919
javaVersion = JavaVersion.VERSION_1_8
20-
kotlinVersion = "1.1.2-eap-44"
21-
wrapperVersion = "3.5-20170331195952+0000"
20+
kotlinVersion = "1.1.2-eap-77"
21+
wrapperVersion = "4.0-20170421144052+0000"
2222
kotlinEAPRepo = "https://dl.bintray.com/kotlin/kotlin-eap-1.1"
2323

2424
repositories {
@@ -91,8 +91,8 @@ tasks.withType<Jar> {
9191
attributes(mapOf("Built-By" to appAuthor,
9292
"Built-Date" to buildDateTime,
9393
IMPLEMENTATION_VERSION.toString() to appVersion,
94-
IMPLEMENTATION_TITLE.toString() to application().applicationName,
95-
MAIN_CLASS.toString() to application().mainClassName))
94+
IMPLEMENTATION_TITLE.toString() to application.applicationName,
95+
MAIN_CLASS.toString() to application.mainClassName))
9696
}
9797
}
9898

@@ -101,13 +101,15 @@ tasks.withType<Jar> {
101101
*/
102102
task<FatCapsule>("makeExecutable") {
103103
val minJavaVer = javaVersion.toString()
104-
archiveName = application().applicationName
104+
val appName = application.applicationName
105+
val appMainClass = application.mainClassName
106+
archiveName = appName
105107
reallyExecutable = ReallyExecutableSpec().regular()
106108
capsuleManifest = CapsuleManifest().apply {
107109
premainClass = "Capsule"
108110
mainClass = "Capsule"
109-
applicationName = application().applicationName
110-
applicationClass = application().mainClassName
111+
applicationName = appName
112+
applicationClass = appMainClass
111113
applicationVersion = version
112114
jvmArgs = listOf("-client")
113115
minJavaVersion = minJavaVer

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ org.gradle.script.lang.kotlin.accessors.auto=true
33

44
# Project custom properties
55
appAuthor=Suresh
6-
appVersion=1.0.1
6+
appVersion=1.0.2

gradle/wrapper/gradle-wrapper.jar

-376 Bytes
Binary file not shown.
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Thu Apr 13 16:08:47 PDT 2017
1+
#Mon Apr 24 13:47:20 PDT 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-script-kotlin-3.5-20170331195952+0000-all.zip
6+
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-script-kotlin-4.0-20170421144052+0000-all.zip

0 commit comments

Comments
 (0)