给Android系统的cacerts.bks添加根证书 - XiZi's Blog

给Android系统的cacerts.bks添加根证书

Xizi posted @ 2012年6月13日 21:04 in 未分类 , 10219 阅读

1.创建自己的根证书

  •  产生私匙(这里我们使用openssl)
    openssl genrsa -3 -out testkey.pem 2048
  • 生成根证书
    openssl req -new -x509 -key testkey.pem -out testkey.x509.pem -days 10000
  • 转换私匙格式
    openssl pkcs8 -in testkey.pem -topk8 -outform DER -out testkey.pk8 -nocrypt

好了可以用testkey.x509.pem和testkye.pk8文件给apk,jar签名了。

2.给cacerts.bks添加根证书

在PC上安装Java环境,然后下载这个文件 http://bouncycastle.org/download/bcprov-jdk16-141.jar,放入java安装目录下的/lib/ext/目录中。

将第一步中取得的cacerts.bks与你要添加的CA证书放在同一级目录下,CA证书为crt或cer格式。然后通过以下命令倒入

keytool -keystore cacerts.bks -storetype BKS -provider org.bouncycastle.jce.provider.BouncyCastleProvider \
-storepass "" -importcert -trustcacerts -alias 100.crt -file testkey.x509.pem.crt

ps:Try a. Blank. Pass, or ez24get, or "", or testtest ,those are all known instances of passwords besides changeit on Android devices

3.对于android4.0

 

直接把证书放在/system/etc/security/cacerts文件夹里面,创建一个hash链接,并修改权限644。

ln -s my_ca.crt `openssl x509 -hash -noout -in my_ca.crt`.0

Avatar_small
dark web/deep web/d 说:
2022年8月21日 00:55

If you're not careful, you can fall victim to these scams and wind up wasting your time and even money. dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月21日 01:49

Some of the programs and websites offering this service may try to sell you something, even if they aren't really legitimate. deep web

Avatar_small
dark web/deep web/d 说:
2022年8月21日 02:13

And if you don't have a lot of friends on any of these sites to recruit, then you can't expect to make money.  dark web sites

Avatar_small
dark web/deep web/d 说:
2022年8月21日 02:34

So can I make money with links? The answer is yes, you can but it's not easy. It takes time and effort and hence, not many people can do it. dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月21日 02:53

The more links you have, the more visitors you can attract and the more money you can make. However, you need to make sure that you are only working with legitimate companies or individuals.  dark web

Avatar_small
dark web/deep web/d 说:
2022年8月21日 03:12

You will quickly find that there are hundreds of thousands of companies you can join and become an affiliate for. The key is to find the affiliate programs that offer the products or services that appeal to you and then concentrate your efforts on these companies. work from home jobs

Avatar_small
dark web/deep web/d 说:
2022年8月21日 03:28

When you have found an appropriate seller, the next step in your quest for success with affiliate marketing is to set up a simple website that displays the products or services offered by your selected companies. affiliate marketing success

Avatar_small
meidir 说:
2023年1月03日 02:23

Great post, I think website owners should acquire a lot from this web site its very user pleasant. 카지노사이트

Avatar_small
zaiya 说:
2023年1月06日 07:20

To add a root certificate to the `cacerts.bks` file of an Android system, you can use the `keytool` utility that comes with the Java JDK. First, diamond rings you need to export the certificate from the server where it is installed. Then, you need to import the certificate into the `cacerts.bks` file.

Avatar_small
meidir 说:
2023年2月17日 06:44

I’ve observed that in the world the present moment, video games are definitely the latest fad with children of all ages. Often times it may be unattainable to drag young kids away from the activities. If you want the very best of both worlds, there are numerous educational activities for kids. Thanks for your post. 슈어맨

Avatar_small
seo 说:
2023年7月01日 23:26

