self-signed

WCF Could not establish trust relationship for the SSL/TLS secure channel with authority

时光毁灭记忆、已成空白 提交于 2019-12-23 05:40:33
问题 Scenario: I've a WCF web service called SERVICEA hosted in Azure. It's uses self signed certificate for HTTPS. This SERVICEA inspect the incoming request and determines whether to call: SERVICEB OR SERVICEC Both SERVICEB AND SERVICEC also uses self signed cert. for https. PROBLEM: When I deploy the SERVICEA and try to call so that it invokes SERVICEB I get the error message below: * Could not establish trust relationship for the SSL/TLS secure channel with authority "SERVICEB..." *. Note it

java add self signed certificate to keystore programatically

血红的双手。 提交于 2019-12-22 18:20:48
问题 I added the self signed certificate using keystore from command prompt. I found several links which tells how to add certificate to keystore, but they all say to store the certificate locally before running program and do the rest via code. I need to add certificate to keystore dynamically. How can I add a certificate programatically? 回答1: You can refer this blog for more help The JDK JavaDoc for java.security.KeyStore is pretty useful too. If you want to import from external server refer the

Python 3 urllib with self-signed certificates

牧云@^-^@ 提交于 2019-12-22 11:15:38
问题 I'm attempting to download some data from an internal server using Python. Since it's internal, it uses a self-signed certificate. (We don't want to pay Verisign for servers that will never appear "in the wild.") The Python 2.6 version of the code worked fine. response = urllib2.urlopen(URL) data = csv.reader(response) I'm now trying to update to Python 3.4 (long story, don't ask.) However, using Python 3's urllib fails: response = urllib.request.urlopen(URL) It throws a CERTIFICATE_VERIFY

Powershell Invoke-RestMethod over HTTPS

十年热恋 提交于 2019-12-21 03:29:09
问题 I'm trying to communicate with a service over powershell but I am failing miserably. I suspect it is the certificate and I have googled for the answer and found two options, none of which worked for me. I have also tried to combine the two unsuccessfully. Option 1: add-type @" using System.Net; using System.Security.Cryptography.X509Certificates; public class TrustAllCertsPolicy : ICertificatePolicy { public bool CheckValidationResult( ServicePoint srvPoint, X509Certificate certificate,

Using JavaMail with a Self Signed Certificate

眉间皱痕 提交于 2019-12-20 02:12:07
问题 I have a servlet that contains the following code: System.setProperty("javax.net.ssl.keyStore", getServletContext().getRealPath("keystore.jks")); System.setProperty("javax.net.ssl.keyStorePassword", "123456"); System.setProperty("javax.net.ssl.trustStore",getServletContext().getRealPath("keystore.jks")); System.setProperty("javax.net.ssl.trustStorePassword","123456"); SSLSocketFactory sslsocketfactory = (SSLSocketFactory) SSLSocketFactory.getDefault(); SSLSocket sslsocket = (SSLSocket)

Need signature after SAML token in client request

前提是你 提交于 2019-12-19 10:23:28
问题 I have a serialized SOAP request message with a SAML token holder-of-key that works against a vendor service. I want to create a demonstration program in C# to produce a similar request. To do this, I want to write a client that creates its own SAML token. I've got a SAML2 token created successfully from a self signed cert and I am able to associate it to the request using the ChannelFactoryOperations.CreateChannelWithIssuedToken approach (.Net 4.0). Everything is working great but I can't

Objective-C: eveluate server certificate signed by our own PKI (root CA) on TLS TCP connection

巧了我就是萌 提交于 2019-12-18 13:31:26
问题 * solved * My problem is referencing to the following question: Objective-C: How to verify SecCertificateRef with signer's public key? We have an own PKI and so an own rootCA that we trust. With this rootCA we sign the certificates that are delivered to the personal servers. Now I want to connect with the iOS app and check if the cert that is delivered from the server is signed with our CA. My app should be able to connect to n servers with this certificates (maybe found with zero-conf

In iOS, how to connect to a server using https with self-signed certificate on the server?

╄→гoц情女王★ 提交于 2019-12-18 12:42:48
问题 I am developing for iOS 5 and really don't want to use un-ARCed codes so I chose to implement this myself instead of using AFNetworking. Also this might be a big question so I split it into two smaller parts. 1) Connecting to the server using https in iOS 5. I use the codes extracted from "iOS 5 Programming Pushing the Limits" here. Because I am developing for iOS 5 I don't use the deprecated methods in my project. "RNSecTrustEvaluateAsX509" is a method that reevaluates the certificate as a

How do I accept a self-signed SSL certificate using iOS 7's NSURLSession

倖福魔咒の 提交于 2019-12-18 11:48:17
问题 I have the following code (swift implementation): func connection(connection: NSURLConnection, canAuthenticateAgainstProtectionSpace protectionSpace: NSURLProtectionSpace) -> Bool { return protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust } func connection(connection: NSURLConnection, didReceiveAuthenticationChallenge challenge: NSURLAuthenticationChallenge) { if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust { if challenge

Chrome accept self-signed localhost certificate

Deadly 提交于 2019-12-18 07:08:47
问题 i did follow all the answers on here and nothing worked for me... nothing at all. I'm on windows 10, using chrome version 54.0.2840.99 m trying to access my QNAP TS-453a on local on a static ip address (10.1.1.1) https://10.1.1.1/cgi-bin/ I tried using imported certificates, self signed, export and import the default one, etc nothing works Some help would be really really appreciated 回答1: Valid as of Chrome v58.0.3029 : Visit the site in Chrome. Open Developer Tools (F12) Navigate to Security