https

Azure https with pfx file

本秂侑毒 提交于 2020-02-02 02:56:07
问题 I am trying to create an https endpoint for my azure service. I was given an p7b file that I converted into a cer file. From the cer I was able to convert with a few lines of c# to a pfx . var cert = new X509Certificate2(@"certpath", " var bytes = cert.Export(X509ContentType.Pfx, "password"); File.WriteAllBytes(@"certpath\cert.pfx", bytes); Now when I upload the cert to azure everything seems ok, I copy the thumbprint and try to upgrade with the new thumbprint as part of the end point and I

How to bypass SSL certificate validation in Android app?

安稳与你 提交于 2020-01-31 04:03:21
问题 My Android application should be able to communicate to any SSL enabled servers. As my app is demo application and my customers add their own SSL server details in the app while logging in, so upfront I don't know which SSL certificate I need to validate. Following is my earlier code. public SSLSocketFactory getSSLSocketFactory(String hostname) { try { HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() { public boolean verify(String hostname, SSLSession session) { return

Using client certificate in Curl command

人盡茶涼 提交于 2020-01-30 15:26:22
问题 Curl Command: curl -k -vvvv --request POST --header "Content-Type: application/json" --cert client.pem:password --key key.pem "https://test.com:8443/testing" I am trying to send a client certificate using Curl command specified above. I am trying to know the following: What is the HTTP request header that I should be looking at the server side to pull out the client certificate from the HTTP Request. If I cannot pull out the client certificate on the server side from the HTTP Request, can I

Using client certificate in Curl command

我只是一个虾纸丫 提交于 2020-01-30 15:23:26
问题 Curl Command: curl -k -vvvv --request POST --header "Content-Type: application/json" --cert client.pem:password --key key.pem "https://test.com:8443/testing" I am trying to send a client certificate using Curl command specified above. I am trying to know the following: What is the HTTP request header that I should be looking at the server side to pull out the client certificate from the HTTP Request. If I cannot pull out the client certificate on the server side from the HTTP Request, can I

iframe src allows all origins but still receiving Cross-Origin Errors

♀尐吖头ヾ 提交于 2020-01-30 13:21:07
问题 I manage the frontend of siteA and have an iframe on the page with a src pointing to a resource from siteB. This is meant to be an embeddable resource (its a video embed) used by other vendors & clients so the response headers of siteB are set to Access-Control-Allow-Origin *. And all URLs involved are https. I have a screenshot here of the headers here from the src url in dev tools: However, I’m still receiving cross-origin errors when trying to query the iframe document to check if a

Certificate chain valid in Chrome, not Firefox or Android

寵の児 提交于 2020-01-30 12:00:45
问题 We had to update our certificate for our ecommerce website recently and ever since we've noticed weird behavior in Firefox and other browsers. About half the computers in the office, as well as my home computer complain that the certificate chain is not complete (Very odd it's not universal). I can view the chain in the Firefox certificate viewer and see that it doesn't have a chain. Meanwhile Chrome's chain looks fine. This leads me to believe that there isn't an issue with our install of

Certificate chain valid in Chrome, not Firefox or Android

笑着哭i 提交于 2020-01-30 11:58:28
问题 We had to update our certificate for our ecommerce website recently and ever since we've noticed weird behavior in Firefox and other browsers. About half the computers in the office, as well as my home computer complain that the certificate chain is not complete (Very odd it's not universal). I can view the chain in the Firefox certificate viewer and see that it doesn't have a chain. Meanwhile Chrome's chain looks fine. This leads me to believe that there isn't an issue with our install of

Accessing HTTPS site through Proxy Server

孤街醉人 提交于 2020-01-30 02:54:17
问题 I am adding code to use a proxy server to access the Internet. The code works fine when requesting a file from a normal (HTTP) location, but does not work when accessing a secure location (HTTPS). This is the code that works just fine: URL = "http://UnSecureSite.net/file.xml" Dim wr As HttpWebRequest = CType(WebRequest.Create(URL), HttpWebRequest) Dim proxy As System.Net.IWebProxy proxy = WebRequest.GetSystemWebProxy wr.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials Dim ws

how to install certificate in browser settings using command prompt?

痞子三分冷 提交于 2020-01-29 09:40:04
问题 I have added the certificate successfully using command prompt(example below). But I could not found the same certificate in chrome browser settings("Setting/HTTPS/SSL/Manage certificates/"), in all tabs. Could you please advise me, how to install the certificate in browser settings ("settings/"HTTP/SSL/Manage certificates/") via command prompt. Am using "windows xp" import certificate:-- "C:\Program Files\Java\jre7\bin\keytool" -import -keystore cacerts -file test.cer Thanks for looking into

What to do when http header wrongly reports content-length

随声附和 提交于 2020-01-26 04:51:07
问题 I am trying to download web pages over https by first downloading the headers with a HEAD request, then parsing to obtain the Content-Length and then using the Content-Length plus some space for headers to allocate memory for a buffer to store results from a GET request. It seems that stackoverflow.com gives a Content-Length that is too small and thus my code segfaults. I've tried looking through stack overflow past questions to see how to go about dynamically allocating memory to handle