• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Exporting my key as a PEM file

Greum

Well-Known Member
Jun 2, 2019
150
50
Umbria, Italy
I'm trying to reset my upload key. Google's instructions say:

2. Export the certificate for that key to PEM format:

keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks

After several attempts I have managed to locate keytool.exe and I changed the command to use my .jks file. Having eventually got the password correct I now get the following error:

keytool error: java.io.FileNotFoundException: upload_certificate.pem (Access is denied)

Can anyone help please? I am running out of hair to tear out!
 
Lol. Thing is I'm not quite ready to go all the way. I need a dual boot, just in case...
@LV426 is 100% correct: I agree! Switch to Linux. :)

If you want to share your concerns with us, perhaps we can help put your mind at ease.

For example, if you're among the many who think Linux means doing everything with cryptic commands at a command line, we can assure you that it's not. That, in fact, if you don't WANT to, you need never even SEE a command prompt. My mother happily used Kubuntu Linux for years, up until her death, and never saw a command line. She had known nothing but windows prior to my switching her, and her only complaint about Linux was, "it's too fast!" :D

What do you think you'll lose by switching?
 
Upvote 0
The only reason I'd duel boot with windows is if I had some high-end games that will only run on windows. I definitely prefer Linux Debian 9 Stretch over windows for developing software. High-end Apple computers are also good. Apple is too rich for my budget though so I stick to open source and I'm just as productive with a $700.00 PC than a $1200.00 Apple computer.
 
  • Like
Reactions: MoodyBlues
Upvote 0
I'm happy using Linux but I can't afford to wipe everything and install Mint (or whatever) as I would be without a working machine for too long. There are just too many programs to re-install, and I have some programs that are not available for Linux. Many of my programs are available for Linux, or there's a replacement, but not all.

As I say my ideal would be a dual boot system.
 
Upvote 0
I would be without a working machine for too long.
Got a spare weekend? Some time when you can do your thing without feeling rushed?

For me, it takes ≈30 minutes to install Kubuntu on a new machine. Then there's the considerable time I CHOOSE to spend setting up and tweaking its infinite customization options.
There are just too many programs to re-install
Are you familiar with Synaptic? It's the package manager I use. It has...well, I don't rightly know how many thousands of programs it has--and more you can add from other repositories--so let's just say it has A LOT. And there's nothing to do to install them other than checking off the program(s) you want, and clicking 'apply.' Set it to install 10, 50, 100 whatever programs and go grab yourself a cup of coffee or something. :)
and I have some programs that are not available for Linux. Many of my programs are available for Linux, or there's a replacement, but not all.
There's always the venerable wine, and I believe others, that let you run windows programs. I read an interesting article about that concept, but it's focused on windows-only games. It's worth a read, especially if you're a gamer.

But if you're set on dual-booting, I'm sure that can be done, although I can't help you. The last time I set up a dual-boot box was ≈1994. We have a Linux mega-thread where you're welcome to participate. Feel free to ask anything and someone will likely be able to help.
 
  • Like
Reactions: Greum
Upvote 0
Be sure to go into /etc/shadow and remove the last character next to root to disable root when you aren't using it otherwise your box will be hacked in 2 seconds flat.
34 years of using *nix and I did not know that! ;)

Nor have I ever disabled root.

Nor have I ever been hacked. :)

A properly-configured Linux box should keep intruders out. At least, that's what's worked for me both at home and work.
 
  • Like
Reactions: Deleted User
Upvote 0
Brian I don't fully understand what the issue is. When you install a Linux distro, it prompts you for a root password, which should of course be a strong one. Using a weak password can make your system vulnerable. But that's true for any user.

On my Ubuntu system nobody can directly log in as root user. And to become root, you need to be able to use sudo, which has to be purposely enabled for any user.
 
Last edited by a moderator:
  • Like
Reactions: MoodyBlues
Upvote 0
Thanks, Brian, but no thanks. :)

I not only don't disable root, I set up all my computers to allow root log-ons. And I allow su - which I use frequently.

My passwords are strong, from the ground up, i.e., starting with my router.

Please don't think your suggestions are bad or anything like that. It's just that I've used *nix since 1985--with ZERO security problems, and off-site backups--and kind of know what I'm doing. :D
 
  • Like
Reactions: svim
Upvote 0
If it gives you more peace of mind that disabling root is making your system safer that's a good thing but, just my opinion, that seems to be more folly than practical. Please provide some documentation from valid sources that confirm your claim that Linux installs with root accounts enabled get readily hacked in two seconds.
With the non-stop parade of breaches and compromises to almost any online service popping up almost daily, I have yet to see root-access enabled Linux systems being a factor to that problem -- most being attributed to users not updating their systems properly (disabling root as a policy will only make that issue even worse.)
 
  • Like
Reactions: MoodyBlues
Upvote 0
Please provide some documentation from valid sources that confirm your claim that Linux installs with root accounts enabled get readily hacked in two seconds.
Yes! All of my computers, which are all root-enabled, are billions of seconds past 2...but they're still not hacked...
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones