| Class | Sprout::ADTCertTask |
| In: |
bundles/as3/lib/sprout/tasks/adt_cert_documentation.rb
bundles/as3/lib/sprout/tasks/adt_task.rb |
| Parent: | ToolTask |
The ADT Cert Task provides Rake support for the AIR Developer Tool certificate command. livedocs.adobe.com/flex/3/html/CommandLineTools_6.html#1034775
The certificate and associated private key generated by ADT are stored in a PKCS12-type keystore file. The password specified is set on the key itself, not the keystore.
The following example can be pasted in a file named ‘rakefile.rb’:
# Create an ADL task named :run dependent upon the swf that it is using for the window content
adt_cert :certificate do |t|
t.cn = "Common name"
t.keytype = "1024-RSA"
t.keystore = "cert.p12"
t.keypass = "thepassword"
end
A two-letter ISO-3166 country code. A certificate is not generated if an invalid code is supplied.
# File bundles/as3/lib/sprout/tasks/adt_cert_documentation.rb, line 24 def c=(string) @c = string end
Using -certificate option as default.
# File bundles/as3/lib/sprout/tasks/adt_cert_documentation.rb, line 4 def certificate=(boolean) @certificate = boolean end
The string assigned as the common name of the new certificate.
# File bundles/as3/lib/sprout/tasks/adt_cert_documentation.rb, line 9 def cn=(string) @cn = string end
# File bundles/as3/lib/sprout/tasks/adt_task.rb, line 180 def initialize_task super @default_gem_name = 'sprout-flex3sdk-tool' @default_gem_path = 'bin/adt' # Certificate command is "adt -certificate" add_param(:certificate, :boolean) do |p| p.description = "Using -certificate option as default." p.value = true p.hidden_value = true end add_param(:cn, :string) do |p| p.required = true p.delimiter = " " p.description = "The string assigned as the common name of the new certificate." end add_param(:ou, :string) do |p| p.delimiter = " " p.description = "Astring assigned as the organizational unit issuing the certificate." end add_param(:o, :string) do |p| p.delimiter = " " p.description = "A string assigned as the organization issuing the certificate." end add_param(:c, :string) do |p| p.delimiter = " " p.description = "A two-letter ISO-3166 country code. A certificate is not generated if an invalid code is supplied." end add_param(:keytype, :string) do |p| p.hidden_name = true p.required = true p.description = %{The type of key to use for the certificate, either "1024-RSA" or "2048-RSA".} end add_param(:keystore, :file) do |p| p.hidden_name = true p.required = true p.description = "The path for the certificate file to be generated." end add_param(:keypass, :string) do |p| p.hidden_name = true p.required = true p.description = "The password for the new certificate. The password is required when signing AIR files with this certificate." end end
The password for the new certificate. The password is required when signing AIR files with this certificate.
# File bundles/as3/lib/sprout/tasks/adt_cert_documentation.rb, line 39 def keypass=(string) @keypass = string end
The path for the certificate file to be generated.
# File bundles/as3/lib/sprout/tasks/adt_cert_documentation.rb, line 34 def keystore=(file) @keystore = file end
The type of key to use for the certificate, either "1024-RSA" or "2048-RSA".
# File bundles/as3/lib/sprout/tasks/adt_cert_documentation.rb, line 29 def keytype=(string) @keytype = string end
A string assigned as the organization issuing the certificate.
# File bundles/as3/lib/sprout/tasks/adt_cert_documentation.rb, line 19 def o=(string) @o = string end