Yes you are right i tried to generate a Let's Encrypt certificate using the lego tool but i cant generate because of did it before for another instance and mistakenly i deleted that instance. I created new ec2 instance with bitnami wordpress and i want to generate ssl certificate for it with same domain name i used before but it gives me error..
this is what i tried
bitnami@ip-172-31-41-21:/tmp$ sudo lego --email="email@example.com" --dom ains="*.nextbigthings.info" --domains="www.nextbigthings.info" --path="/etc/lego " run
and it gave me this
2018/10/08 01:00:54 No key found for account firstname.lastname@example.org. Generatin g a curve P384 EC key.
2018/10/08 01:00:54 Saved key to /etc/lego/accounts/acme-v02.api.letsencrypt.org /email@example.comfirstname.lastname@example.org
2018/10/08 01:00:55 Please review the TOS at https://letsencrypt.org/documents/L E-SA-v1.2-November-15-2017.pdf
2018/10/08 01:00:55 Do you accept the TOS? Y/n
2018/10/08 01:00:57 [INFO] acme: Registering account for email@example.com o
2018/10/08 01:00:57 !!!! HEADS UP !!!!
Your account credentials have been saved in your Let's Encrypt
configuration directory at "/etc/lego/accounts/acme-v02.api.lets firstname.lastname@example.org".
You should make a secure backup of this folder now. This
configuration directory will also contain certificates and
private keys obtained from Let's Encrypt so making regular
backups of this folder is ideal.
2018/10/08 01:00:57 [INFO][*.nextbigthings.info, www.nextbigthings.info] acme: O btaining bundled SAN certificate
2018/10/08 01:00:57 Could not obtain certificates
acme: Error 400 - urn:ietf:params:acme:error:malformed - Error creating new order :: Domain name "www.nextbigthings.info" is redundant with a wildcard d omain in the same request. Remove one or the other from the certificate request.
bitnami@ip-172-31-41-21:/tmp$ sudo lego --email="email@example.com" --dom ains="*.nextbigthings.info" --domains="www.nextbigthings.info" --path="/etc/lego " renew
2018/10/08 01:01:42 Error while loading the certificate for domain _.nextbigthin gs.info
open /etc/lego/certificates/_.nextbigthings.info.crt: no such file or di rectory