Get ready to download and convert your favorite YouTube videos effortlessly! Our YouTube Downloader lets you search for videos, save them as MP3 or MP4 files, and take them with you wherever you go. Say goodbye to buffering and hello to unlimited music enjoyment! Youtube Converter

Avatar_small
seo 说:
2023年7月01日 23:26

Get ready to download and convert your favorite YouTube videos effortlessly! Our YouTube Downloader lets you search for videos, save them as MP3 or MP4 files, and take them with you wherever you go. Say goodbye to buffering and hello to unlimited music enjoyment! Youtube Converter

Avatar_small
tytt 说:
2023年8月10日 01:17

Just admiring your work and wondering how you managed this blog so well. It’s so remarkable that I can't afford to not go through this valuable information whenever I surf the internet! 0x0 0x0 error

Avatar_small
pomol 说:
2023年9月18日 07:37

Admiring the time and effort you put into your blog and detailed information you offer!.. UFABETเว็บแม่

Avatar_small
pomol 说:
2023年9月19日 03:06

You have outdone yourself this time. It is probably the best, most short step by step guide that I have ever seen. ufabet เว็บตรง

Avatar_small
pomol 说:
2023年9月19日 05:42

Great post, you have pointed out some excellent points, I as well believe this is a very superb website. เว็บตรงต่างประเทศUFABET

Avatar_small
asdasd 说:
2023年9月20日 02:28

I am definitely enjoying your website. You definitely have some great insight and great stories. beli followers tiktok

Avatar_small
aaa 说:
2023年10月28日 19:51

Hi, I find reading this article a joy. It is extremely helpful and interesting and very much looking forward to reading more of your work.. happy new month messages

Avatar_small
dshdsd 说:
2023年12月05日 23:55

Wonderful blog! Do you have any tips and hints for aspiring writers? Because I’m going to start my website soon, but I’m a little lost on everything. Many thanks! UFABETเว็บตรงแทงบอล

Avatar_small
SEObacklinks77 说:
2023年12月26日 05:10

An fascinating discussion is value comment. I think that it is best to write extra on this matter, it won’t be a taboo topic however generally people are not enough to talk on such topics. To the next. Cheers <a href="https://telegra.ph/Unveiling-the-Ultimate-Travel-Experience-Explore-Beyond-with-kimsatravel-12-23">kimsatravel.com</a>

 

Avatar_small
SEObacklinks77 说:
2023年12月28日 20:53

I can’t imagine focusing long enough to research; much less write this kind of article. You’ve outdone yourself with this material. This is great content. <a href="https://www.outlookindia.com/outlook-spotlight/%EC%B9%B4%EC%A7%80%EB%85%B8%EC%82%AC%EC%9D%B4%ED%8A%B8-%EB%B0%94%EC%B9%B4%EB%9D%BC%EC%82%AC%EC%9D%B4%ED%8A%B8-%EC%8A%AC%EB%A1%AF%EC%82%AC%EC%9D%B4%ED%8A%B8-%EA%B2%80%EC%A6%9D%EC%99%84%EB%A3%8C-top5--news-338848">바카라사이트</a>

 

Avatar_small
SEObacklinks77 说:
2023年12月31日 17:18

The article looks magnificent, but it would be beneficial if you can share more about the suchlike subjects in the future. Keep posting. <a href="https://artcado.ro/">artcado</a>

 

Avatar_small
SEObacklinks77 说:
2023年12月31日 21:24

Friend, this web site might be fabolous, i just like it. <a href="https://artcado.ro/">artcado</a>

 

Avatar_small
rse 说:
2024年1月05日 20:23

I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. 스포츠 중계 실시간

Avatar_small
rse 说:
2024年1月05日 20:24

Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. judi online

Avatar_small
dshdsd 说:
2024年1月06日 04:25

Great article Lot's of information to Read...Great Man Keep Posting and update to People..Thanks ufabet mobile

Avatar_small
dshdsd 说:
2024年1月09日 04:24

