pkcs#12

PFX/PKCS12 to SNK conversion for mono

家住魔仙堡 提交于 2019-12-30 06:38:07
问题 This is follow up on Mono xbuild error CS1548 - key file has incorrect format Hi, I have an application that is written in C# using VS2008. At present we are porting this app to Mac using Mono. I have tried to extract the key from the pfx file. First I used `sn -pc key.pfx key.snk` this gave me an error of 'Failed to extract public key for key pair -- Keyset does not exist'. I then used `sn -p key.pfx key.snk` this created the snk file that I wanted. I then in mono selected the project Option

What causes keytool error “Failed to decrypt safe contents entry”?

牧云@^-^@ 提交于 2019-12-30 01:48:33
问题 I am trying to convert a standard PKCS #12 (.p12) key store into a Java JKS key store with this command: keytool -importkeystore -srckeystore keystore.p12 -srcstoretype PKCS12 -deststoretype JKS -destkeystore keystore.jks It is failing with: keytool error: java.io.IOException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded Do you have any idea how to solve this problem? 回答1: Sometimes this error is symptomatic of using an

aps_developer_identity.cer to p12 without having to export from Key Chain?

烂漫一生 提交于 2019-12-29 10:36:14
问题 I have a shed load of 'aps_developer_identity.cer' certificates exported from iPhone Developer portal. They were all created using the same Certificate Signing Request and (thus) the same private key. If I export just the private key from the Apple Key Chain is it then possible to take the private key and the 'aps_developer_identity.cer' and use openssl to create merged p12/pkcs#12 certificate that I can use on my (Windows) server. Just to be clear, I know how to get a merged p12 from the Key

Openssl convert .PEM containing only RSA Private Key to .PKCS12

╄→尐↘猪︶ㄣ 提交于 2019-12-28 13:19:46
问题 Currently I have a .PEM file containing only a private key. I need to convert this file into a .PKCS12 file. Currently I'm trying to use openssl to achieve this and I'm running into some problems. The .PEM file I'm using is of the form: -----BEGIN RSA PRIVATE KEY----- Some key -----END RSA PRIVATE KEY----- I use the following Openssl command to attempt to convert this .PEM file into a .PKCS12: openssl pkcs12 -export -inkey file.pem -out file.p12 The console then hangs with the message:

Return .p12 file to client without creating keystore file

时间秒杀一切 提交于 2019-12-25 07:53:06
问题 Is there any way to return a file to client with .p12 extension (base64 encoded string, that is later decoded on the client side and saved with .p12 extension) without storing it to PKCS12 keystore? I have code for creating root certificate, client certificate and setting keyentry to PKCS12 keystore bellow, but I don't want to have .p12 file on the file system, just to generate it and return it to client. Thanks! Simplified code of creating root certificate: public static void

can't import .p12 file into MS Certificate Store

荒凉一梦 提交于 2019-12-25 04:54:05
问题 I have the following test code to create test PKCS#12 keystore: X509Certificate[] chain = new X509Certificate[1]; long currentTime = new Date().getTime(); Date firstDate = new Date(currentTime - 24 * 60 * 60 * 1000); long validity = (long) 30 * 24 * 60 * 60 * 365; Date lastDate = new Date(currentTime + validity * 1000); String myName = "CN=TestKeys, L=Test, C=US"; X509V3CertificateGenerator cg = new X509V3CertificateGenerator(); cg.setSerialNumber(BigInteger.valueOf(firstDate.getTime())); cg

error using PKCS#12 certificate to sign some data with Java

此生再无相见时 提交于 2019-12-25 02:57:21
问题 I'm trying to use a PKCS#12 certificate to sign some data. I signed the data successfully in the development machine, but after I deployed the application into production machine I run into some problem. In the development machine I have Oracle jdk 1.6.0 and centos 6.2 and in the production machine there is IBM jdk 1.6.0 with IBM AIX. The problem is that I can't get the private key with it's alias out of the KeyStore instance which is loaded with the certification file , it seems that there

jks or pkcs12: which one should I use to sign the apk for Google Play Store?

自作多情 提交于 2019-12-24 05:35:29
问题 Android Studio 3.5.3, after the creation of my new Key Store, suggests me to convert it using this command: keytool -importkeystore -srckeystore /path/myKeyStore.jks -destkeystore /path/myKeyStore.jks -deststoretype pkcs12 On the Web and on SO I read a little about it (for example the pkcs12 format is widely supported regardless of the programming language used to read it) but I can't find the answer to this question: Is the format pkcs12 perfectly compatible with Google Play Store to publish

iOS Push Notification - JavaPNS - keystore.p12 file security

梦想的初衷 提交于 2019-12-23 04:51:15
问题 I am trying to use Apple's Push Notifications. I am using this tutorial here: http://www.ibm.com/developerworks/java/library/mo-ios-push/#ibm-pcon I am on the part where I am trying to create the Push Notification. The sample code is here: http://code.google.com/p/javapns/wiki/PushNotificationBasic and looks like this: import javapns.Push; public class PushTest { public static void main(String[] args) { Push.alert("Hello World!", "keystore.p12", "keystore_password", false, "Your token"); } }

Cannot convert apple developer_identity.cer into .p12 format. No certificate matches private key

我们两清 提交于 2019-12-22 05:33:12
问题 i have following problem: i have these files developer_identity.cer Team_Provisioning_Profile_.mobileprovision In order to package adobe flex mobile application for iOS, i need to convert my .cer certificate into .p12 format. Following this tutorial on help.adobe.com i always get this problem when executing last openssl command: "no certificate matches private key error in pkcs12" From what i understand i need somehow to get private key, that was used to create the certificate (do i