<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.heepy.net/index.php?action=history&amp;feed=atom&amp;title=Diy_SSL_CA_%2B_android</id>
	<title>Diy SSL CA + android - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.heepy.net/index.php?action=history&amp;feed=atom&amp;title=Diy_SSL_CA_%2B_android"/>
	<link rel="alternate" type="text/html" href="https://www.heepy.net/index.php?title=Diy_SSL_CA_%2B_android&amp;action=history"/>
	<updated>2026-04-29T13:09:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://www.heepy.net/index.php?title=Diy_SSL_CA_%2B_android&amp;diff=1333&amp;oldid=prev</id>
		<title>Morris: Created page with &quot;== Creating a CA == You can create a CA and use it to sign certs for use by other services, so that you can add that CA to phone, laptop, etc and have them not complain about ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.heepy.net/index.php?title=Diy_SSL_CA_%2B_android&amp;diff=1333&amp;oldid=prev"/>
		<updated>2014-05-22T22:52:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Creating a CA == You can create a CA and use it to sign certs for use by other services, so that you can add that CA to phone, laptop, etc and have them not complain about ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Creating a CA ==&lt;br /&gt;
You can create a CA and use it to sign certs for use by other services, so that you can add that CA to phone, laptop, etc and have them not complain about self-signed certs. &lt;br /&gt;
&lt;br /&gt;
Generate the root CA key&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl genrsa -out rootCA.key 4096 -aes-256-cbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generate the (self-signed) root CA cert: (-nodes means without password encryption, omit if this is not what you want)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl req -x509 -new -nodes -key rootCA.key -days 10240 -out rootCA.pem&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating certs and keys for services ==&lt;br /&gt;
Create a signing request: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl req -new -key myserver.key -out myserver.csr&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use the root CA cert to sign the CSR and generate the server cert.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl x509 -req -in myserver.csr -CA ./rootCA.pem -CAkey ./rootCA.key -CAcreateserial -out myserver.crt -days 3650&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installing system-wide in rooted Android phones ==&lt;br /&gt;
&lt;br /&gt;
get the hash of the root CA cert and append a &amp;quot;.0&amp;quot; - this is the filename the cert should be stored as. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl x509 -in rootCA.pem -subject_hash_old -noout&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Copy rootCA.pem to this filename (eg, 87654321.0) and put it into /system/etc/security/cacerts/87654321.0 on the Android device.&lt;/div&gt;</summary>
		<author><name>Morris</name></author>
	</entry>
</feed>