certificate

How to manage signed certificates with Azure Function V2

纵然是瞬间 提交于 2020-01-02 06:59:35
问题 I am working on Azure Functions App on Consumption Plan. The Func App required to load a specific signed certificate. In local machine I setup the certificate as personal certificate and everything works fine. After publishing on azure, I am getting this error: There are 0 certificates with the subject name cert.name in LocalMachine, MyUse scripts/certificates/ to generate this Nothing helpful on SO or even in Azure Func documentation on how to use certificate with azure functions. Anyone has

Deploy self signed XAP to windows phone 8

喜你入骨 提交于 2020-01-02 06:57:11
问题 we developed an app for WP8 and wanted to distribute it internally via a download URL to the XAP file. Steps we have taken so far: Use Makecert.exe to generate a self signed XXX.cer with a XXX.pvk (with no password) Used Pvk2Pfx.exe to create a pfx file which includes the private key (with a password) Used XapSignTool.exe to sign our XXX_Release.xap We also deployed the XXX.cer to the phone device but we still get the error "Can't install company app". After that we tried to generate a

How to invoke a Web Service which requires a certificate in C#?

你离开我真会死。 提交于 2020-01-02 05:50:08
问题 I need to communicate with a third party which has a .asmx web service. This web service is using https. I have the required certificate (.pfx). When first trying to add this service using Add Service Reference in Visual Studio, I got an error. I got passed this error by importing the certificate into the Personal store. After I did that, I tried to add the Service Reference again and it works. So now I can create an instance of the web service. Nice. But now I want to invoke the service. And

Connecting to ElasticSearch Cloud 5.x with Java Client and X-Pack/HTTPS

北慕城南 提交于 2020-01-02 04:40:07
问题 Is it possible to connect to ElasticSearch via HTTPS using X-Pack? With the switch to use certificate, the own way of connecting is no longer work. I have no problem with using certificate, but I need to know where to get one or upload the key to the cloud instance, but I cannot find information anywhere. I'm also getting no answer from anyone in the forum or IRC. Has anyone successfully done this? There is no longer a warning when launching a 5.x instance so I assumed this is possible, but I

Add an X509 certificate to a store in code

可紊 提交于 2020-01-02 04:16:06
问题 This code will add a x509 cer cert file into the certificate store (using System.Security.Cryptography.X509Certificates ): var filename = "Cert.cer"; var cert = new X509Certificate2(filename); var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); store.Open(OpenFlags.ReadWrite); store.Add(cert); Where the certificate has been generated with: makecert -r -pe -sky exchange -n "CN=Blah" Cert.cer -sv Cert.pvk But - this will add the certificate into the "Personal" certificates of

Add an X509 certificate to a store in code

一曲冷凌霜 提交于 2020-01-02 04:16:05
问题 This code will add a x509 cer cert file into the certificate store (using System.Security.Cryptography.X509Certificates ): var filename = "Cert.cer"; var cert = new X509Certificate2(filename); var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); store.Open(OpenFlags.ReadWrite); store.Add(cert); Where the certificate has been generated with: makecert -r -pe -sky exchange -n "CN=Blah" Cert.cer -sv Cert.pvk But - this will add the certificate into the "Personal" certificates of

javax.net.ssl.SSLPeerUnverifiedException: No peer certificate on Android 4.x and 5.x

 ̄綄美尐妖づ 提交于 2020-01-02 03:41:29
问题 I am running my app on Android 4.4.2 and it throws this error: 07-03 08:43:59.255 21643-21803/com.myapp W/System.err: javax.net.ssl.SSLPeerUnverifiedException: No peer certificate 07-03 08:43:59.255 21643-21803/com.myapp W/System.err: at com.android.org.conscrypt.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:146) 07-03 08:43:59.255 21643-21803/com.myapp W/System.err: at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:93) 07-03 08:43:59.255 21643-21803/com.myapp

How to sign an MSI?

泄露秘密 提交于 2020-01-02 03:16:28
问题 My company wants to prevent the UAC popup that appears when customers install our product. We purchased a certificate from VeriSign (VeriSign Class 3 Code Signing 2010 CA) and I got a MyCompany.cer file. I installed the cert by double-clicking it and selecting the "Personal" store. It now appears in the Certificates snapin, along with several other certs. The snapin says its intended purpose is "Code Signing". I got the SHA1 hash by copying the thumbprint. I try to sign the msi with this

How to clear any SSL Certificate data

若如初见. 提交于 2020-01-02 02:37:11
问题 I have a client - server setup. The client creates a proxy in order to communicate with the server. When the communication protocol is HTTPS the proxy listens for SSL certificate validation event via the following line: ServicePointManager.ServerCertificateValidationCallback += new RemoteCertificateValidationCallback(ValidateRemoteCertificate); The ValidateRemoteCertificate method deals with Certificate exceptions. In the client the user can select one of 3 security levels: low, medium and

Checking certificates expiration dates in java keystore

谁都会走 提交于 2020-01-02 00:02:10
问题 My java application uses a keystore file in which I have a certificate which is used in ssl connection with active directory server. What I have to do is to check its expiration date and prompt user if its close to expire. I have to do it while my application starts. My idea is to use external program: keytool to display info about certain certificate in the keystore and then do some parsing operations on a string which keytool outputs to find this validation date. Here's the output of a