change header fauxapi pfsense

This commit is contained in:
garnier-quentin 2020-05-28 09:28:22 +02:00
parent 9b157ca7b1
commit 22edf463ac
1 changed files with 1 additions and 1 deletions

View File

@ -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},