SSL www record confusion

I used the Qualys ssl server test after I installed my ssl to test the ssl setup. I get this error from them saying that “Prefix handling Not valid for “www.example.com” CONFUSING” Is this caused with my certificate. I’m using domain certificate and I only have one domain on it which is example.com. Should I have gotten a wildcard or reissue and add www.example.com to the certificate? Or is this issue with nginx and dns? I added this dns A record curl -d "" --user me@example.com:******** https://example.com/admin/dns/set/www.example.com/A which resulted in www.example.com A 127.0.0.1 Same result though. Should of I change the 127.0.0.1 in the A record? Any help would be great!

Update:
I updated this command to resolve the loop back address.
curl -d "value="IP_ADDRESS" --user me@example.com:******** https://example.com/admin/dns/set/www.example.com/A
This only fix the dns record and even after some time for it to resolve, the test still saids its confused. When i put in www.example.com, I now get "The certificate is only valid for example.com"
I’m starting to believe that the issue is with my cert. Any advice?

Update:
After update to A record with correct IP address and a reissue of cert. It actually works correctly and the Qualys ssl server test verifies this as well.