You have a good point here!I totally agree with what you have said!!Thanks for sharing your views...hope more people will read this article!!! best clitoral massager

Avatar_small
Imamia Quran Academy 说:
2024年1月09日 09:39

Online Shia Quran Academy is an institute for Quran Education. They have trained teaching staff along with renowned Islamic Scholars for a better understanding of the Quran. Shia Quran Academy is an Online Ahle Tashi Institute that has all the features of traditional madrasahs including the teaching of an authentic understanding of the Quran. Additionally, Shia Quran Academy Online provides all teaching by certified professional teachers. Thus, joining Quran Academy will be suitable and beneficial for every learner. It is very difficult to find a good Online Shia Quran Center with Shia Teachers abroad except in Muslim or especially Ahle Tashi majority countries. Imamia Quran Center connects students virtually from all over the world including countries with less or no Ahle Tashi population or Shia Quran Centers. Our Quran Academy is a comprehensive institution with full fledged facilities regarding Shia Quran Learning. Ahle Tashi Quran student is free to choose the timings of classes, lecturers and tutors according to their feasibility and availability to Learn Shia Quran. Online learning more efficiently saves time and money spent over conveyance and physical going to any conventional Shia Quran Institute. Online Shia Madrasa selects highly qualified Quran teachers, keeping in mind the ages of kids and adults, who teach kids and adults Quranic education as well as their beliefs, spirituality and worldly life. The Shia Quran Madrasa Online is a secure place for kids and adults to learn and memorize the Quran. They teach the translation and interpretation of the Holy Quran under the guidance of expert Quranic teachers. Our Shia Quran Madrasa is second to none in providing education to Ahle Tashi women’s. So our center has selected Ahle Tashi Female Quran teacher with higher education from Madrasas. Online Shia Quran Madrasa is one of the best academies providing its services all over the world including USA, UK, Canada, Germany, France and Australia.

Avatar_small
dshdsd 说:
2024年1月10日 22:43

Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. 2024년 최고의 토토사이트 추천 목록 안내

Avatar_small
dshdsd 说:
2024年1月27日 00:26

Federal Tax Liens can really make your life miserable! When your taxes are not paid the IRS establishes a lien against all of your assets. This gives the IRS Stop Wage Garnishment

Avatar_small
dshdsd 说:
2024年1月31日 01:04

There are a lot of blogs over the Internet. But I can surely say that your blog is amazing in all. It has all the qualities that a perfect blog should have. pin collar dress shirt

Avatar_small
dshdsd 说:
2024年2月03日 00:30

Federal Tax Liens can really make your life miserable! When your taxes are not paid the IRS establishes a lien against all of your assets. This gives the IRS Tax Lien Levy

Avatar_small
dshdsd 说:
2024年2月08日 05:31

This is my first visit to your web journal! We are a group of volunteers and new activities in the same specialty. Website gave us helpful data to work. Password reset

Avatar_small
dshdsd 说:
2024年2月12日 07:39

Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. Employment Platform

Avatar_small
dshdsd 说:
2024年2月12日 07:55

Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. Beginner gardening tips

Avatar_small
SEObacklinks77 说:
2024年2月14日 05:18

Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work.
[url=https://lukas4h8dm.blue-blogs.com/31237819/men-s-dress-shirts-are-an-essential-component-of-every-outfit-for-the-following-five-reasons]Men's dress shirts[/url]

 

Avatar_small
SEObacklinks77 说:
2024年2月15日 04:56

This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… [url=https://briansclub-cm24332.blogsumer.com/25109051/elevate-your-style-now-and-experience-the-timeless-elegance-of-pin-collar-dress-shirts]pin collar dress shirt[/url]

Avatar_small
SEObacklinks77 说:
2024年2月15日 05:22

Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info.
[url=https://monvelli.mn.co/posts/50805738]pin collar dress shirt[/url]

 


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee