x509certificate

BouncyCastle PrivateKey To X509Certificate2 PrivateKey

≡放荡痞女 提交于 2019-12-18 19:08:14
问题 I create a certificate using BouncyCastle var keypairgen = new RsaKeyPairGenerator(); keypairgen.Init(new KeyGenerationParameters(new SecureRandom(new CryptoApiRandomGenerator()), 1024)); var keypair = keypairgen.GenerateKeyPair(); var gen = new X509V3CertificateGenerator(); var CN = new X509Name("CN=" + certName); var SN = BigInteger.ProbablePrime(120, new Random()); gen.SetSerialNumber(SN); gen.SetSubjectDN(CN); gen.SetIssuerDN(CN); gen.SetNotAfter(DateTime.Now.AddYears(1)); gen

Windows Azure Management Libraries Certification Error on Web Jobs

点点圈 提交于 2019-12-18 18:05:55
问题 I built a Azure web job console which is referring Windows Azure Management Libraries. I tried to authenticate my app by using public setting approach. The program is working fine on my local, but failing on Azure Web Jobs with X509Certificates error. This is how I did for the web job program. Downloaded publish setting file from https://windows.azure.com/download/publishprofile.aspx On console app, create credential by copy & paste subscriptionId and cert string from the setting file. new

Windows Azure Management Libraries Certification Error on Web Jobs

ぐ巨炮叔叔 提交于 2019-12-18 18:05:23
问题 I built a Azure web job console which is referring Windows Azure Management Libraries. I tried to authenticate my app by using public setting approach. The program is working fine on my local, but failing on Azure Web Jobs with X509Certificates error. This is how I did for the web job program. Downloaded publish setting file from https://windows.azure.com/download/publishprofile.aspx On console app, create credential by copy & paste subscriptionId and cert string from the setting file. new

OPENSSL - How to generate a proof of possesion for a X509 certificate?

笑着哭i 提交于 2019-12-18 18:00:28
问题 I need to generate a proof of possession, signing a verification code with my private key. I did not find a question related to this, here in Stack Overflow, and I am not finding some reference on Internet. I am following this tutorial, but I want to use OpenSSL. My verification code is related to a X509 certificate, like this: 7A69A4702DA903A41C3A5BC5575A8E3F49BEC5E5BA2D4CE1 回答1: I got the answer with the Azure support team. I already had my root key and X509 cert, generated with the

IOS9 SSL error with NSURLSession

℡╲_俬逩灬. 提交于 2019-12-18 15:49:41
问题 I have developed an IOS App that is communicating with a Server using HTTPs (I'm also the developer of the server, it's embedding a Tomcat server). This App is working without any issues with IOS8 but it's not with IOS9. I get the following error when sending an HTTPs request: Session download has failed : Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo=0x7fa9c44b2e40 {NSErrorFailingURLStringKey=https://127.0

How to create a minimal dummy X509Certificate2?

风流意气都作罢 提交于 2019-12-18 14:10:17
问题 I'm unit testing a .NET application; some of the unit tests involve programmatically generating X509Certificate2 objects. I don't care about actual signing/private key/validation stuff, I'd just like to have an object that doesn't throw exceptions when its fields are examined. I tried using the parameterless constructor, but then a whole bunch of fields throw exceptions when accessed. As seen in the debugger: SubjectName = '(new System.Collections.Generic.Mscorlib_CollectionDebugView(result

Add multiple SSL certificate pinning to Android KeyStore doesn't work. (from Resource file)

走远了吗. 提交于 2019-12-18 13:26:32
问题 I want to add multiple SSL certificates from a ressource file to the Android KeyStore as follow: if (sslContext==null) { // loading CA from an InputStream InputStream is = AVApplication.getContext().getResources().openRawResource(R.raw.wildcard); String certificates = Converter.convertStreamToString(is); String certificateArray[] = certificates.split("-----BEGIN CERTIFICATE-----"); for (int i = 1; i < certificateArray.length; i++) { certificateArray[i] = "-----BEGIN CERTIFICATE-----" +

how to convert the Certificate String into X509 structure.?

心不动则不痛 提交于 2019-12-18 13:08:27
问题 can any one tell me how to convert the string content into X509 structure . i am using openssl to read the X509 Structure. example : certificate string -----BEGIN CERTIFICATE----- MIIExDCCA6ygAwIBAgIJAK0JmDc/YXWsMA0GCSqGSIb3DQEBBQUAMIGcMQswCQYD VQQGEwJJTjELMAkGA1UECBMCQVAxDDAKBgNVBAcTA0hZRDEZMBcGA1UEChMQUm9j a3dlbGwgY29sbGluczEcMBoGA1UECxMTSW5kaWEgRGVzaWduIENlbnRlcjEOMAwG A1UEAxMFSU1BQ1MxKTAnBgkqhkiG9w0BCQEWGmJyYWphbkBSb2Nrd2VsbGNvbGxp

'MANAGE PRIVATE KEYS' option missing

﹥>﹥吖頭↗ 提交于 2019-12-18 12:52:48
问题 I'm developing WCF service with Transport Security hosted on IIS 7.5 under Windows 2008R2. I have a certificate, generated in IIS 7.5 which is stored in Local folder. When I use BasicHttpBinding or WSHttpBinding with Transport Security - everything works fine. But when I change it to NetTcp I get an exception : CryptographicException 'Keyset does not exist'. After a bit of googling I found out that the problem can be because my NETSERVICE IIS account doesn't have premission to the private key

'MANAGE PRIVATE KEYS' option missing

烈酒焚心 提交于 2019-12-18 12:52:35
问题 I'm developing WCF service with Transport Security hosted on IIS 7.5 under Windows 2008R2. I have a certificate, generated in IIS 7.5 which is stored in Local folder. When I use BasicHttpBinding or WSHttpBinding with Transport Security - everything works fine. But when I change it to NetTcp I get an exception : CryptographicException 'Keyset does not exist'. After a bit of googling I found out that the problem can be because my NETSERVICE IIS account doesn't have premission to the private key