behanceops/ssl — pull request #1 by chrishenry (2014-01-15 14:51:16+00:00)
Title: For unknown reasons, the eassl gem started throwing odd errors, to the t...

...une of;

```
TypeError
---------
can't convert EaSSL::CertificateName into Hash

Cookbook Trace:
---------------
/var/chef/cache/cookbooks/ssl/libraries/x509.rb:34:in `x509_issue_self_signed_cert'
/var/chef/cache/cookbooks/ssl/providers/certificate.rb:123:in `block in class_from_file'

Resource Declaration:
---------------------

35: ssl_certificate "wildcard.#{node['fqdn']}" do
36: ca "MyCA"
37: key key_file
38: certificate cert_file
39: bits 1024
40: days 365
41: end
42:
```

After a few hour long debugging session, there was no solution found that would work with this gem. The workaround in this commit will skip over all calls to the `x509` library in this cookbook, and will instead make some raw calls to the `openssl` builtin Ruby library.