generated a rsa key with keytool - where is it? - security

I created a RSA key pair using keytool, but I need to get the public key.
I've read all around but can't find this information anywhere.
Is there a way to get that information? Or even where are the files located in windows 7?
Any suggestion will help..
thanks!

The key is stored under your user directory.
If you're on Windows it's under Users/ragalante/.keystore.

Related

How to change SHA-1 signing key within an existing keystore.jks (Android / Mac)

I recently re-installed Android studio and changed the password on a Keystore key to solve some problem I had.
However, somehow in this process, the SHA-1 key in my existing key within the existing old keystore got changed. I did not do this directly. It happened automatically somehow. Anyway, it means I can no longer update my app on Google Play Store, since it's expecting the old key.
Since I know what the old SHA-1 key is, can I update the SHA-1 for the existing key within that keystore file or is there some other solution here?
Modifying the password of a keystore does not change the certificate and thus its SHA-1 should remain identical.
If the SHA-1 has changed, then it means the certificate has changed. Knowing the SHA-1 alone will not help you to re-create the original keystore.
You need to locate the original keystore, or the original alias of the key in the keystore (maybe you accidentally created another certificate in the same keystore?).
To ensure you have found the correct keystore/alias/certificate, you can run the following command which prints the SHA-1 and you compare it with the one that the Google Play Console expects.
keytool -list -v -keystore {keystore_path} -alias {alias_name}

Encryption not working in Inno Setup

I wish to encrypt the contents of my program when the program is visited in Windows Explorer but I find that none of the files are encrypted once the program is installed. I have set encryption to yes and set a password but none of the files in any of the folders are encrypted. Besides setting encryption and setting a password, I'm not sure what else one can do to ensure encryption. Is there anything I'm missing?
Indeed, the Inno Setup encryption encrypts only the installer. The installed files are decrypted during installation. That's by design. How would your application be able to use them, if they were encrypted using a password the application is not aware of?
If you want to have the installed files encrypted, you have to encrypt them yourself before compiling the installer. And your application must prompt user for a password to be able to decrypt them.
You can also of course hard-code the password to your application. But that's not safe enough. There's generally no way to safely encrypt data in a way that allows automatic decryption.

Web based method to get public key from .pem file

I have created an EC2 instance and I now want to connect to it from a Chromebook. For the time being, I only have access to this Chromebook and I am after a way of generating my public key from the .pem file that Amazon issues.
I am familiar with how to do this via the Linux command line, but I need a web based solution for this.
You need an SSH client for Chrome, try this:
https://chrome.google.com/webstore/detail/secure-shell/pnhechapfaindjhompbnflcldabbghjo

How to convert Domino specific kyr file to pkcs12 on 64-bit windows

I need to get the private key out of my Domino kyr file, to import into another server. The key should be in the best case pkcs12 format. I am aware of the IKEYMAN tool by IBM. However, I cannot use that because I don't have access to a 32-bit windows XP. And unfortunately, only version 5 can understand the kyr format.
It is a very strange conundrum. I hope somebody can help me out.
Just download "kyrtool" from IBM and put it in the appropriate directory. This download contains versions for windows and linux.
Use the show keys command as described in this link to show the private key in Base64 Format. You can then simply convert it into anything you need with e.g. Openssl.

Digitally Sign tar.gz file

I need to digitally sign a tar.gz file, and have no idea how to do it. I understand the concept, and I know how to sign a jar/zip file. But I cannot find a way that will work with a tar.gz file.
Can anyone point me in the right direction, or tell me why this cannot be done?
Thanks!
One of the options is to use detached signature using an OpenPGP key or X.509 certificate. Both GnuPG and OpenSSL should be able to produce detached signatures. Of course, you will get a separate file with the signature, but this is the only viable option, as for me.

Resources