diff --git a/pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/CliCommand.kt b/pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/CliCommand.kt index c0713121..4cb3c466 100644 --- a/pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/CliCommand.kt +++ b/pkl-commons-cli/src/main/kotlin/org/pkl/commons/cli/CliCommand.kt @@ -218,8 +218,9 @@ abstract class CliCommand(protected val cliOptions: CliBaseOptions) { } if (!certsAdded) { val defaultCerts = - javaClass.classLoader.getResourceAsStream("org/pkl/commons/cli/PklCARoots.pem") - ?: throw CliException("Could not find bundled certificates") + this@CliCommand.javaClass.classLoader.getResourceAsStream( + "org/pkl/commons/cli/PklCARoots.pem" + ) ?: throw CliException("Could not find bundled certificates") addCertificates(defaultCerts.readAllBytes()) } }