The Chef API (http://docs.opscode.com/auth.html) requires HTTP requests to include a set of headers that are signed with a user's RSA private key. The Python API client (https://github.com/coderanger/pychef/blob/master/chef/rsa.py#L179) and the official Ruby API client (https://github.com/opscode/chef/blob/master/lib/chef/http/auth_credentials.rb#L50) both use OpenSSL's "rsa_private_encrypt" function.When trying to implement this functionality in Go, there doesn't seem to be an equivalent function. Using PyChef as a comparison, trying to sign the exact same data with the exact same private key produces different signatures.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks,
Alex
I'm not sure whether it'll be a helper function or a documented mode
of SignPKCS1v15, but it won't just be dropped in there as a hidden
feature.