Skip to content

Commit 6d52da0

Browse files
committed
Initial commit
0 parents  commit 6d52da0

16 files changed

+564
-0
lines changed

.gitignore

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
6+
7+
### IntelliJ IDEA ###
8+
.idea/modules.xml
9+
.idea/jarRepositories.xml
10+
.idea/compiler.xml
11+
.idea/libraries/
12+
*.iws
13+
*.iml
14+
*.ipr
15+
out/
16+
!**/src/main/**/out/
17+
!**/src/test/**/out/
18+
19+
### Eclipse ###
20+
.apt_generated
21+
.classpath
22+
.factorypath
23+
.project
24+
.settings
25+
.springBeans
26+
.sts4-cache
27+
bin/
28+
!**/src/main/**/bin/
29+
!**/src/test/**/bin/
30+
31+
### NetBeans ###
32+
/nbproject/private/
33+
/nbbuild/
34+
/dist/
35+
/nbdist/
36+
/.nb-gradle/
37+
38+
### VS Code ###
39+
.vscode/
40+
41+
### Mac OS ###
42+
.DS_Store

.idea/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/discord.xml

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Pavel Konstantinov
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## okhttpsslcli
2+
Nifty little binary that uses [Peer certificate extractor](https://github.com/fabiomsr/okhttp-peer-certificate-extractor)
3+
to extract OkHttp compatible certificate hash for SSL pinning
4+
5+
Built with GraalVM
6+
7+
### License
8+
For this app's license check LICENSE file
9+
10+
Beware that [Peer certificate extractor](https://github.com/fabiomsr/okhttp-peer-certificate-extractor) falls under their own copyright.
11+
Consult the link for additional info

build.gradle.kts

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
plugins {
2+
id("java")
3+
id("org.graalvm.buildtools.native") version "0.9.13"
4+
}
5+
6+
group = "ru.meproject"
7+
version = "1.0-SNAPSHOT"
8+
val javaTarget = 17
9+
10+
java {
11+
toolchain {
12+
languageVersion.set(JavaLanguageVersion.of(javaTarget))
13+
}
14+
}
15+
16+
repositories {
17+
mavenCentral()
18+
maven("https://jitpack.io")
19+
}
20+
21+
dependencies {
22+
implementation("info.picocli:picocli:4.6.3")
23+
annotationProcessor("info.picocli:picocli-codegen:4.6.3")
24+
implementation("com.github.fabiomsr:okhttp-peer-certificate-extractor:master-SNAPSHOT")
25+
}
26+
27+
graalvmNative {
28+
toolchainDetection.set(true)
29+
binaries {
30+
named("main") {
31+
imageName.set("okhttpsslcli")
32+
mainClass.set("ru.meproject.okhttpsslcli.Application")
33+
debug.set(true) // Determines if debug info should be generated, defaults to false
34+
verbose.set(true) // Add verbose output, defaults to false
35+
fallback.set(true) // Sets the fallback mode of native-image, defaults to false
36+
// buildArgs.add("-H:Extra")
37+
// jvmArgs.add("flag") // Passes 'flag' directly to the JVM running the native image builder
38+
configurationFileDirectories.from(file("build/classes/java/main/META-INF/native-image/picocli-generated"))
39+
}
40+
}
41+
}

gradle/wrapper/gradle-wrapper.jar

58.4 KB
Binary file not shown.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)