lib/iam/right_iam_interface.rb
# Uploads an X.509 signing certificate and associates it with the specified User.
#
# Options: :user_name
#
#  certificate_body =<<-EOB
#  -----BEGIN CERTIFICATE-----
#  MIICdzCCAeCgAwIBAgIGANc+Ha2wMA0GCSqGSIb3DQEBBQUAMFMxCzAJBgNVBAYT
#  AlVTMRMwEQYDVQQKEwpBbWF6b24uY29tMQwwCgYDVQQLEwNBV1MxITAfBgNVBAMT
#  GEFXUyBMaW1pdGVkLUFzc3VyYW5jZSBDQTAeFw0wOTAyMDQxNzE5MjdaFw0xMDAy
#  AEaHzTpmEXAMPLE=
#  EOB
#
#  iam.upload_signing_certificate(certificate_body, :user_name => 'kd1') #=>
#    {:user_name        => "kd1",
#     :certificate_id   => "OBG00000000000000000000000000DHY",
#     :status           => "Active",
#     :certificate_body => "-----BEGIN CERTIFICATE-----\nMII...5GS\n-----END CERTIFICATE-----\n",
#     :upload_date      => "2010-10-29T10:02:05.929Z"}
#
Uploads an X.509 signing certificate and associates it with the specified User.




Uploads an X . 509 signing certificate and associates it with the specified User .
def upload_signing_certificate(certificate_body, options={})
      request_hash = { 'CertificateBody' => certificate_body }
      request_hash['UserName'] = options[:user_name] unless options[:user_name].right_blank?
      link = generate_request_impl(:post, "UploadSigningCertificate", request_hash)
      request_info(link, GetSigningCertificateParser.new(:logger => @logger))
    end
def upload_signing_certificate ( certificate_body , options = { } ) request_hash = { 'CertificateBody' => certificate_body } request_hash [ 'UserName' ] = options [ :user_name ] unless options [ :user_name ] . right_blank? link = generate_request_impl ( :post , "UploadSigningCertificate" , request_hash ) request_info ( link , GetSigningCertificateParser . new ( :logger => @logger ) ) end
Uploads an X.509 signing certificate and associates it with the specified User.
Uploads an X . 509 signing certificate and associates it with the specified User .
certificate_body
<not_specific>
options
<not_specific>