Allow generating credentials file for the gem repository when using the client cert authentication via cURL to a Artifactory that is setup with HTTP SSO. Currently the REST API to create the credentials file for Rubygems repository only works with username and password.
With cURL it is possible to authenticate to Artifactory that is using HTTP SSO if you pass the cert and key. This means in Artifactory we should be able to get the HTTP SSO user based on the successful auth request with cURL and generate the "credentials" file for the Rubygems repositories. For example below is an API call for generating the "credentials" file when using HTTP SSO method, but please note that this currently fails.
curl –key key.pem --cert cert.pem https://<server_name>/api/gems/gems/api/v1/api_key.yaml