Tizen 2.0 Release tizen_2.0 submit/tizen_2.0/20130215.192347
authorHyungKyu Song <hk76.song@samsung.com>
Fri, 15 Feb 2013 15:59:27 +0000 (00:59 +0900)
committerHyungKyu Song <hk76.song@samsung.com>
Fri, 15 Feb 2013 15:59:27 +0000 (00:59 +0900)
22 files changed:
AUTHORS [new file with mode: 0644]
LICENSE [new file with mode: 0644]
LICENSE-2.0.htm [new file with mode: 0644]
LICENSE.APLv2 [new file with mode: 0644]
NOTICE [new file with mode: 0644]
README [new file with mode: 0644]
package/build.linux [new file with mode: 0755]
package/pkginfo.manifest [new file with mode: 0644]
pkginfo.manifest [new file with mode: 0644]
src/build.xml [new file with mode: 0644]
src/libs/bcpkix-jdk15on-147.jar [new file with mode: 0644]
src/libs/bcprov-jdk15on-147.jar [new file with mode: 0644]
src/libs/commons-ssl.jar [new file with mode: 0644]
src/res/certificates/developer/conf.ini [new file with mode: 0644]
src/res/certificates/developer/tizen-developer-ca-privatekey.pem [new file with mode: 0755]
src/res/certificates/developer/tizen-developer-ca.cer [new file with mode: 0644]
src/res/certificates/distributor/tizen-distributor-ca.cer [new file with mode: 0644]
src/res/certificates/distributor/tizen-distributor-signer.cer [new file with mode: 0644]
src/res/certificates/distributor/tizen-distributor-signer.p12 [new file with mode: 0644]
src/script/certificate-generator.bat [new file with mode: 0644]
src/script/certificate-generator.sh [new file with mode: 0755]
src/src/keycertificategenerator/TizenKeyCertificateGenerator.java [new file with mode: 0755]

