Blane Townsend
Blane Townsend

Reputation: 3038

AWS Certificate Manager DNS Validation method not working with API

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'
]);

Upvotes: 0

Views: 478

Answers (1)

Blane Townsend
Blane Townsend

Reputation: 3038

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

Upvotes: 1

Related Questions