Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I had had problem in ubuntu 14.04 server with python. So i add ppa for never python version (it is bad idea lol) Also if you have TLS cert it is good idea to enable HTTP/2 in your server too.
I’ve been unable to successfully install this cert. Every time I try to install it, I’m thrown to a screen stating “We were unable to find a vhost with a ServerName or Address of
mydomain.com
Which virtual host would you like to choose?”
No matter which option I choose, I’m then faced with the following error message. “Error while running apache2ctl configtest. Action ‘configtest’ failed. The Apache error log may have more information. AH00526: Syntax error on line 14 of /etc/apache2/sites-enabled/000-default.conf.save-le-ssl.conf: ServerName takes one argument, The hostname and port of the server”
Any idea how I can get this working?
Great Article.I just set up for my domain. Just set up the virtual host as per https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts if you are getting the default.conf tab.
Hi @erikaheidi, thanks for this article and renewal script! I recently made a blog post describing how to set it up with nginx, in this post I’ve added a link to this post, and a link to an edited le-renew script which I’ve made to run with nginx, based on the script you provide in this post. I hope you don’t mind :)
The blog post can be read here
Solved
"I tried following these instructions but seem to get an error that says
"IMPORTANT NOTES:
The following ‘urn:acme:error:connection’ errors were reported by the server:
Domains: mydomain.com Error: The server could not connect to the client to verify the domain"
I had to unblock port 443 in ufw
Thanks for the tutorial.
Hej there, I am always getting the following error when hitting ./letsencrypt-auto --apache --d iamjannik.me:
Updating letsencrypt and virtual environment dependencies.../root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
./root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
./root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Failed building wheel for cryptography
Failed building wheel for cffi
Command "/root/.local/share/letsencrypt/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-H1F6og/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-NfyK5J-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/letsencrypt/include/site/python2.7/cffi" failed with error code 1 in /tmp/pip-build-H1F6og/cffi
Maybe, one of you can help me… :/
Is there a away for Apache to force visitors to use HTTPS only. I had the option selected but I can still browse my site on http://www.mysite.com - https://www.mysite.com does also work.
Thanks for the tutorial. Very helpful.
Seems the default version of python supplied with Ubuntu 14.04 may need some extra updates to run letsencrypt. I needed to update python’s ssl libraries:
apt-get install python-dev libffi-dev libssl-dev
apt-get install python-pip
pip install 'requests[security]'
pip install pyopenssl ndg-httpsclient pyasn1
Then I needed to import ssl into python.
python
import ssl
quit()
Also, I found my domain name example.com must have an A record on the DNS server
and it must be the same IP address as the A record for www.example.com
A CNAME DNS record for www.example.com is not sufficient – it must be an A record.
Thanks for the article. Although the script will generate an error if you have multiple vhosts, it does generate the certificate even though it does not update the apache configuration. This is easily fixed by manually adding the statements to the vhost file for each site and restarting apache.