DigitalOcean Java API

February 4, 2013 6.3k views
Hi. I've searched for a java api wrapper without any luck so I've started to build one. For the moment is very basic. Give it a try. If someone else has a better implementation please share so we can join forces. Thanks
3 Answers
That's pretty sweet also check out our developers working on integrating with the API in this thread:
I have published the digitalocean-api-client [] library into Maven Central Repo. It's simple and easy to use.


Refer Readme at

Refer Test case for usage:

We're trying to access Digital Ocean API using Java, but apparently Java has a known issue with some types of SSL certificates.

Digital Ocean API uses a godaddy wildcard certificate, and sometimes the Java code throws the following exception:
java.lang.RuntimeException: Could not generate DH keypair

It's random, sometimes the key exchange works and sometimes doesn't.

Has this problem ever happened to anyone?
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!