lib/iam/right_iam_interface.rb
# Uploads a server certificate entity for the AWS Account. The server certificate
# entity includes a public key certificate, a private key, and an optional certificate
# chain, which should all be PEM-encoded.
#
# Options: :certificate_chain, :path
#
#  certificate_body =<<-EOB
#  -----BEGIN CERTIFICATE-----
#  MIICdzCCAeCgAwIBAgIGANc+Ha2wMA0GCSqGSIb3DQEBBQUAMFMxCzAJBgNVBAYT
#  AlVTMRMwEQYDVQQKEwpBbWF6b24uY29tMQwwCgYDVQQLEwNBV1MxITAfBgNVBAMT
#  GEFXUyBMaW1pdGVkLUFzc3VyYW5jZSBDQTAeFw0wOTAyMDQxNzE5MjdaFw0xMDAy
#  AEaHzTpmEXAMPLE=
#  EOB
#
#  private_key =<<EOK
#  -----BEGIN DSA PRIVATE KEY-----
#  MIIBugIBTTKBgQD33xToSXPJ6hr37L3+KNi3/7DgywlBcvlFPPSHIw3ORuO/22mT
#  8Cy5fT89WwNvZ3BPKWU6OZ38TQv3eWjNc/3U3+oqVNG2poX5nCPOtO1b96HYX2mR
#  62TITdw53KWJEXAMPLE=
#  EOK
#
#  iam.upload_server_certificate('KdCert1', certificate_body, private_key, :path=>'/kdcert/') #=>
#    {:server_certificate_id=>"ASCDJN5K5HRGS1N2UJWWU",
#     :server_certificate_name=>"KdCert1",
#     :upload_date=>"2010-12-09T13:21:07.226Z",
#     :path=>"/kdcert/",
#     :arn=>"arn:aws:iam::600000000007:server-certificate/kdcert/KdCert1"}
#
Uploads a server certificate entity for the AWS Account. The server certificate
entity includes a public key certificate, a private key, and an optional certificate
chain, which should all be PEM-encoded.








Uploads a server certificate entity for the AWS Account . The server certificate entity includes a public key certificate a private key and an optional certificate chain which should all be PEM - encoded .
def upload_server_certificate(server_certificate_name, certificate_body, private_key, options={})
      request_hash = { 'CertificateBody'       => certificate_body,
                       'PrivateKey'            => private_key,
                       'ServerCertificateName' => server_certificate_name }
      request_hash['CertificateChain'] = options[:certificate_chain] unless options[:certificate_chain].right_blank?
      request_hash['Path']             = options[:path]              unless options[:path].right_blank?
      link = generate_request_impl(:post, "UploadServerCertificate", request_hash)
      request_info(link, GetServerCertificateParser.new(:logger => @logger))
    end
def upload_server_certificate ( server_certificate_name , certificate_body , private_key , options = { } ) request_hash = { 'CertificateBody' => certificate_body , 'PrivateKey' => private_key , 'ServerCertificateName' => server_certificate_name } request_hash [ 'CertificateChain' ] = options [ :certificate_chain ] unless options [ :certificate_chain ] . right_blank? request_hash [ 'Path' ] = options [ :path ] unless options [ :path ] . right_blank? link = generate_request_impl ( :post , "UploadServerCertificate" , request_hash ) request_info ( link , GetServerCertificateParser . new ( :logger => @logger ) ) end
Uploads a server certificate entity for the AWS Account.
Uploads a server certificate entity for the AWS Account .
server_certificate_name
<not_specific>
certificate_body
<not_specific>
private_key
<not_specific>
options
<not_specific>