certificate

How to disable “Security Alert” window in Webbrowser control

旧巷老猫 提交于 2019-12-17 09:46:12
问题 I'm using Webbrowser control to login to HTTPS site with "untrusted certificate". but I get popup such standart window "Security Alert" about untrusted certificate: I have to find this window by title and send it Alt + Y to press Yes : int iHandle = NativeWin32.FindWindow(null, "Security Alert"); NativeWin32.SetForegroundWindow(iHandle); System.Windows.Forms.SendKeys.Send("Y%"); but user can see a flickering of this window. How can I ignore this alert? Or disable this "untrusted certificate"

iOS get Configuration Profiles that are installed

霸气de小男生 提交于 2019-12-17 09:32:44
问题 The app I am currently working on requires the use of Configuration Profiles in order to connect to a server to download XML. The certificates are distributed in the form of .p12 files, and they can be installed in the settings app in the iPhone like the bottom-left image. The problem is that all over the internet people are saying that this is impossible. HOWEVER, Junos Pulse can do this(bottom-right image). It is only reading the Configuration Profiles which is exactly what I need. I did

Get list of certificates from the certificate store in C#

半城伤御伤魂 提交于 2019-12-17 09:19:24
问题 For a secure application I need to select a certificate in a dialog. How can I access certificate store or a part of it (e.g. storeLocation="Local Machine" and storeName="My" ) using C# and get a collection of all certificates from there? Thanks in advance for your help. 回答1: X509Store store = new X509Store(StoreName.My, StoreLocation.LocalMachine); store.Open(OpenFlags.ReadOnly); foreach (X509Certificate2 certificate in store.Certificates){ //TODO's } 回答2: Try this: //using System.Security

A valid provisioning profile for this executable was not found… (again)

十年热恋 提交于 2019-12-17 09:10:10
问题 I know this has been asked and answered multiple times but I'm tearing my hair out as none of the proposed solutions appears to work. I receive the above error, despite having a valid provisioning profile which, as far as I can tell matches the bundle identifier: I've followed the steps in various suggested solutions on this site, including deleting all existing certificates and starting again, as suggested here and here. One thing I have noticed is that the profile doesn't show up in the

Signing Windows application on Linux-based distros

别来无恙 提交于 2019-12-17 08:17:20
问题 I have prepared an application and website where the customer can set several options for this application before he downloads it. Settings are stored in binary format on the end of the file (appended), then the edited file is sent to the end user. The problem is that the change of "contents" of the file will break the file signature - is there any chance to re-sign this changed file with any command line tools? I've tried to use Microsoft's SignTool, but it does not work properly on Linux.

“Invalid provider type specified” CryptographicException when trying to load private key of certificate

◇◆丶佛笑我妖孽 提交于 2019-12-17 07:16:50
问题 I'm trying to read the private key of a certificate which has been shared with me by a third-party service provider, so I can use it to encrypt some XML before sending it to them over the wire. I'm doing so programmatically in C#, but I think this is a permissions or misconfiguration issue, so I'll focus on the facts which seem to be most relevant: I don't think this issue is code-related; my code works on other computers, and the issue affects sample code from Microsoft. The certificate was

What happens when a code signing certificate expires?

安稳与你 提交于 2019-12-17 07:09:54
问题 I am considering purchasing a code signing certificate from VeriSign or Thawte to sign an XBAP with. My question is this: What happens when that certificate expires? $299 and $599 are pretty hefty prices for 1-year/2-year cerificates, and if I have to deliver a newly signed build to my customers whenever my certificate expires, then I'll just deal with the hassle of creating my own certificate for now. What I don't like about creating my own certificate is the difficulty in distributing it to

android webview with client certificate

送分小仙女□ 提交于 2019-12-17 06:38:15
问题 I tried for days to use a web view with a client certificate embedded in the application, but it seems to me that the android sdk does not provide any way to do it, is there a callback to intercept the challenge sent by the server? is there a way to use webview with a client certificate and make https request? 回答1: Since I'm interested in your problem as well, I checked the documentation for WebView and WebViewClient, surfed around and indeed it looks that you can't authenticate a webview

How can you add a Certificate to WebClient (C#)?

佐手、 提交于 2019-12-17 06:32:25
问题 I know it is pretty simple to add a certificate to a HttpWebRequest. However, I have not found a way to do the equivalent using WebClient. Basicly, I want to send out a POST with a specific certificate using WebClient. How would you accomplish this exact code using WebClient: var request = (HttpWebRequest) WebRequest.Create("my-url"); request.Method = "POST"; request.ClientCertificates.Add(new X509Certificate()); //add cert 回答1: You must subclass and override one or more functions. class

Convert PEM traditional private key to PKCS8 private key

試著忘記壹切 提交于 2019-12-17 06:27:21
问题 I've been given a PEM file with a certificate and pub/private keys. Specifically it includes the headers -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- -----BEGIN RSA PRIVATE KEY----- -----END RSA PRIVATE KEY----- -----BEGIN RSA PUBLIC KEY----- -----END RSA PUBLIC KEY----- in that specific order. My understanding is without a header following the BEGIN RSA PRIVATE KEY header that this pem file contains a private key in the traditional format (PKCS1) without encryption. I need to