mtls-check wrapping openssl kinda working
This commit is contained in:
@@ -351,7 +351,14 @@ in
|
||||
};
|
||||
|
||||
flake.wrappers = {
|
||||
mtlsCheck = inputs.wrappers.lib.wrapModule ({ config, lib, wlib, ... }: {
|
||||
mtlsCheck = inputs.wrappers.lib.wrapModule ({ config, lib, wlib, ... }:
|
||||
let
|
||||
singleOutputOpenSSL = config.pkgs.symlinkJoin {
|
||||
name = "openssl";
|
||||
paths = [ config.pkgs.openssl.bin config.pkgs.openssl.man ];
|
||||
meta.mainProgram = "openssl";
|
||||
};
|
||||
in {
|
||||
options = {
|
||||
bundleFile = lib.mkOption {
|
||||
description = "String path for the mTLS key bundle";
|
||||
@@ -361,7 +368,8 @@ in
|
||||
|
||||
config = {
|
||||
binName = "mtls-check";
|
||||
package = config.pkgs.openssl;
|
||||
package = singleOutputOpenSSL;
|
||||
exePath = "${singleOutputOpenSSL}/bin/openssl";
|
||||
args = [
|
||||
"x509"
|
||||
"-noout"
|
||||
|
||||
Reference in New Issue
Block a user