2015-10-23 191 views
0

我想使用Amazon AWS SES API,但他們需要我創建的簽名值,如下面的PHP所示。亞馬遜SES Https Api

$algo ="SHA256"; 
$data = "hello"; 
$key = "my-access-key"; 
$signature = hash_hmac( $algo , $data , $key ); 

我在發送https post請求時收到錯誤 。

<Message> 
Request must contain a signature that conforms to AWS standards 
</Message> 

我哪裏錯了

回答