pfx

How to generate a .pfx file from a .cer file?

不羁的心 提交于 2019-12-24 14:02:24
问题 I've only the .cer file now i want to convert it to .pfx file. But when i tried to convert via openssl it is asking for private key file? Is it necessary to have a private key file to generate a .pfx file? if not then could you please suggest the open ssl command to accomplish this. Thanks Sushma. 来源: https://stackoverflow.com/questions/29490922/how-to-generate-a-pfx-file-from-a-cer-file

While using ConcurrentQueue, trying to dequeue while looping through in parallel

非 Y 不嫁゛ 提交于 2019-12-24 03:11:41
问题 I am using the parallel data structures in my .NET 4 application and I have a ConcurrentQueue that gets added to while I am processing through it. I want to do something like: personqueue.AsParallel().WithDegreeOfParallelism(20).ForAll(i => ... ); as I make database calls to save the data, so I am limiting the number of concurrent threads. But, I expect that the ForAll isn't going to dequeue, and I am concerned about just doing ForAll(i => { personqueue.personqueue.TryDequeue(...); ... }); as

Sign a XML file with .pfx certificate using PHP

微笑、不失礼 提交于 2019-12-23 23:09:30
问题 I have a XML document that I want sign with a pfx certificate using PHP. How could I do this? Does some library exist or open source code, or which part of the documentation could help me! Thanks a lot for your help and excuse me for my English. 回答1: Here is an minimal example to sign a xml file with a pfx file: ~deleted~ Edit: Check out this libraries https://github.com/robrichards/xmlseclibs https://github.com/selective-php/xmldsig https://github.com/giansalex/xmldsig https://github.com

Install .pfx and .cer in Azure

落花浮王杯 提交于 2019-12-23 04:57:25
问题 I have a web site already runing using diferent certificates (.pfx and .cer) for 3rd party integration. Now i need to move all this to Azure. We are going to use App Service. How can i install them on Azure? Can someone provide me a site or documentacion about this? Regards. 回答1: You'll need up upload the certificates to the management portal and then you should be able to access them similar to how you currently are doing it (guessing here). Here's a link to a walkthrough on how to do that

Conversion from cert file to pfx file

不羁的心 提交于 2019-12-22 09:54:05
问题 Is it possible to convert a cert file to a pfx file? I tried importing my cerf file into IE, but it is never shown under the "personal" tab, thus I cannot export there. I am looking for if there is alternatives available. FYI, the cerf file is created by using "keytool" and then doing an export to a cert file. 回答1: This article describes two ways of creating a .pfx file from a .cer file: Maxime Lamure: Create your own .pfx file for ClickOnce Create your public & private Keys (You will be

CruiseControl.NET service failing to build due to MSBuild ResolveKeySource error, despite certificate being imported

邮差的信 提交于 2019-12-21 20:27:47
问题 We just had an XBAP/WBA project added to our build server. It uses a PFX file for signing. I imported the PFX file to the CruiseControl.NET service certificate store, and can see it in the certificate store for the service. Yet we are still seeing an exception thrown by ResoveKeySource: c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets (1805,7): errorMSB4018: The "ResolveKeySource" task failed unexpectedly. System.InvalidOperationException: Showing a modal dialog box or form

what is the correct way to cancel multiple tasks in c#

和自甴很熟 提交于 2019-12-20 17:18:25
问题 I have a button thats spawns 4 tasks. The same button changes to a cancel button and clicking this should cancel all 4 tasks. Should I pass the same cancel token to all 4 tasks and have them poll on the same token for IsCancelRequested ? I am confused after reading the msdn doc on createlinkedtokensource. How is this normally done ? thank you Update: Task.WaitAll() waits tills all tasks complete execution . Similarly how to know when all tasks have been canceled once the shared cancel token

VB6 and .PFX Code Signing

隐身守侯 提交于 2019-12-20 15:20:26
问题 My boss has procured a certificate from Comodo and I've been breaking myself against walls of text trying to find the solution to the problem of getting the certificate into a VB6 application. The certificate itself is in VB6 format and I know like next to nothing about this type of thing. The people at Comodo were just OH so helpful (From my boss, they said he can find something on the internet. Apparently they don't know how big the internet is -.-) Does signing the project require putting

Waiting on a Task with a OnlyOnFaulted Continuation causes an AggregateException

☆樱花仙子☆ 提交于 2019-12-20 10:26:15
问题 I have some simple code as a repro: var taskTest = Task.Factory.StartNew(() => { System.Threading.Thread.Sleep(5000); }).ContinueWith((Task t) => { Console.WriteLine("ERR"); }, TaskContinuationOptions.OnlyOnFaulted); try { Task.WaitAll(taskTest); } catch (AggregateException ex) { foreach (var e in ex.InnerExceptions) Console.WriteLine(e.Message + Environment.NewLine + e.StackTrace); } However, I'm getting an unexpected TaskCanceledException being thrown in the try catch block (it's in the

Converting .PFX to .PEM programmatically?

陌路散爱 提交于 2019-12-19 09:54:58
问题 I need to programmatically extract certificates and their private keys from a MS certificate store, and get them to the .PEM format somehow. I don't want to use OpenSSL at the command line, as I would like to keep everything in memory, avoiding files. I can export them from Windows to a PFX-format blob using PFXExportCertStoreEx(). I tested that by writing it to a file and converting it to .PEM with OpenSSL. The resulting .PEM file works fine. So the remaining problem is to get them to the