You can use this script to setup SSL for your domains on DigitalOcean, Ubuntu 16.04.
Log in to DO through SSH. Clone this repository with the following command:
git clone https://github.com/jaskipper/DO-ssl-setup.git
Run the bash installer to begin the guided installation.
DO-ssl-setup/sslsetup