diff --git a/AUTHORS b/AUTHORS
new file mode 100644 (file)
index 0000000..75787cc
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,2 @@
+Ashish Mehta <ashish.mehta@samsung.com>  
+Hyunwoo Kim <hwlove.kim@samsung.com>
diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..e2ca7a9
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,207 @@
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+
+
+
diff --git a/LICENSE-2.0.htm b/LICENSE-2.0.htm
new file mode 100644 (file)
index 0000000..e52d995
--- /dev/null
@@ -0,0 +1,388 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+  <head>
+    <title>Apache License, Version 2.0</title>
+
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <meta property="og:image" content="http://www.apache.org/images/asf_logo.gif" />
+
+    <link rel="stylesheet" type="text/css" media="screen" href="/css/style.css">
+    <link rel="stylesheet" type="text/css" media="screen" href="/css/code.css">
+
+    <script type="text/javascript" src="/js/jquery.js"></script>
+    <script type="text/javascript" src="/js/apache_boot.js"></script>
+
+    
+
+    
+    <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file to you under the Apache License, Version 2.0 (the &quot;License&quot;); you may not use this file except in compliance with the License.  You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the specific language governing permissions and limitations under the License. -->
+  </head>
+
+  <body>
+    <div id="page" class="container_16">
+      <div id="header" class="grid_8">
+        <img src="/images/feather-small.gif" alt="The Apache Software Foundation">
+        <h1>The Apache Software Foundation</h1>
+        <h2>Apache License, Version 2.0</h2>
+      </div>
+      <div id="nav" class="grid_8">
+        <ul>
+          <!-- <li><a href="/" title="Welcome!">Home</a></li> -->
+          <li><a href="/foundation/" title="The Foundation">Foundation</a></li>
+          <li><a href="http://projects.apache.org" title="The Projects">Projects</a></li>
+          <li><a href="http://people.apache.org" title="The People">People</a></li>
+          <li><a href="/foundation/getinvolved.html" title="Get Involved">Get Involved</a></li>
+          <li><a href="/dyn/closer.cgi" title="Download">Download</a></li>
+          <li><a href="/foundation/sponsorship.html" title="Support Apache">Support Apache</a></li>
+        </ul>
+        <p><a href="/">Home</a>&nbsp;&raquo&nbsp;<a href="/licenses/">Licenses</a></p>
+        <form name="search" id="search" action="http://www.google.com/search" method="get">
+          <input value="*.apache.org" name="sitesearch" type="hidden"/>
+          <input type="text" name="q" id="query">
+          <input type="submit" id="submit" value="Search">
+        </form>
+      </div>
+      <div class="clear"></div>
+      <div id="content" class="grid_16"><div class="section-content"><p>Apache License<br></br>Version 2.0, January 2004<br></br>
+<a href="http://www.apache.org/licenses/">http://www.apache.org/licenses/</a> </p>
+<p>TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION</p>
+<p><strong><a name="definitions">1. Definitions</a></strong>.</p>
+<p>"License" shall mean the terms and conditions for use, reproduction, and
+distribution as defined by Sections 1 through 9 of this document.</p>
+<p>"Licensor" shall mean the copyright owner or entity authorized by the
+copyright owner that is granting the License.</p>
+<p>"Legal Entity" shall mean the union of the acting entity and all other
+entities that control, are controlled by, or are under common control with
+that entity. For the purposes of this definition, "control" means (i) the
+power, direct or indirect, to cause the direction or management of such
+entity, whether by contract or otherwise, or (ii) ownership of fifty
+percent (50%) or more of the outstanding shares, or (iii) beneficial
+ownership of such entity.</p>
+<p>"You" (or "Your") shall mean an individual or Legal Entity exercising
+permissions granted by this License.</p>
+<p>"Source" form shall mean the preferred form for making modifications,
+including but not limited to software source code, documentation source,
+and configuration files.</p>
+<p>"Object" form shall mean any form resulting from mechanical transformation
+or translation of a Source form, including but not limited to compiled
+object code, generated documentation, and conversions to other media types.</p>
+<p>"Work" shall mean the work of authorship, whether in Source or Object form,
+made available under the License, as indicated by a copyright notice that
+is included in or attached to the work (an example is provided in the
+Appendix below).</p>
+<p>"Derivative Works" shall mean any work, whether in Source or Object form,
+that is based on (or derived from) the Work and for which the editorial
+revisions, annotations, elaborations, or other modifications represent, as
+a whole, an original work of authorship. For the purposes of this License,
+Derivative Works shall not include works that remain separable from, or
+merely link (or bind by name) to the interfaces of, the Work and Derivative
+Works thereof.</p>
+<p>"Contribution" shall mean any work of authorship, including the original
+version of the Work and any modifications or additions to that Work or
+Derivative Works thereof, that is intentionally submitted to Licensor for
+inclusion in the Work by the copyright owner or by an individual or Legal
+Entity authorized to submit on behalf of the copyright owner. For the
+purposes of this definition, "submitted" means any form of electronic,
+verbal, or written communication sent to the Licensor or its
+representatives, including but not limited to communication on electronic
+mailing lists, source code control systems, and issue tracking systems that
+are managed by, or on behalf of, the Licensor for the purpose of discussing
+and improving the Work, but excluding communication that is conspicuously
+marked or otherwise designated in writing by the copyright owner as "Not a
+Contribution."</p>
+<p>"Contributor" shall mean Licensor and any individual or Legal Entity on
+behalf of whom a Contribution has been received by Licensor and
+subsequently incorporated within the Work.</p>
+<p><strong><a name="copyright">2. Grant of Copyright License</a></strong>. Subject to the
+terms and conditions of this License, each Contributor hereby grants to You
+a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+copyright license to reproduce, prepare Derivative Works of, publicly
+display, publicly perform, sublicense, and distribute the Work and such
+Derivative Works in Source or Object form.</p>
+<p><strong><a name="patent">3. Grant of Patent License</a></strong>. Subject to the terms
+and conditions of this License, each Contributor hereby grants to You a
+perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+(except as stated in this section) patent license to make, have made, use,
+offer to sell, sell, import, and otherwise transfer the Work, where such
+license applies only to those patent claims licensable by such Contributor
+that are necessarily infringed by their Contribution(s) alone or by
+combination of their Contribution(s) with the Work to which such
+Contribution(s) was submitted. If You institute patent litigation against
+any entity (including a cross-claim or counterclaim in a lawsuit) alleging
+that the Work or a Contribution incorporated within the Work constitutes
+direct or contributory patent infringement, then any patent licenses
+granted to You under this License for that Work shall terminate as of the
+date such litigation is filed.</p>
+<p><strong><a name="redistribution">4. Redistribution</a></strong>. You may reproduce and
+distribute copies of the Work or Derivative Works thereof in any medium,
+with or without modifications, and in Source or Object form, provided that
+You meet the following conditions:</p>
+<ol>
+<li>
+<p>You must give any other recipients of the Work or Derivative Works a
+copy of this License; and</p>
+</li>
+<li>
+<p>You must cause any modified files to carry prominent notices stating
+that You changed the files; and</p>
+</li>
+<li>
+<p>You must retain, in the Source form of any Derivative Works that You
+distribute, all copyright, patent, trademark, and attribution notices from
+the Source form of the Work, excluding those notices that do not pertain to
+any part of the Derivative Works; and</p>
+</li>
+<li>
+<p>If the Work includes a "NOTICE" text file as part of its distribution,
+then any Derivative Works that You distribute must include a readable copy
+of the attribution notices contained within such NOTICE file, excluding
+those notices that do not pertain to any part of the Derivative Works, in
+at least one of the following places: within a NOTICE text file distributed
+as part of the Derivative Works; within the Source form or documentation,
+if provided along with the Derivative Works; or, within a display generated
+by the Derivative Works, if and wherever such third-party notices normally
+appear. The contents of the NOTICE file are for informational purposes only
+and do not modify the License. You may add Your own attribution notices
+within Derivative Works that You distribute, alongside or as an addendum to
+the NOTICE text from the Work, provided that such additional attribution
+notices cannot be construed as modifying the License.
+You may add Your own copyright statement to Your modifications and may
+provide additional or different license terms and conditions for use,
+reproduction, or distribution of Your modifications, or for any such
+Derivative Works as a whole, provided Your use, reproduction, and
+distribution of the Work otherwise complies with the conditions stated in
+this License.</p>
+</li>
+</ol>
+<p><strong><a name="contributions">5. Submission of Contributions</a></strong>. Unless You
+explicitly state otherwise, any Contribution intentionally submitted for
+inclusion in the Work by You to the Licensor shall be under the terms and
+conditions of this License, without any additional terms or conditions.
+Notwithstanding the above, nothing herein shall supersede or modify the
+terms of any separate license agreement you may have executed with Licensor
+regarding such Contributions.</p>
+<p><strong><a name="trademarks">6. Trademarks</a></strong>. This License does not grant
+permission to use the trade names, trademarks, service marks, or product
+names of the Licensor, except as required for reasonable and customary use
+in describing the origin of the Work and reproducing the content of the
+NOTICE file.</p>
+<p><strong><a name="no-warranty">7. Disclaimer of Warranty</a></strong>. Unless required by
+applicable law or agreed to in writing, Licensor provides the Work (and
+each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including,
+without limitation, any warranties or conditions of TITLE,
+NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You
+are solely responsible for determining the appropriateness of using or
+redistributing the Work and assume any risks associated with Your exercise
+of permissions under this License.</p>
+<p><strong><a name="no-liability">8. Limitation of Liability</a></strong>. In no event and
+under no legal theory, whether in tort (including negligence), contract, or
+otherwise, unless required by applicable law (such as deliberate and
+grossly negligent acts) or agreed to in writing, shall any Contributor be
+liable to You for damages, including any direct, indirect, special,
+incidental, or consequential damages of any character arising as a result
+of this License or out of the use or inability to use the Work (including
+but not limited to damages for loss of goodwill, work stoppage, computer
+failure or malfunction, or any and all other commercial damages or losses),
+even if such Contributor has been advised of the possibility of such
+damages.</p>
+<p><strong><a name="additional">9. Accepting Warranty or Additional Liability</a></strong>.
+While redistributing the Work or Derivative Works thereof, You may choose
+to offer, and charge a fee for, acceptance of support, warranty, indemnity,
+or other liability obligations and/or rights consistent with this License.
+However, in accepting such obligations, You may act only on Your own behalf
+and on Your sole responsibility, not on behalf of any other Contributor,
+and only if You agree to indemnify, defend, and hold each Contributor
+harmless for any liability incurred by, or claims asserted against, such
+Contributor by reason of your accepting any such warranty or additional
+liability.</p>
+<p>END OF TERMS AND CONDITIONS</p>
+<h1 id="apply">APPENDIX: How to apply the Apache License to your work</h1>
+<p>To apply the Apache License to your work, attach the following boilerplate
+notice, with the fields enclosed by brackets "[]" replaced with your own
+identifying information. (Don't include the brackets!) The text should be
+enclosed in the appropriate comment syntax for the file format. We also
+recommend that a file or class name and description of purpose be included
+on the same "printed page" as the copyright notice for easier
+identification within third-party archives.</p>
+<div class="codehilite"><pre>   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+</pre></div></div></div>
+      <div class="clear"></div>
+    </div>
+    <div id="footer" class="container_16">
+      <div class="links grid_16">
+      <div class="grid_3">
+        <h4>Projects</h4>
+        <ul>
+<li><a href="http://httpd.apache.org/" title="Apache Web Server (httpd)">HTTP Server</a></li>
+<li><a href="http://abdera.apache.org/" title="Atom Publishing Protocol Implementation">Abdera</a></li>
+<li><a href="http://activemq.apache.org/" title="Distributed Messaging System">ActiveMQ</a></li>
+<li><a href="http://ant.apache.org/" title="Java-based build tool">Ant</a></li>
+<li><a href="http://apr.apache.org/" title="Apache Portable Runtime libraries">APR</a></li>
+<li><a href="http://archiva.apache.org/" title="Build Artifact Repository Manager">Archiva</a></li>
+<li><a href="http://aries.apache.org/" title="Enterprise OSGi application programming model">Aries</a></li>
+<li><a href="http://avro.apache.org/" title="A Serialization System">Avro</a></li>
+<li><a href="http://axis.apache.org/" title="Java SOAP Engine">Axis</a></li>
+<li><a href="http://buildr.apache.org/" title="Simple and intuitive build system for Java applications">Buildr</a></li>
+<li><a href="http://camel.apache.org/" title="Spring based Integration Framework which implements the Enterprise Integration Patterns">Camel</a></li>
+<li><a href="http://cassandra.apache.org/" title="Highly scalable second-generation distributed database">Cassandra</a></li>
+<li><a href="http://cayenne.apache.org/" title="User-friendly Java ORM with Tools">Cayenne</a></li>
+<li><a href="http://chemistry.apache.org/" title="CMIS (Content Managment Interoperability Services) Clients and Servers">Chemistry</a></li>
+<li><a href="http://click.apache.org/" title="User-friendly page and component oriented web framework">Click</a></li>
+<li><a href="http://cocoon.apache.org/" title="Web development framework: separation of concerns, component-based">Cocoon</a></li>
+<li><a href="http://commons.apache.org/" title="Reusable Java components">Commons</a></li>
+<li><a href="http://continuum.apache.org/" title="Continuous Integration and Build Server">Continuum</a></li>
+<li><a href="http://couchdb.apache.org/" title="RESTful document database">CouchDB</a></li>
+<li><a href="http://cxf.apache.org/" title="Service Framework">CXF</a></li>
+<li><a href="http://db.apache.org/" title="Database access">DB</a></li>
+<li><a href="http://deltacloud.apache.org/" title="RESTful cloud management interface">Deltacloud</a></li>
+<li><a href="http://directory.apache.org/" title="Apache Directory Server">Directory</a></li>
+<li><a href="http://esme.apache.org/" title="Enterprise Social Messaging Environment">ESME</a></li>
+<li><a href="http://felix.apache.org/" title="OSGi Framework and components.">Felix</a></li>
+<li><a href="http://forrest.apache.org/" title="Aggregated multi-channel documentation, separation of concerns">Forrest</a></li>
+<li><a href="http://geronimo.apache.org/" title="Java2, Enterprise Edition (J2EE) container">Geronimo</a></li>
+<li><a href="http://gump.apache.org/" title="Continuous integration of open source projects">Gump</a></li>
+<li><a href="http://hadoop.apache.org/" title="Distributed computing platform">Hadoop</a></li>
+<li><a href="http://hbase.apache.org/" title="Hadoop Database">HBase</a></li>
+<li><a href="http://hive.apache.org/" title="Data warehouse infrastructure using the Hadoop Database">Hive</a></li>
+<li><a href="http://hc.apache.org/" title="Java toolset of low level HTTP components">HttpComponents</a></li>
+<li><a href="http://jackrabbit.apache.org/" title="Content Repository for Java">Jackrabbit</a></li>
+<li><a href="http://jakarta.apache.org/" title="Server-side Java">Jakarta</a></li>
+<li><a href="http://james.apache.org/" title="Java Apache Mail Enterprise Server">James</a></li>
+<li><a href="http://jmeter.apache.org/" title="Java performance and functional testing">JMeter</a></li>
+<li><a href="http://juddi.apache.org/" title="Java implementation of the Universal Description, Discovery, and Integration specification">jUDDI</a></li>
+<li><a href="http://karaf.apache.org/" title="Server-side OSGi distribution">Karaf</a></li>
+<li><a href="http://lenya.apache.org/" title="Content Management System">Lenya</a></li>
+<li><a href="http://libcloud.apache.org/" title="Unified interface to the cloud">Libcloud</a></li>
+<li><a href="http://logging.apache.org/" title="Cross-language logging services">Logging</a></li>
+<li><a href="http://lucene.apache.org/" title="Search engine library">Lucene</a></li>
+<li><a href="http://mahout.apache.org/" title="Scalable machine learning library">Mahout</a></li>
+<li><a href="http://maven.apache.org/" title="Java project management and comprehension tools">Maven</a></li>
+<li><a href="http://mina.apache.org/" title="Multipurpose Infrastructure for Network Application">MINA</a></li>
+<li><a href="http://myfaces.apache.org/" title="JavaServer(tm) Faces implementation and components">MyFaces</a></li>
+<li><a href="http://nutch.apache.org/" title="Open Source Web Search Software">Nutch</a></li>
+<li><a href="http://ode.apache.org/" title="Orchestration Director Engine: Business Process Management (BPM), Process Orchestration and Workflow through service compositioni.">ODE</a></li>
+<li><a href="http://oodt.apache.org/" title="Object Oriented Data Technology (middleware metadata)">OODT</a></li>
+<li><a href="http://ofbiz.apache.org/" title="Open for Business: enterprise automation software">OFBiz</a></li>
+<li><a href="http://openejb.apache.org/" title="OpenEJB: a modular, configurable, and extendable EJB Container System and Server">OpenEJB</a></li>
+<li><a href="http://openjpa.apache.org/" title="OpenJPA: Object Relational Mapping for Java">OpenJPA</a></li>
+<li><a href="http://openwebbeans.apache.org/" title="OpenWebBeans: JSR-299 Context and Dependency Injection for Java EE Platform Implementation">OpenWebBeans</a></li>
+<li><a href="http://pdfbox.apache.org/" title="Java library for working with PDF documents">PDFBox</a></li>
+<li><a href="http://perl.apache.org/" title="Dynamic websites using Perl">Perl</a></li>
+<li><a href="http://pig.apache.org/" title="Platform for analyzing large data sets">Pig</a></li>
+<li><a href="http://pivot.apache.org/" title="Rich Internet applications in Java">Pivot</a></li>
+<li><a href="http://poi.apache.org/" title="Java API for OLE 2 Compound and OOXML Documents">POI</a></li>
+<li><a href="http://portals.apache.org/" title="Portal technology">Portals</a></li>
+<li><a href="http://qpid.apache.org/" title="Multiple language implementation of the latest Advanced Message Queuing Protocol (AMQP)">Qpid</a></li>
+<li><a href="http://river.apache.org/" title="Jini service oriented architecture">River</a></li>
+<li><a href="http://roller.apache.org/" title="Java blog server">Roller</a></li>
+<li><a href="http://santuario.apache.org/" title="XML Security in Java and C++">Santuario</a></li>
+<li><a href="http://servicemix.apache.org/" title="Enterprise Service Bus">ServiceMix</a></li>
+<li><a href="http://shindig.apache.org/" title="Opensocial Reference Implementation">Shindig</a></li>
+<li><a href="http://shiro.apache.org/" title="Powerful and easy-to-use application security framework">Shiro</a></li>
+<li><a href="http://sling.apache.org/" title="Web Framework for JCR Content Repositories">Sling</a></li>
+<li><a href="http://spamassassin.apache.org/" title="Mail filter to identify spam">SpamAssassin</a></li>
+<li><a href="http://stdcxx.apache.org/" title="Apache C++ Standard Library">STDCXX</a></li>
+<li><a href="http://struts.apache.org/" title="Model 2 framework for building Java web applications">Struts</a></li>
+<li><a href="http://subversion.apache.org/" title="Version Control">Subversion</a></li>
+<li><a href="http://synapse.apache.org/" title="Enterprise Service Bus and Mediation Framework">Synapse</a></li>
+<li><a href="http://tapestry.apache.org/" title="Component-based Java Web Application Framework">Tapestry</a></li>
+<li><a href="http://tcl.apache.org/" title="Dynamic websites using TCL">Tcl</a></li>
+<li><a href="http://thrift.apache.org/" title="Framework for scalable cross-language services development">Thrift</a></li>
+<li><a href="http://tika.apache.org" title="Content Analysis and Detection Toolkit">Tika</a></li>
+<li><a href="http://tiles.apache.org/" title="A templating framework for web application user interfaces">Tiles</a></li>
+<li><a href="http://tomcat.apache.org/" title="A Java Servlet and JSP Container">Tomcat</a></li>
+<li><a href="http://trafficserver.apache.org/" title="A fast, scalable and extensible HTTP/1.1 compliant caching proxy server">Traffic Server</a></li>
+<li><a href="http://turbine.apache.org/" title="A Java Servlet Web Application Framework and associated component library">Turbine</a></li>
+<li><a href="http://tuscany.apache.org/" title="An SCA based Service Composition Framework">Tuscany</a></li>
+<li><a href="http://uima.apache.org/" title="Framework and annotators for unstructured information analysis">UIMA</a></li>
+<li><a href="http://velocity.apache.org/" title="A Java Templating Engine">Velocity</a></li>
+<li><a href="http://ws.apache.org/">Web Services</a></li>
+<li><a href="http://whirr.apache.org/" title="Libraries for running Cloud Services">Whirr</a></li>
+<li><a href="http://wicket.apache.org/" title="Component-based Java Web Application Framework.">Wicket</a></li>
+<li><a href="http://xalan.apache.org/" title="XSLT processors in Java and C++">Xalan</a></li>
+<li><a href="http://xerces.apache.org/" title="XML parsers in Java, C++ and Perl">Xerces</a></li>
+<li><a href="http://xml.apache.org/" title="XML solutions focused on the web">XML</a></li>
+<li><a href="http://xmlbeans.apache.org/" title="XML-Java binding tool">XMLBeans</a></li>
+<li><a href="http://xmlgraphics.apache.org/" title="Conversion from XML to graphical output">XML Graphics</a></li>
+<li><a href="http://zookeeper.apache.org/" title="Centralized service for maintaining configuration information">ZooKeeper</a></li>
+</ul>
+      </div>
+      <div class="grid_3">
+        <h4>Foundation</h4>
+        <ul>
+          <li><a href="/foundation/faq.html">FAQ</a></li> 
+          <li><a href="/licenses/" title="Overview of the Apache Licenese">Licenses</a></li> 
+          <li><a href="/foundation/marks/" title="Apache marks policies and listing">Trademarks</a></li>  
+          <li><a href="/foundation/news.html" title="Official news feed of Foundation announcements">News</a></li> 
+          <li><a href="/press/" title="Press, Media, and Analyst contact">Press Inquiries</a></li> 
+          <li><a href="/foundation/records/" title="Formal corporate records and board meeting minutes">Public Records</a></li> 
+          <li><a href="/foundation/sponsorship.html" title="Sponsor the Foundation">Sponsorship</a></li> 
+          <li><a href="/foundation/contributing.html" title="Donate to the Foundation">Donations</a></li> 
+          <li><a href="/foundation/buy_stuff.html" title="Buy Apache branded merchandise">Buy Stuff</a></li> 
+          <li><a href="/foundation/thanks.html" title="Thank you to our Sponsors">Thanks</a></li> 
+          <li><a href="/foundation/contact.html" title="Contact Us">Contact</a></li> 
+        </ul>
+      </div>
+      <div class="grid_3 suffix_1">
+        <h4>Foundation Projects</h4>
+        <ul>
+          <li><a href="http://attic.apache.org/" title="Inactive projects repository">Attic</a></li> 
+          <li><a href="/foundation/conferences.html" title="Meetings of developers and users">Conferences</a></li> 
+          <li><a href="http://community.apache.org/" title="Helping newcomers to the ASF">Community Development</a></li> 
+          <li><a href="http://incubator.apache.org/" title="Shepherd for new projects">Incubator</a></li> 
+          <li><a href="/dev/" title="ASF Infrastructure: Operations and howto documents for PMCs and contributors">Infrastructure</a></li> 
+          <li><a href="/jcp/" title="Apache and the Java Community Process">JCP</a></li> 
+          <li><a href="http://labs.apache.org/" title="The Innovation Laboratories of the Apache Software Foundation">Labs</a></li> 
+          <li><a href="/legal/" title="Legal Affairs">Legal Affairs</a></li> 
+          <li><a href="/press/" title="Public Relations">Public Relations</a></li> 
+          <li><a href="/security/" title="Security">Security</a></li> 
+          <li><a href="/travel/" title="Travel Assistance">Travel Assistance</a></li> 
+        </ul>
+      </div>
+      
+      <div class="grid_3">
+        <h4>Community</h4>
+        <ul>
+          <li><a href="http://people.apache.org/" title="Apache committer homepages">People</a></li> 
+          <li><a href="/memorials/" title="In memoriam of past committers">Memorials</a></li> 
+          <li><a href="http://feathercast.org/" title="Apache Podcasts">Feathercast</a></li> 
+          <li><a href="http://blogs.apache.org/" title="Apache Project Blogs">Project Blogs</a></li> 
+          <li><a href="http://planet.apache.org/committers/" title="Apache Committers' Blogs">PlanetApache</a></li> 
+        </ul>
+      </div>
+      <div class="grid_3">
+        <h4>How It Works</h4>
+        <ul>
+          <li><a href="/foundation/how-it-works.html">Introduction</a></li> 
+          <li><a href="/foundation/how-it-works.html#meritocracy">Meritocracy</a></li> 
+          <li><a href="/foundation/how-it-works.html#structure">Structure</a></li> 
+          <li><a href="/foundation/how-it-works.html#roles">Roles</a></li> 
+          <li><a href="/foundation/how-it-works.html#management">Collaboration</a></li> 
+          <li><a href="/foundation/how-it-works.html#incubator">Incubator</a></li> 
+          <li><a href="/foundation/how-it-works.html#other">Other entities</a></li> 
+          <li><a href="/foundation/glossary.html">Glossary</a></li> 
+          <li><a href="/foundation/voting.html">Voting</a></li> 
+        </ul>
+      </div>
+    </div>
+    <div class="clear"></div>
+    
+    </div>
+    <div id="copyright" class="container_16">
+      <p>Copyright &#169; 2011 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br/>Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p>
+    </div>
+  </body>
+</html>
diff --git a/LICENSE.APLv2 b/LICENSE.APLv2
new file mode 100644 (file)
index 0000000..e2ca7a9
--- /dev/null
@@ -0,0 +1,207 @@
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+
+
+
diff --git a/NOTICE b/NOTICE
new file mode 100644 (file)
index 0000000..1044153
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,3 @@
+Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
+Except as noted, this software is licensed under Apache License, Version 2.
+Please, see the LICENSE.APLv2 file for Apache License, Version 2 terms and conditions.
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..a1d8569
--- /dev/null
+++ b/README
@@ -0,0 +1,10 @@
+BUILD OVERVIEW
+==============
+Currently you can build some components of SDK and apply to installed SDK
+directory(a.k.a tizen-sdk).
+
+The procedure is as follows:
+
+1. Git clone "sdk-build.git".
+2. Open "sdk-build/tizen-ide" folder.
+3. You can find "README" file in "sdk-build/tizen-ide" folder. Just follow guideline in "README" file.
diff --git a/package/build.linux b/package/build.linux
new file mode 100755 (executable)
index 0000000..2c21d40
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/bash
+clean()
+{
+       rm -rf $SRCDIR/*.zip
+       rm -rf $SRCDIR/*.tar.gz
+       ant -f src/build.xml clean
+}
+
+build()
+{
+       ant -f src/build.xml make-jar-dibs
+       echo "done"
+}
+  
+install()
+{
+       mkdir -p $SRCDIR/package/certificate-generator.package.${TARGET_OS}/data/tools/certificate-generator/
+       cp -r $SRCDIR/src/dist/* $SRCDIR/package/certificate-generator.package.${TARGET_OS}/data/tools/certificate-generator/
+}
+
+[ "$1" = "clean" ] && clean
+[ "$1" = "build" ] && build
+[ "$1" = "install" ] && install
+exit 0
diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest
new file mode 100644 (file)
index 0000000..8e94d23
--- /dev/null
@@ -0,0 +1,9 @@
+Version : 0.0.30
+Maintainer : JungHak Kim <kjh5@samsung.com >
+
+Package : certificate-generator
+OS : ubuntu-32, ubuntu-64, windows-32, windows-64, macos-64
+Build-host-os : ubuntu-32
+Attribute : binary
+Description : Certificate manager
+
diff --git a/pkginfo.manifest b/pkginfo.manifest
new file mode 100644 (file)
index 0000000..8637ec0
--- /dev/null
@@ -0,0 +1,7 @@
+Package : certificate-generator
+Version : 0.0.30
+OS : ubuntu-32, ubuntu-64, windows-32, windows-64, macos-64
+Build-host-os : ubuntu-32
+Maintainer : JungHak Kim <kjh5@samsung.com >
+Attribute : binary
+Description : Certificate manager
diff --git a/src/build.xml b/src/build.xml
new file mode 100644 (file)
index 0000000..92b4edf
--- /dev/null
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<project basedir="." default="make-jar" name="certificate-generator">
+       
+    <property environment="env"/>
+    <property name="build.dir" value="bin" />
+    <property name="src.dir" value="src" />
+    <property name="dist" value="dist" />
+    <property name="jar.dir" value="jar" />
+    <property name="script" value="script" />
+    <property name="resource" value="res" />
+    <property name="shellscript" value="dist/certificate-generator.sh" />
+    <property name="jarname" value="CertificateGenerator.jar" />
+    <property name="mainclass" value="keycertificategenerator.TizenKeyCertificateGenerator" />  
+    
+    <path id="certificate-generator.classpath">
+        <pathelement location="bin"/>
+        <pathelement location="libs/bcpkix-jdk15on-147.jar"/>
+        <pathelement location="libs/bcprov-jdk15on-147.jar"/>
+        <pathelement location="libs/commons-ssl.jar"/>
+    </path>
+    
+       <target name="clean">
+               <echo message="cleaning..." />
+               <delete dir="bin"/>
+               <delete dir="dist"/>
+       </target>
+
+       <target name="prepare-compile">
+               <echo message="prepare for compile..." />
+               <delete dir="bin" />
+               <mkdir dir="${build.dir}" />
+               <mkdir dir="${dist}" />
+        <mkdir dir="${dist}/${jar.dir}" />
+       </target>
+
+       <target name="compile" depends="prepare-compile">
+               <echo message="compiling..." />
+               <javac encoding="UTF-8" fork="true" srcdir="${src.dir}" destdir="bin" debug="on" memorymaximumsize="128m">
+                       <classpath refid="certificate-generator.classpath" />
+               </javac>
+       </target>
+
+       <target name="create-jar">
+               <echo message="creating jar..." />
+               <jar destfile="${dist}/${jar.dir}/${jarname}" basedir="bin" duplicate="add">
+             <manifest>
+                <attribute name="Main-Class" value="${mainclass}" />
+                <attribute name="Class-Path" value="commons-ssl.jar bcprov-jdk15on-147.jar bcpkix-jdk15on-147.jar" />
+             </manifest>
+               </jar>
+               <delete dir="${build.dir}" />
+       </target>
+
+       <target name="make-jar" depends="compile, create-jar" />
+       
+    <target name="compile-dibs" depends="prepare-compile">
+               <echo message="compiling..." />
+               <javac encoding="UTF-8" fork="true" srcdir="${src.dir}" destdir="bin" debug="on" memorymaximumsize="128m">
+                       <classpath refid="certificate-generator.classpath" />
+               </javac>
+       </target>
+       
+    <target name="create-dibs-jar">
+               <echo message="creating dibs jar..." />
+        <jar destfile="${dist}/${jar.dir}/${jarname}" basedir="${build.dir}">
+             <manifest>
+                <attribute name="Main-Class" value="${mainclass}" />
+                <attribute name="Class-Path" value="commons-ssl.jar bcprov-jdk15on-147.jar bcpkix-jdk15on-147.jar" />
+             </manifest>
+        </jar>
+        <copy includeemptydirs="false" todir="${dist}">
+               <fileset dir="${resource}"/>
+        </copy>
+         <copy includeemptydirs="false" todir="${dist}">
+               <fileset dir="${script}"/>
+        </copy>
+        <chmod file="${shellscript}" perm="744"/>
+         <copy includeemptydirs="false" todir="${dist}/jar">
+               <fileset dir="libs"/>
+        </copy>
+    </target>
+   
+       <target name="make-jar-dibs" depends="compile-dibs, create-dibs-jar" />
+</project>
diff --git a/src/libs/bcpkix-jdk15on-147.jar b/src/libs/bcpkix-jdk15on-147.jar
new file mode 100644 (file)
index 0000000..38fb503
Binary files /dev/null and b/src/libs/bcpkix-jdk15on-147.jar differ
diff --git a/src/libs/bcprov-jdk15on-147.jar b/src/libs/bcprov-jdk15on-147.jar
new file mode 100644 (file)
index 0000000..0b80922
Binary files /dev/null and b/src/libs/bcprov-jdk15on-147.jar differ
diff --git a/src/libs/commons-ssl.jar b/src/libs/commons-ssl.jar
new file mode 100644 (file)
index 0000000..4fe5144
Binary files /dev/null and b/src/libs/commons-ssl.jar differ
diff --git a/src/res/certificates/developer/conf.ini b/src/res/certificates/developer/conf.ini
new file mode 100644 (file)
index 0000000..fb6dade
--- /dev/null
@@ -0,0 +1 @@
+PASSWD_OF_ISSUER_FOR_DEV=tizencertificatefordevelopercaroqkfwk\r
diff --git a/src/res/certificates/developer/tizen-developer-ca-privatekey.pem b/src/res/certificates/developer/tizen-developer-ca-privatekey.pem
new file mode 100755 (executable)
index 0000000..47e1355
--- /dev/null
@@ -0,0 +1,18 @@
+-----BEGIN RSA PRIVATE KEY-----
+Proc-Type: 4,ENCRYPTED
+DEK-Info: AES-128-CBC,231BF253A4AA10E1F1A450D5AB3385F2
+
+McTL9+jm/Fuu3pHC6zm/epNhCqgSXswlZVc59zi9Rx+9SSOCNjHm2VChPsWmTU7G
+Q4Fwerq/95/s5B2/nnO9LXgn/hMZbsFtva3awzcSDWLImwvBmn9Kzc9wym3G4GC0
+cpDzT3/i+EdR1qLLfLiEZ81sHWbEui1ywtraJMfhmz07rwLTQ7UrXT63YdsgbRUN
+sk/ESxgc223Dc9SbPF94lwmOeDQTbM3hIuNmizUJTPVzQGGARFqiXiPjjechJ7NS
+0ds8M7Bb3tF+blyTZmS53ymBE30PXwnWuZ2nv1eC05E0jK/XwgSqTY0hekMeGcB7
+b07eELzcyEtovG1N+F+vDkEdZkhhjui7OgPoXMPZfuv+Bi8LK1lpsbiSz/BRNTP0
+6QKsJy0xxKSlGjsX3lA+XpXi/jfDW0yaxubpzNPM5XW0vhuNcyK/rUw0KKQCD3DO
+rjoe67RUJYfQKEVgsmJEo69Hf1Jbk7kShP72FehEQ/fMONZMULTEleWY1tchOeEd
+QNXElFqXCiCvTw2rMT/mLDuhXolv6M/mmV4A/L1RboBpsG8wSKJ+4cavtXDMll3o
+5dMKrXqkCzKajZFASgVcr7CW2XJQjTpx2/bolc+4K4WyUJ+IcrqF+8igfmiDCzic
+LhDOsYhiyNcw8fmW95tudH+9tg4IGbA3R6VZFejM8vxvNmO1lNXruiNVVcrvLUSk
+k65JAkWn12rV/P4eCBsg9b/dNV7GKydxO4B1a7gindC950sjwc6X+0+waysbp7zk
+QUOaDGBJGgSQe0UL55oRHqUe2t7ZM7rmqdxsApwH5xDGnPRQQ0zecA6t6AmrDmAH
+-----END RSA PRIVATE KEY-----
diff --git a/src/res/certificates/developer/tizen-developer-ca.cer b/src/res/certificates/developer/tizen-developer-ca.cer
new file mode 100644 (file)
index 0000000..7803969
--- /dev/null
@@ -0,0 +1,17 @@
+-----BEGIN CERTIFICATE-----
+MIICpzCCAhCgAwIBAgIJAKzDjmEF+1OXMA0GCSqGSIb3DQEBBQUAMIGTMQswCQYD
+VQQGEwJLUjEOMAwGA1UECAwFU3V3b24xDjAMBgNVBAcMBVN1d29uMRYwFAYDVQQK
+DA1UaXplbiBUZXN0IENBMSUwIwYDVQQLDBxUaXplbiBUZXN0IERldmVsb3BlciBS
+b290IENBMSUwIwYDVQQDDBxUaXplbiBUZXN0IERldmVsb3BlciBSb290IENBMB4X
+DTEyMTAyOTEzMDEyMloXDTIyMTAyNzEzMDEyMlowgYQxCzAJBgNVBAYTAktSMQ4w
+DAYDVQQIDAVTdXdvbjEOMAwGA1UEBwwFU3V3b24xFjAUBgNVBAoMDVRpemVuIFRl
+c3QgQ0ExIDAeBgNVBAsMF1RpemVuIERldmVsb3BlciBUZXN0IENBMRswGQYDVQQD
+DBJUaXplbiBEZXZlbG9wZXIgQ0EwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
+AMyG0DSTHBgalQo1seDKxpCU61gji+QQlxQkPQOvBrmuF6Z90zFCprTtg2sRjTLC
+NoRd75+VCCHuKGcrD27t7hwAekusPrpzdsq5QoBMvNjGDM22lC45PJ4d86DEDY4e
+rxeJ5aSQxqbfXK4pKe9NwxdkKuA8dTYZM1UcmhXs7YALAgMBAAGjEDAOMAwGA1Ud
+EwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEACbr/OPNMJ+Ejrxfm/YjCiRPpjJLn
+wXS2IDtitbxot6bEdZkZvOFXOC0Ca4GT+jtvOcSlU7tM3Mdd1MrKe1kkoVd1vhCV
+8V4CK3/DPj8aN3rxfMfQitA6XMDcxzhsyMWz56OdifX50dvS/G/ad+kGhNhOOEKS
+E8zUyEDCGwqkfXk=
+-----END CERTIFICATE-----
diff --git a/src/res/certificates/distributor/tizen-distributor-ca.cer b/src/res/certificates/distributor/tizen-distributor-ca.cer
new file mode 100644 (file)
index 0000000..bb1a74d
--- /dev/null
@@ -0,0 +1,17 @@
+-----BEGIN CERTIFICATE-----
+MIICtDCCAh2gAwIBAgIJAMDbehElPNKvMA0GCSqGSIb3DQEBBQUAMIGVMQswCQYD
+VQQGEwJLUjEOMAwGA1UECAwFU3V3b24xDjAMBgNVBAcMBVN1d29uMRYwFAYDVQQK
+DA1UaXplbiBUZXN0IENBMSMwIQYDVQQLDBpUVGl6ZW4gRGlzdHJpYnV0b3IgVGVz
+dCBDQTEpMCcGA1UEAwwgVGl6ZW4gUHVibGljIERpc3RyaWJ1dG9yIFJvb3QgQ0Ew
+HhcNMTIxMDI5MTMwMjUwWhcNMjIxMDI3MTMwMjUwWjCBjzELMAkGA1UEBhMCS1Ix
+DjAMBgNVBAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6ZW4g
+VGVzdCBDQTEiMCAGA1UECwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEkMCIG
+A1UEAwwbVGl6ZW4gUHVibGljIERpc3RyaWJ1dG9yIENBMIGfMA0GCSqGSIb3DQEB
+AQUAA4GNADCBiQKBgQDeOTS/3nXvkDEmsFCJIvRlQ3RKDcxdWJJp625pFqHdmoJB
+dV+x6jl1raGK2Y1sp2Gdvpjc/z92yzApbE/UVLPh/tRNZPeGhzU4ejDDm7kzdr2f
+7Ia0U98K+OoY12ucwg7TYNItj9is7Cj4blGfuMDzd2ah2AgnCGlwNwV/pv+uVQID
+AQABoxAwDjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBACqJKO33YdoG
+udwanZIxMdXuxnnD9R6u72ltKk1S4zPfMJJv482CRGCI4FK6djhlsI4i0Lt1SVIJ
+Eed+yc3qckGm19dW+4xdlkekon7pViEBWuyHw8OWv3RXtTum1+PGHjBJ2eYY4ZKI
+pz73U/1NC16sTB/0VhfnkHwPltmrpYVe
+-----END CERTIFICATE-----
diff --git a/src/res/certificates/distributor/tizen-distributor-signer.cer b/src/res/certificates/distributor/tizen-distributor-signer.cer
new file mode 100644 (file)
index 0000000..85f513a
--- /dev/null
@@ -0,0 +1,16 @@
+-----BEGIN CERTIFICATE-----
+MIICmzCCAgQCCQDXI7WLdVZwiDANBgkqhkiG9w0BAQUFADCBjzELMAkGA1UEBhMC
+S1IxDjAMBgNVBAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6
+ZW4gVGVzdCBDQTEiMCAGA1UECwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEk
+MCIGA1UEAwwbVGl6ZW4gUHVibGljIERpc3RyaWJ1dG9yIENBMB4XDTEyMTAyNzA4
+MjgwNVoXDTEyMTEyNjA4MjgwNVowgZMxCzAJBgNVBAYTAktSMQ4wDAYDVQQIDAVT
+dXdvbjEOMAwGA1UEBwwFU3V3b24xFjAUBgNVBAoMDVRpemVuIFRlc3QgQ0ExIjAg
+BgNVBAsMGVRpemVuIERpc3RyaWJ1dG9yIFRlc3QgQ0ExKDAmBgNVBAMMH1RpemVu
+IFB1YmxpYyBEaXN0cmlidXRvciBTaWduZXIwgZ8wDQYJKoZIhvcNAQEBBQADgY0A
+MIGJAoGBALtMvlc5hENK90ZdA+y66+Sy0enD1gpZDBh5T9RP0oRsptJv5jjNTseQ
+bQi0SZOdOXb6J7iQdlBCtR343RpIEz8HmrBy7mSY7mgwoU4EPpp4CTSUeAuKcmvr
+NOngTp5Hv7Ngf02TTHOLK3hZLpGayaDviyNZB5PdqQdBhokKjzAzAgMBAAEwDQYJ
+KoZIhvcNAQEFBQADgYEAos0pPnLhVBNN1Et/EB6MABmNilM1Xy1u+8Y1PxIjXg+U
+WY4nDsvJv0JtayLL1Zi8Ss71lhQJECdMBrRg50B6n97oRf3n9JNFNCd7C4oRB0Cy
+/fWRKhT3rad/a4KN7akBHSZVjcBnT28J5RJj0p4RScAYiktx/EICWEDUfg7IGZw=
+-----END CERTIFICATE-----
diff --git a/src/res/certificates/distributor/tizen-distributor-signer.p12 b/src/res/certificates/distributor/tizen-distributor-signer.p12
new file mode 100644 (file)
index 0000000..041a1fa
Binary files /dev/null and b/src/res/certificates/distributor/tizen-distributor-signer.p12 differ
diff --git a/src/script/certificate-generator.bat b/src/script/certificate-generator.bat
new file mode 100644 (file)
index 0000000..97ca44c
--- /dev/null
@@ -0,0 +1,2 @@
+@echo off
+java -jar jar/CertificateGenerator.jar
diff --git a/src/script/certificate-generator.sh b/src/script/certificate-generator.sh
new file mode 100755 (executable)
index 0000000..33dabd4
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+java -jar jar/CertificateGenerator.jar
diff --git a/src/src/keycertificategenerator/TizenKeyCertificateGenerator.java b/src/src/keycertificategenerator/TizenKeyCertificateGenerator.java
new file mode 100755 (executable)
index 0000000..c4501d4
--- /dev/null
@@ -0,0 +1,703 @@
+/*
+*  TizenKeyCertificateGenerator
+*
+* Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
+*
+* Contact:
+* Ashish Mehta <ashish.mehta@samsung.com>  
+* Hyunwoo Kim <hwlove.kim@samsung.com>
+* 
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+* Contributors:
+* - Samsung Electronics Co., Ltd
+*
+*/
+
+package keycertificategenerator;
+
+import org.apache.commons.ssl.*;
+import java.io.BufferedReader;
+import java.io.ByteArrayInputStream;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.FileReader;
+import java.io.InputStreamReader;
+import java.util.Calendar;
+import java.util.Date;
+import java.io.IOException;
+import java.math.BigInteger;
+import java.net.URL;
+import java.security.AlgorithmParameters;
+import java.security.GeneralSecurityException;
+import java.security.InvalidAlgorithmParameterException;
+import java.security.InvalidKeyException;
+import java.security.KeyFactory;
+import java.security.KeyPair;
+import java.security.KeyPairGenerator;
+import java.security.KeyStore;
+import java.security.KeyStoreException;
+import java.security.NoSuchProviderException;
+import java.security.PrivateKey;
+import java.security.PublicKey;
+import java.security.SecureRandom;
+import java.security.NoSuchAlgorithmException;
+import java.security.Security;
+import java.security.SignatureException;
+import java.security.cert.Certificate;
+import java.security.cert.CertificateException;
+import java.security.cert.X509Certificate;
+import java.security.interfaces.RSAPrivateCrtKey;
+import java.security.spec.EncodedKeySpec;
+import java.security.spec.InvalidKeySpecException;
+import java.security.spec.InvalidParameterSpecException;
+import java.security.spec.PKCS8EncodedKeySpec;
+import java.security.spec.RSAPrivateCrtKeySpec;
+
+import javax.crypto.BadPaddingException;
+import javax.crypto.Cipher;
+import javax.crypto.EncryptedPrivateKeyInfo;
+import javax.crypto.IllegalBlockSizeException;
+import javax.crypto.NoSuchPaddingException;
+import javax.crypto.SecretKey;
+import javax.crypto.SecretKeyFactory;
+import javax.crypto.spec.PBEKeySpec;
+import javax.crypto.spec.PBEParameterSpec;
+
+import org.bouncycastle.asn1.ASN1InputStream;
+import org.bouncycastle.asn1.ASN1Sequence;
+import org.bouncycastle.asn1.x500.X500Name;
+import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
+import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo;
+import org.bouncycastle.cert.X509CertificateHolder;
+import org.bouncycastle.cert.X509v3CertificateBuilder;
+import org.bouncycastle.cert.jcajce.JcaX509CertificateConverter;
+import org.bouncycastle.crypto.DataLengthException;
+import org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters;
+import org.bouncycastle.jce.provider.BouncyCastleProvider;
+import org.bouncycastle.openssl.PEMReader;
+import org.bouncycastle.openssl.PasswordFinder;
+import org.bouncycastle.operator.ContentSigner;
+import org.bouncycastle.operator.DefaultDigestAlgorithmIdentifierFinder;
+import org.bouncycastle.operator.DefaultSignatureAlgorithmIdentifierFinder;
+import org.bouncycastle.operator.bc.BcRSAContentSignerBuilder;
+
+public class TizenKeyCertificateGenerator {
+
+       private static class Password implements PasswordFinder {
+               char[] password;
+
+               Password(char[] word) {
+                       this.password = word;
+               }
+
+               public char[] getPassword() {
+                       return password;
+               }
+
+       }
+
+       static RSAPrivateCrtKeySpec privateKeySpec;
+       static Certificate[] chain;
+
+       public static RSAPrivateCrtKeySpec getKeySpec() {
+               return privateKeySpec;
+       }
+
+       public static Certificate[] getCerts() {
+               return chain;
+       }
+
+       private static final String BC = BouncyCastleProvider.PROVIDER_NAME;
+       private static String PBEAlgorithm = "PBEWithSHA1AndDESede";
+       private static String RSAString = "RSA";
+       private static String PKString = "PKCS12";
+       private static String SignAlgo = "SHA1WithRSAEncryption";
+       private static String MAXValidity = "10000";
+       private static int MAXKeySize = 1024;
+       private static String DeveloperPath = "../certificates/developer/";
+       private static String DeveloperConfFile = "conf.ini";
+
+       /**
+        * @param args
+        * @throws IOException
+        * @throws NoSuchAlgorithmException
+        * @throws InvalidKeySpecException
+        * @throws CertificateException
+        * @throws NoSuchProviderException
+        * @throws KeyStoreException
+        * @throws SignatureException
+        * @throws SecurityException
+        * @throws InvalidKeyException
+        * @throws DataLengthException
+        * @throws BadPaddingException
+        * @throws IllegalBlockSizeException
+        * @throws InvalidParameterSpecException
+        * @throws InvalidAlgorithmParameterException
+        * @throws NoSuchPaddingException
+        */
+
+       public static void main(String[] args)
+
+       throws InvalidKeyException, SignatureException, NoSuchAlgorithmException,
+                       KeyStoreException, NoSuchProviderException, CertificateException,
+                       InvalidKeySpecException, IOException, NoSuchPaddingException,
+                       InvalidAlgorithmParameterException, InvalidParameterSpecException,
+                       IllegalBlockSizeException, BadPaddingException {
+               int keySize = MAXKeySize;
+               String caPrivKeyPath = null;
+               String passwd = null;
+               String caCertPath = null;
+               String validity = null;
+               String countryName = null;
+               String stateName = null;
+               String cityName = null;
+               String commonName = null;
+               String organizationName = null;
+               String orgUnitName = null;
+               String emailId = null;
+               String password = null;
+               String alias = null;
+               String subjectName = null;
+               String[] passValue = null;
+               TizenKeyCertificateGenerator tizenKeyGen = null;
+               InputStreamReader inStream = null;
+               BufferedReader bufRead = null;
+
+               try {
+                       inStream = new InputStreamReader(System.in);
+                       bufRead = new BufferedReader(inStream);
+
+                       System.out.println("Please enter the country name(optional, two letters): ");
+                       countryName = bufRead.readLine();
+
+                       System.out.println("Please enter the state or province name(optional): ");
+                       stateName = bufRead.readLine();
+
+                       System.out.println("Please enter the city name(optional): ");
+                       cityName = bufRead.readLine();
+
+                       System.out.println("Please enter your name(optional, default is 'author'): ");
+                       commonName = bufRead.readLine();
+
+                       System.out.println("Please enter your organization name(optional): ");
+                       organizationName = bufRead.readLine();
+
+                       System.out.println("Please enter your department name(optional): ");
+                       orgUnitName = bufRead.readLine();
+
+                       System.out.println("Please enter your email id(optional): ");
+                       emailId = bufRead.readLine();
+
+                       System.out.println("Please enter password for pkcs12 format key certificate: ");
+                       password = bufRead.readLine();
+                       if (password.matches("")) {
+                               System.out
+                                               .println("Error: Failed to enter password for generated pkcs12 content file.");
+                               return;
+                       }
+
+                       System.out.println("Please enter alias for generated pkcs12 structure: ");
+                       alias = bufRead.readLine();
+                       if (alias.matches("")) {
+                               System.out
+                                               .println("Error: Failed to enter alias for generated pkcs12 content file.");
+                               return;
+                       }
+
+                       System.out.println("Please enter file name for storing pkcs12 file (*.p12): ");
+                       String pkcsKeyStorePath = bufRead.readLine();
+                       if (pkcsKeyStorePath.matches("")) {
+                               System.out
+                                               .println("Error: Failed to enter path for storing generated pkcs12 content file.");
+                               return;
+                       }
+
+                       tizenKeyGen = new TizenKeyCertificateGenerator();
+
+                       URL directoryPath = tizenKeyGen.getJarPath();
+                       int iter = 1;
+                       int index = 0;
+                       boolean visited = false;
+                       String[] split = directoryPath.getPath().split("/");
+                       while (split[iter].matches(".*.jar") != true) {
+                               iter++;
+                       }
+
+                       split[1] = "/" + split[1] + "/";
+                       for (index = 2; index < iter; index++) {
+                               split[1] = split[1].concat(split[index]);
+                               split[1] = split[1] + "/";
+                       }
+
+                       String pathCert = split[1];
+                       pathCert = pathCert + DeveloperPath;
+
+                       inStream = new InputStreamReader(new FileInputStream(pathCert
+                                       + DeveloperConfFile));
+                       bufRead = new BufferedReader(inStream);
+
+                       while ((passwd = bufRead.readLine()) != null) {
+                               if (passwd.matches("PASSWD_OF_ISSUER_FOR_DEV=.*") == true) {
+                                       visited = true;
+                                       break;
+                               }
+                       }
+
+                       if (visited == false) {
+                               System.out
+                                               .println("The password file is either missing or doesnt have a valid entry.");
+                               return;
+                       }
+                       visited = false;
+
+                       passValue = passwd.split("PASSWD_OF_ISSUER_FOR_DEV=");
+                       passwd = passValue[1];
+
+                       caCertPath = pathCert + "tizen-developer-ca.cer";
+
+                       caPrivKeyPath = pathCert + "tizen-developer-ca-privatekey.pem";
+
+                       validity = MAXValidity;
+
+                       if (countryName.length() >= 2) {
+                               countryName = countryName.substring(0, 2);
+                               countryName = countryName.toUpperCase();
+                       }
+
+                       if (countryName.length() != 0)
+                               subjectName = "C=" + countryName;
+
+                       if (stateName.length() != 0 && subjectName != null)
+                               subjectName = subjectName + ",ST=" + stateName;
+                       else if (stateName.length() != 0)
+                               subjectName = "ST=" + stateName;
+
+                       if (cityName.length() != 0 && subjectName != null)
+                               subjectName = subjectName + ",L=" + cityName;
+                       else if (cityName.length() != 0)
+                               subjectName = "L=" + cityName;
+
+                       if (organizationName.length() != 0 && subjectName != null)
+                               subjectName = subjectName + ",O=" + organizationName;
+                       else if (organizationName.length() != 0)
+                               subjectName = "O=" + organizationName;
+
+                       if (orgUnitName.length() != 0 && subjectName != null)
+                               subjectName = subjectName + ",OU=" + orgUnitName;
+                       else if (orgUnitName.length() != 0)
+                               subjectName = "OU=" + orgUnitName;
+
+                       if (emailId.length() != 0 && subjectName != null)
+                               subjectName = subjectName + ",E=" + emailId;
+                       else if (emailId.length() != 0)
+                               subjectName = "E=" + emailId;
+
+                       if (commonName.length() != 0 && subjectName != null)
+                               subjectName = subjectName + ",CN=" + commonName;
+                       else if (commonName.length() != 0 && subjectName == null)
+                               subjectName = "CN=" + commonName;
+                       else if (commonName.length() == 0 && subjectName != null) {
+
+                               subjectName = subjectName + ",CN=author";
+                       } else if (commonName.length() == 0 && subjectName == null) {
+
+                               subjectName = "CN=author";
+
+                       }
+
+                       Security.addProvider(new BouncyCastleProvider());
+
+                       tizenKeyGen.generateCertificate(keySize, subjectName, validity,
+                                       caCertPath, caPrivKeyPath, passwd);
+
+                       tizenKeyGen.GeneratePkcs12KeyStore(password, alias,
+                                       pkcsKeyStorePath);
+               } catch (KeyStoreException e) {
+                       System.out
+                                       .println("Key store type should be PKCS12 or any other valid entry.");
+               } catch (NoSuchAlgorithmException e) {
+                       System.out
+                                       .println("Algorithm should be valid such as RSA or any other valid entry.");
+               } catch (InvalidKeySpecException e) {
+                       System.out
+                                       .println("The Key Spec should be generated from RSAPrivateKeySpec, PKCS8privateKeySpec, EncodedKeySpec or any other reconized spec.");
+               } catch (NoSuchPaddingException e) {
+                       System.out
+                                       .println("Cipher object instance should be of valid algo such as PBEWithSHA1AndDESede.");
+               } catch (InvalidKeyException e) {
+                       System.out
+                                       .println("Key should be defined for init API of Cipher Object.");
+               } catch (InvalidAlgorithmParameterException e) {
+                       System.out
+                                       .println("Valid Algorithm Parameter should be defined for init API of Cipher Object.");
+               } catch (CertificateException e) {
+                       System.out
+                                       .println("Pass a valid PKCS12 structure along with correct password for storing it.");
+               } catch (IOException e) {
+                       System.out.println("Pass a valid data for reading.");
+               } catch (InvalidParameterSpecException e) {
+                       System.out
+                                       .println("Parameter Spec should be valid when passed for init API for AlgorithmParameters Object.");
+               } catch (IllegalBlockSizeException e) {
+                       System.out
+                                       .println("Data passed should be valid when calling doFinal API for Cipher Object.");
+               } catch (BadPaddingException e) {
+                       System.out
+                                       .println("Data should be properly padded when calling doFinal API for Cipher Object.");
+               } catch (SignatureException e) {
+                       System.out
+                                       .println("Generated certificate has failed because of incorrect input parameters.");
+               } catch (NoSuchProviderException e) {
+                       System.out
+                                       .println("Failed to validate the generated certificate with its intermediate CA.");
+               } catch (Exception e) {
+                       System.out.println("Generic Exception caught." + e.getMessage());
+               }
+       }
+
+       private URL getJarPath() {
+               return getClass().getProtectionDomain().getCodeSource().getLocation();
+       }
+
+       private boolean generateCertificate(int keySize, String subjectName,
+                       String validity, String caCertPath, String caPrivkeyPath,
+                       String passwd)
+
+       throws IOException, SignatureException, NoSuchAlgorithmException,
+                       NoSuchProviderException, CertificateException, InvalidKeyException {
+
+               PublicKey publicKey = null;
+               SecureRandom secRandom = null;
+               KeyPairGenerator keyPairGenerator = null;
+               Calendar expiryDate = null;
+               X500Name x500SubjectName = null;
+               X500Name x500IssuerName = null;
+               AlgorithmIdentifier sigAlgId = null;
+               AlgorithmIdentifier digAlgId = null;
+               RSAPrivateCrtKeyParameters caPrivateKey = null;
+               X509Certificate caCertificate = null;
+               ContentSigner sigGen = null;
+               SubjectPublicKeyInfo pubInfo = null;
+               X509v3CertificateBuilder certGen = null;
+               X509CertificateHolder certHolder = null;
+               X509Certificate userCertificate = null;
+               RSAPrivateCrtKey privateCrtKey = null;
+               int validityDays = Integer.parseInt(validity);
+
+               try {
+                       secRandom = new SecureRandom();
+
+                       // Generate private and public key pair. Private key need to store
+                       // in given file path.
+                       keyPairGenerator = KeyPairGenerator.getInstance(RSAString);
+                       keyPairGenerator.initialize(keySize, secRandom);
+                       KeyPair keypair = keyPairGenerator.generateKeyPair();
+                       publicKey = keypair.getPublic();
+                       privateCrtKey = (RSAPrivateCrtKey) keypair.getPrivate();
+
+                       expiryDate = Calendar.getInstance();
+                       expiryDate.add(Calendar.DAY_OF_YEAR, validityDays);
+                       
+                       caCertificate = ImportCertificate(caCertPath, passwd);
+                       if (caCertificate == null) {
+                               throw new IllegalArgumentException(
+                                               "CA Certificate argument is incorrect.");
+                       }
+                       // Set subject name
+                       x500SubjectName = new X500Name(subjectName);
+
+                       // Read subject name from Issuer certificate.
+                       x500IssuerName = new X500Name(caCertificate.getSubjectDN().toString()); 
+       
+                       // Set the signature and digest algorithm
+                       sigAlgId = new DefaultSignatureAlgorithmIdentifierFinder()
+                                       .find(SignAlgo);
+                       digAlgId = new DefaultDigestAlgorithmIdentifierFinder()
+                                       .find(sigAlgId);
+
+                       // Read CA private key for signing process of generated certificate
+                       caPrivateKey = ReadCaPrivateKey(caPrivkeyPath, passwd,
+                                       privateCrtKey);
+                       if (caPrivateKey == null) {
+                               throw new IllegalArgumentException(
+                                               "Private key argument is incorrect.");
+                       }
+
+                       sigGen = new BcRSAContentSignerBuilder(sigAlgId, digAlgId)
+                                       .build(caPrivateKey);
+                       pubInfo = new SubjectPublicKeyInfo(
+                                       (ASN1Sequence) new ASN1InputStream(
+                                                       new ByteArrayInputStream(publicKey.getEncoded()))
+                                                       .readObject());
+
+                       certGen = new X509v3CertificateBuilder(x500IssuerName,
+                                       BigInteger.valueOf(System.currentTimeMillis()), new Date(
+                                                       System.currentTimeMillis()), new Date(
+                                                       expiryDate.getTimeInMillis()), x500SubjectName,
+                                       pubInfo);
+                       certHolder = certGen.build(sigGen);
+                       userCertificate = new JcaX509CertificateConverter().setProvider(BC)
+                                       .getCertificate(certHolder);
+
+                       // Read CA certificate to find the public key for verification
+                       
+
+                       // Store Certificates in the form of Certificate Chain which is
+                       // needed for exporting it to pkcs12 content file
+                       chain = new Certificate[2];
+                       chain[0] = (Certificate) userCertificate;
+                       chain[1] = (Certificate) caCertificate;
+
+                       userCertificate.checkValidity(new Date());
+       
+                       // Check and verify generated certificate with CA public key
+                       userCertificate.verify(caCertificate.getPublicKey());
+               
+               } catch (IOException e) {
+                       System.out
+                                       .println("Certificate read or private key reading has failed because of invalid parameters.");
+               } catch (SignatureException e) {
+                       System.out.println("Signature verification has failed.");
+               } catch (NoSuchAlgorithmException e) {
+                       System.out
+                                       .println("The algorithm is invalid for KeyPairGenerator object.");
+               } catch (NoSuchProviderException e) {
+                       System.out.println("Generated certificate validation has failed.");
+               } catch (CertificateException e) {
+                       System.out.println("Certificate is not valid for reading.");
+               } catch (InvalidKeyException e) {
+                       System.out
+                                       .println("CA Certificate public key is invalid for verification purpose of generated certificate.");
+               } catch (Exception e) {
+                       System.out.println("Generic Exception caught."  + e.getMessage());
+               }
+               return true;
+
+       }
+
+       private X509Certificate ImportCertificate(String caCertPath, String password)
+                       throws FileNotFoundException, IOException {
+
+               BufferedReader buffReader = null;
+               X509Certificate caCert = null;
+
+               try {
+
+                       PasswordFinder passFinder = null;
+                       PEMReader pemRead = null;
+                       buffReader = new BufferedReader(new FileReader(caCertPath));
+                       if (password != null) {
+                               passFinder = new Password(password.toCharArray());
+                               pemRead = new PEMReader(buffReader, passFinder);
+                       } else {
+                               pemRead = new PEMReader(buffReader);
+                       }
+                       Object objVal;
+
+                       while ((objVal = pemRead.readObject()) != null) {
+                               if (objVal instanceof X509Certificate) {
+                                       caCert = (X509Certificate) objVal;
+
+                               } else {
+                                       System.out.println("Failed to read CA certificate");
+                               }
+                       }
+
+                       pemRead.close();
+                       if (caCert == null)
+                               System.out.println("Failed to read CA certificate");
+
+                       if (buffReader != null)
+                               buffReader.close();
+
+                       return caCert;
+
+               } catch (FileNotFoundException e) {
+                       System.out
+                                       .println("CA certificate file not found. Please pass valid path.");
+               } catch (IOException e) {
+                       System.out.println("CA certificate is not valid for reading.");
+               } catch (Exception e) {
+                       System.out.println("Generic Exception caught."  + e.getMessage());
+               } finally {
+                       if (buffReader != null)
+                               buffReader.close();
+               }
+
+               return null;
+
+       }
+
+       private RSAPrivateCrtKeyParameters ReadCaPrivateKey(String caPrivKeyPath,
+                       String passwd, RSAPrivateCrtKey privateCrtKey) throws IOException,
+                       FileNotFoundException, GeneralSecurityException {
+
+               FileInputStream fileStream = null;
+               RSAPrivateCrtKeyParameters caPrivateKey = null;
+               RSAPrivateCrtKey privateKey = null;
+               byte[] decodedString = null;
+               EncodedKeySpec p8KeySpec = null;
+               PKCS8Key p8Key = null;
+
+               try {
+
+                       fileStream = new FileInputStream(caPrivKeyPath);
+
+                       p8Key = new PKCS8Key(fileStream, passwd.toCharArray());
+                       decodedString = p8Key.getDecryptedBytes();
+
+                       p8KeySpec = new PKCS8EncodedKeySpec(decodedString);
+                       privateKey = (RSAPrivateCrtKey) KeyFactory.getInstance(RSAString)
+                                       .generatePrivate(p8KeySpec);
+
+                       if (privateKey == null) {
+                               System.out.println("Failed to read private key file.");
+                               if (fileStream != null)
+                                       fileStream.close();
+                               return null;
+                       }
+
+                       // Store Private Key as RSAPrivateCrtKeySpec which is needed for
+                       // exporting it to pkcs12 content file
+                       privateKeySpec = new RSAPrivateCrtKeySpec(
+                                       privateCrtKey.getModulus(),
+                                       privateCrtKey.getPublicExponent(),
+                                       privateCrtKey.getPrivateExponent(),
+                                       privateCrtKey.getPrimeP(), privateCrtKey.getPrimeQ(),
+                                       privateCrtKey.getPrimeExponentP(),
+                                       privateCrtKey.getPrimeExponentQ(),
+                                       privateCrtKey.getCrtCoefficient());
+
+                       caPrivateKey = new RSAPrivateCrtKeyParameters(
+                                       privateKey.getModulus(), privateKey.getPublicExponent(),
+                                       privateKey.getPrivateExponent(), privateKey.getPrimeP(),
+                                       privateKey.getPrimeQ(), privateKey.getPrimeExponentP(),
+                                       privateKey.getPrimeExponentQ(),
+                                       privateKey.getCrtCoefficient());
+
+                       if (fileStream != null)
+                               fileStream.close();
+
+                       return caPrivateKey;
+
+               } catch (GeneralSecurityException e) {
+                       System.out
+                                       .println("The private key passed is of not a proper encoding. It should be of PKCS8 or EncodedKeySpec format.");
+               } catch (FileNotFoundException e) {
+                       System.out.println("Private Key file not found at specified path.");
+               } catch (IOException e) {
+                       System.out
+                                       .println("Encrypted Private Key file not valid or pass a valid password to read it.");
+               } catch (Exception e) {
+                       System.out.println("Generic Exception caught." + e.getMessage());
+               } finally {
+                       if (fileStream != null)
+                               fileStream.close();
+               }
+
+               return null;
+       }
+
+       private void GeneratePkcs12KeyStore(String password, String alias,
+                       String pkcsKeyStorePath)
+
+       throws KeyStoreException, NoSuchAlgorithmException,
+                       InvalidKeySpecException, NoSuchPaddingException,
+                       InvalidKeyException, InvalidAlgorithmParameterException,
+                       CertificateException, IOException, InvalidParameterSpecException,
+                       IllegalBlockSizeException, BadPaddingException {
+               try {
+                       Certificate[] certs = null;
+                       RSAPrivateCrtKeySpec privKeySpec = null;
+                       PBEParameterSpec pbeParamSpec = null;
+                       EncryptedPrivateKeyInfo encPrivKey = null;
+                       KeyStore keyStore = null;
+                       int count = 20;
+                       byte[] ciphertext = null;
+                       byte[] salt = { (byte) 0xc7, (byte) 0x73, (byte) 0x21, (byte) 0x8c,
+                                       (byte) 0x7e, (byte) 0xc8, (byte) 0xee, (byte) 0x99 };
+
+                       privKeySpec = TizenKeyCertificateGenerator.getKeySpec();
+                       certs = TizenKeyCertificateGenerator.getCerts();
+
+                       keyStore = KeyStore.getInstance(PKString);
+
+                       KeyFactory fact = KeyFactory.getInstance(RSAString);
+
+                       PrivateKey privKey = fact.generatePrivate(privKeySpec);
+
+                       pbeParamSpec = new PBEParameterSpec(salt, count);
+
+                       PBEKeySpec pbeKeySpec = new PBEKeySpec(password.toCharArray());
+                       SecretKeyFactory keyFac = SecretKeyFactory
+                                       .getInstance(PBEAlgorithm);
+                       SecretKey pbeKey = keyFac.generateSecret(pbeKeySpec);
+
+                       Cipher pbeCipher = Cipher.getInstance(PBEAlgorithm);
+
+                       pbeCipher.init(Cipher.ENCRYPT_MODE, pbeKey, pbeParamSpec);
+
+                       ciphertext = pbeCipher.doFinal(privKey.getEncoded());
+
+                       AlgorithmParameters algparms = AlgorithmParameters
+                                       .getInstance(PBEAlgorithm);
+                       algparms.init(pbeParamSpec);
+                       encPrivKey = new EncryptedPrivateKeyInfo(algparms, ciphertext);
+
+                       keyStore.load(null, null);
+
+                       keyStore.setKeyEntry(alias, encPrivKey.getEncoded(), certs);
+
+                       FileOutputStream fOut = new FileOutputStream(pkcsKeyStorePath);
+                       keyStore.store(fOut, password.toCharArray());
+               } catch (KeyStoreException e) {
+                       System.out
+                                       .println("Key store type should be PKCS12 or any other valid entry.");
+               } catch (NoSuchAlgorithmException e) {
+                       System.out
+                                       .println("Algorithm should be valid such as RSA or any other valid entry.");
+               } catch (InvalidKeySpecException e) {
+                       System.out
+                                       .println("The Key Spec should be generated from RSAPrivateKeySpec, PKCS8privateKeySpec, EncodedKeySpec or any other reconized spec.");
+               } catch (NoSuchPaddingException e) {
+                       System.out
+                                       .println("Cipher object instance should be of valid algo such as PBEWithSHA1AndDESede.");
+               } catch (InvalidKeyException e) {
+                       System.out
+                                       .println("Key should be defined for init API of Cipher Object.");
+               } catch (InvalidAlgorithmParameterException e) {
+                       System.out
+                                       .println("Valid Algorithm Parameter should be defined for init API of Cipher Object.");
+               } catch (CertificateException e) {
+                       System.out
+                                       .println("Pass a valid PKCS12 structure along with correct password for storing it.");
+               } catch (IOException e) {
+                       System.out
+                                       .println("Pass a valid path where PKCS12 structure will be stored.");
+               } catch (InvalidParameterSpecException e) {
+                       System.out
+                                       .println("Parameter Spec should be valid when passed for init API for AlgorithmParameters Object.");
+               } catch (IllegalBlockSizeException e) {
+                       System.out
+                                       .println("Data passed should be valid when calling doFinal API for Cipher Object.");
+               } catch (BadPaddingException e) {
+                       System.out
+                                       .println("Data should be properly padded when calling doFinal API for Cipher Object.");
+               } catch (Exception e) {
+                       System.out.println("Generic Exception caught." + e.getMessage());
+               }
+       }
+       
+}