private-key

Access denied when creating keystore for Android app

三世轮回 提交于 2019-11-30 11:28:18
问题 I am trying to sign my Android app so I can release it in Market. When I generate the keystore, I get an access denied error. How do I fix this? This is what I've been trying to do: Right click project in Eclipse Helios. Android Tools > Export Signed Application Package. Click next. I check "Create new keystore" and realize it does nothing to help me. It still asks for the location of keystore. So I decide to do it the hard way. Turned off read-only access on C:\Program Files\Java\jdk1.6.0_25

How to Export a Multi-line Environment Variable in Bash/Terminal e.g: RSA Private Key

Deadly 提交于 2019-11-30 11:07:41
One of our Apps github-backup requires the use of an RSA Private Key as an Environment Variable. Simply attempting to export the key it in the terminal e.g: text export PRIVATE_KEY=-----BEGIN RSA PRIVATE KEY----- MIIEpAIBAAKCAQEA04up8hoqzS1+ ... l48DlnUtMdMrWvBlRFPzU+hU9wDhb3F0CATQdvYo2mhzyUs8B1ZSQz2Vy== -----END RSA PRIVATE KEY----- Does not work ... because of the line breaks. I did a bit of googling but did not find a workable solution ... e.g: How to set multiline RSA private key environment variable for AWS Elastic Beans Error: -----END RSA PRIVATE KEY-----': not a valid identifier

Android Fingerprint API and Private/Public keys

你。 提交于 2019-11-30 11:06:22
When I enrol first and only fingerprint and generate KeyPair the PrivateKey gets invalidated when I use it for the second time. This happens only once. Am I the only one having this issue? Is there something wrong with my code? I cannot use any other key as I'm using PrivateKey to sign data. Steps: Wipe all fingerprints Enrol one fingerprint Generate KeyPair and use FingerprintManager :: authenticate During next use of FingerprintManager :: authenticate PrivateKey gets permanently invalidated. This happens only for the first time Below the code where I generate the KeyPair KeyStore keyStore =

Encrypting a BouncyCastle RSA Key Pair and storing in a SQL2008 database

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 07:01:18
问题 I have a function that generates a BouncyCastle RSA key pair. I need to encrypt the private key and then store the encrypted private and public keys into separate SQL2008 database fields. I am using the following to get the keypair: private static AsymmetricCipherKeyPair createASymRandomCipher() { RsaKeyPairGenerator r = new RsaKeyPairGenerator(); r.Init(new KeyGenerationParameters(new SecureRandom(), 1024)); AsymmetricCipherKeyPair keys = r.GenerateKeyPair(); return keys; } This is returning

Private key of certificate in certificate-store not readable

喜夏-厌秋 提交于 2019-11-30 06:57:32
I think I've got the same issue like this guy , but I wasn't as lucky as him/her since the solution provided doesn't work for me. The solution provided looks for files on the C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys ( not in sub directories) and C:\Users\[Username]\AppData\Roaming\Microsoft\Crypto\RSA (and subdirectories) However since I want the setup to install the application to all users, the custom action is running under the SYSTEM -User, which leads the files beeing actually created in C:\ProgramData\Application Data\Microsoft\Crypto\RSA\S-1-5-18 . When running an "normal"

Use and utility of .p12 certificate/file

柔情痞子 提交于 2019-11-30 06:46:00
What is the utility of .p12 file/certificate? I am not getting any correct definition when searching the internet: In one site I got "it stores server side certificates along with intermediate certificates and private key in one file. Its mostly used in Windows Machine" In another site i got "it binds a organizations public key with its name. My question is whether its public key or private key which is included in the .p12 certificate. The .p12 contains both the private and the public key, and also information about the owner (name, email address, etc. ) all being certified by a third party.

java.security.UnrecoverableKeyException: Failed to obtain information about private key

喜欢而已 提交于 2019-11-30 06:39:18
I have the following lines to get the private key from key store on Android KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); keyStore.load(null); // generating key pair code omitted KeyStore.PrivateKeyEntry privateKeyEntry = (KeyStore.PrivateKeyEntry) this.keyStore.getEntry("alias", null); Everything works fine except that when the OS upgrades from Android 5.1.1 to Android 6.0.1, the 3rd line will throw java.security.UnrecoverableKeyException: Failed to obtain information about private key for very first execution. But it will work fine again afterward. Now my workaround is to

Any concern to share private key for distribution certificate among different group under a team account in itune provisioning portal

跟風遠走 提交于 2019-11-30 05:39:32
问题 We are a large university and have a single team account in apple itunes provisioning portal. We have serval different groups developing iOS apps, which will be published under the team account (university name). It seems apple only allows to create one distribution certificate. To publish apps, each group will need the private key to sign the app. If we choose to share the private key among all groups, is there any concern? Someone also suggested revoking the current certificate. I

push using multiple account / multiple identity on github / bitbucket

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 05:25:26
I have multiple accounts on github / bitbucket and one unique private-public key pair for each account. The problem occurs when I need to push to the repos created by the different accounts, I will almost certainly get access denied unless I am pushing into the default account (the account that I first created). Is there a way to switch to different credentials before pushing? I am using Source Tree on Macintosh machine. I'd prefer not to rename ~/.ssh/id_rsa manually whenever I need to push. Thank you very much for your input! You can use ~/.ssh/config as explained here: https://confluence

Store and retrieve private key from Mac keychain programmatically

六月ゝ 毕业季﹏ 提交于 2019-11-30 05:17:18
问题 In a Mac application, I have a requirement to store the private key sent from the server for logged in user in a secure way and retrieve it back whenever needed programmatically. I know that keychain is the best place to store the private key. Is there any sample code available to achieve this? I am able to add the private key to the keychain using "SecKeychainItemImport" method of "Security.framework" but having issues retrieving back the private key from the keychain. I have tried using