From 22edf463acba9c5de0fd37c67828628ec3695580 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 28 May 2020 09:28:22 +0200 Subject: [PATCH] change header fauxapi pfsense --- apps/pfsense/fauxapi/custom/api.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/pfsense/fauxapi/custom/api.pm b/apps/pfsense/fauxapi/custom/api.pm index 3df40575e..c7f2acc14 100644 --- a/apps/pfsense/fauxapi/custom/api.pm +++ b/apps/pfsense/fauxapi/custom/api.pm @@ -129,7 +129,7 @@ sub build_fauxapi_header { my $timestamp = POSIX::strftime('%Y%m%dZ%H%M%S', gmtime()); my $nonce = sprintf('%08X', rand(0xFFFFFFFF)); - my $hash = Digest::SHA::sha256_hex($self->{api_key} . $timestamp . $nonce); + my $hash = Digest::SHA::sha256_hex($self->{api_secret} . $timestamp . $nonce); return sprintf( '%s:%s:%s:%s', $self->{api_key},