Skip to content

Commit

Permalink
print serial number when using --verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
nkiesel committed Jun 10, 2024
1 parent e6fc2e0 commit 8ac185d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "nkiesel.org"
version = "2.7.1"
version = "2.7.2"

repositories {
mavenCentral()
Expand All @@ -18,8 +18,8 @@ repositories {
dependencies {
implementation("com.github.ajalt.clikt:clikt:4.3.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.0")
implementation("org.http4k:http4k-core:5.22.0.0")
implementation("org.http4k:http4k-client-okhttp:5.22.0.0")
implementation("org.http4k:http4k-core:5.23.0.0")
implementation("org.http4k:http4k-client-okhttp:5.23.0.0")
implementation("com.github.ajalt.mordant:mordant:2.6.0")

testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.2")
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/CertificateHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ class CertificateHelper : CliktCommand(
println("\n${prefix}X509 v$version ${selfSigned}${root}certificate for ${cn(subjectX500Principal)}")
println("\tCertificate fingerprint: $fingerprint")
println("\tPublic key fingerprint: ${publicKey.encoded.fingerprint()}")
if (verbose) println("\tSerial number: $serialNumber")
val now = Instant.now()
val notBeforeInstant = notBefore.toInstant()
if (notBeforeInstant > now) {
Expand Down

0 comments on commit 8ac185d

Please sign in to comment.