Auto-Configuration Script not working

Keywords: WordPress - AWS - Technical issue - Connectivity (SSH/FTP)
bnsupport ID: 8b8821ff-f5b0-4ff5-92fa-7b6a214b0396
Description:
Hi,

Guide: https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/

I’m following this guide linked above to set up ssh for my new wordpress site.

However, after executing this cmd: sudo /opt/bitnami/letsencrypt/scripts/generate-certificate.sh -m admin@krowdit.com -d krowdit.com -d www.krowdit

I get the following error:

2019/03/25 10:30:04 [INFO] [krowdit.com, www.krowdit] acme: Obtaining bundled SAN certificate
2019/03/25 10:30:05 Could not obtain certificates
acme: Error 400 - urn:ietf:params:acme:error:malformed - Error creating new order :: Name does not end in a public suffix

Error: Something went wrong when running the following command:

$ “$LEGO_BIN” --path “/opt/bitnami/letsencrypt” --email="${email}" ${domain_args} run

Any idea what may be causing this because the domain name is certainly public,

Thanks

Hi @makdaa1,

The www domain name that you provided is not correct. It should be www.krowdit.com instead of www.krowdit

Best regards,
Gonzalo

Hi @gongomgra thanks for response.

I made the change but now getting a new error.:

Sorry still new to this so would appreciate any insight. Should I follow manual install instead?

Thanks,
Ali

Hi @makdaa1,

According to whatsmydns.net DNS checker, it looks like your domain name resolve to multiple IP addresses (DNS Round-Robin). You will need to manually run the lego command as explained below

# Stop services
sudo /opt/bitnami/ctlscript.sh stop

# Request the SSL certificate
sudo /opt/bitnami/letsencrypt/lego --path "/opt/bitnami/letsencrypt" -m "YOUR_EMAIL" -d "krowdit.com" -d "www.krowdit.com" --dns YOUR_DNS_PROVIDER run

# Start services
sudo /opt/bitnami/ctlscript.sh start

You can get the DNS provider name from the link below. Note that, as stated in the guide, you must provide DNS credentials using environment variables.

https://go-acme.github.io/lego/dns/

Hope it helps,
Gonzalo

@gongomgra thanks for your input, really helpful. I fixed the IP issue and the auto config script worked like a charm. How long does it usually take for the https secure connection to be established?

Thanks again!
Ali

Hi @makdaa1,

I’m glad you fixed the issue generating the certificate! :slight_smile: Could you please clarify what do you mean with the sentence below?

How long does it usually take for the https secure connection to be established?

I visited your site using HTTPS and it looks like everything is properly configured except for your header image, that is still being sent through HTTP instead of HTTPS. Could you please tell us what is the output of running the command below? It will prompt for the bn_wordpress user’s password. You can get it from the /opt/bitnami/apps/wordpress/htdocs/wp-config.php file next to the DB_PASSWORD key

sudo mysql -u bn_wordpress -p -e "USE bitnami_wordpress; select option_name, option_value from wp_options WHERE option_name='siteurl' OR option_name='home';"

Regards,
Gonzalo

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.