mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
change header fauxapi pfsense
This commit is contained in:
parent
630fe11185
commit
f7594031df
@ -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},
|
||||
|
Loading…
x
Reference in New Issue
Block a user