0

I am trying to create an SSL Certificate through the AWS PHP API by running the code below. The Certificate gets created, the problem is that the validation method the certificate uses is EMAIL and not DNS. I want to use the DNS validation method. Are there other parameters that have to be passed into the function? Any ideas here as to why my certificate is getting set to Email instead of DNS Validation?

$acm->requestCertificate([
    'DomainName' => "*.example.com",
    'SubjectAlternativeNames' => ["example.com"],
    'ValidationMethod' => 'DNS'
]);
Blane Townsend
  • 2,888
  • 5
  • 41
  • 55
  • 1
    This was introduced in 3.39.2 - 2017-11-22, do you have the latest SDK? – Dusan Bajic Dec 19 '17 at 09:41
  • I didn't have the updated SDK. Is there a reason why the docs say the current API version is 2015-12-08 http://docs.aws.amazon.com/aws-sdk-php/v3/api/class-Aws.Acm.AcmClient.html – Blane Townsend Dec 19 '17 at 19:50

1 Answers1

1

Dusan Bajic was correct. I needed to update to the latest SDK.

Dusan Bajic
  • 10,249
  • 3
  • 33
  • 43
Blane Townsend
  • 2,888
  • 5
  • 41
  • 55