mtls-check wrapping openssl kinda working
This commit is contained in:
@@ -351,7 +351,14 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
flake.wrappers = {
|
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 = {
|
options = {
|
||||||
bundleFile = lib.mkOption {
|
bundleFile = lib.mkOption {
|
||||||
description = "String path for the mTLS key bundle";
|
description = "String path for the mTLS key bundle";
|
||||||
@@ -361,7 +368,8 @@ in
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
binName = "mtls-check";
|
binName = "mtls-check";
|
||||||
package = config.pkgs.openssl;
|
package = singleOutputOpenSSL;
|
||||||
|
exePath = "${singleOutputOpenSSL}/bin/openssl";
|
||||||
args = [
|
args = [
|
||||||
"x509"
|
"x509"
|
||||||
"-noout"
|
"-noout"
|
||||||
|
|||||||
Reference in New Issue
Block a user