x509certificate

Understanding SSL for consuming .Net webservice from Android

谁都会走 提交于 2019-12-20 15:37:11
问题 I am developing an Android app which need to consume .Net webservices over SSL which I have no experience in. Now I am looking for some guidance and explanation on SSL handshake and certificates. Note : the server is using IP address and NOT domain name. It is an intranet application. So far I have created a certificate(called self-signed?) in web server from IIS 7. To consume it from Android app, I found two ways of doing it : 1). Embedded the certificate in the app (Which certificate? How

C# / .NET - How to allow a “custom” Root-CA for HTTPS in my application (only)?

邮差的信 提交于 2019-12-20 10:36:12
问题 Okay, here is what I need to do: My application, written in C# (.NET Framework 4.5), needs to communicate with our server via HTTPS. Our server uses a TLS/SSL certificate issued by our own Root-CA. That Root-CA, while perfectly trusted by my application, is not installed in the system's "trusted root" certificate store. So, without further work, C# refuses to contact the server, because the server's certificate cannot be validated - as expected. Note: We cannot use a Root-CA already installed

Could not parse certificate: java.io.IOException: Empty input X509Certificate

和自甴很熟 提交于 2019-12-20 10:30:22
问题 I am getting the error given below when parsing the signature. Anybody has idea why the error is showing? Note that: Using the same certificate I signed my own XML and verified which is working fine. That mean there is no issue with certificate. Client provided signed document not able to validate. Errors: Exception in thread "main" javax.xml.crypto.MarshalException: Cannot create X509Certificate at org.jcp.xml.dsig.internal.dom.DOMX509Data.unmarshalX509Certificate(DOMX509Data.java:225) at

Add Server Certificate Information to Trust Manager Android Programmatically

微笑、不失礼 提交于 2019-12-20 10:29:33
问题 I am new to this SSL and X509Certificate Concepts. What all I need is, Is there any way to get the Certificate Information from a given Url For Example: If User has typed https://www.google.com then I need the Certificate Information for that Programmatically. Edit: Finally, I got the Certificate Information from Server . Now, my questions are: 1. How can I Check Certificate is Trusted or not ? 2. How can I add the Certificate to the Trust Manager ? 3. Even, if it is Un-trusted Certificate,

Generate X509Certificate from byte[]?

≡放荡痞女 提交于 2019-12-20 08:46:18
问题 Is there a possibility to generate an java.security.cert.X509Certificate from an byte[]? 回答1: Sure. The certificate objects can be created by an instance of CertificateFactory - in particular, one configured to create X509 certificates. This can be created like so: CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); Then you need to pass it an InputStream containing the bytes of the certificate. This can be achieved by wrapping your byte array in a ByteArrayInputStream:

Retrieving data programmatically from a Configuration Profile in IOS

做~自己de王妃 提交于 2019-12-19 10:35:18
问题 I have been searching all over the apple documentation, including these forums, yet was not able to retrieve a certificate from a configuration profile that I had created and installed on my iPhone. More specifically: Using the iPhone Configuration Utility, I created a simple configuration profile that contains a certificate under the Credentials tab. I am now trying to retrieve this certificate using my iPhone app but without any luck of coming across useful documentation/examples. I know

How can I create a PKCS12 p12 file with selfsigned certificate for DSA keypair in C#?

五迷三道 提交于 2019-12-19 10:22:26
问题 I need to generate my own DSA keypair and store it as a bundle of private key and certificate in .p12 file using C#. This question How do I create a PKCS12 .p12 file in C#? seems to be very similar, but it does not help me, unfortunately, because there are some significant differences (RSA vs DSA, etc.) I am trying to generate the keypair using System.Security.Cryptography.DSACryptoServiceProvider and then to generate a X509 certificate using Bouncy Castle: using (DSACryptoServiceProvider csp

Certificate problem with a new machine - credentials supplied to package not recognized

非 Y 不嫁゛ 提交于 2019-12-19 06:03:05
问题 I am installing a windows service on a new machine. The service does various operations over SslStream over TCP, which uses the certificate in problem. The service has been operating fine with the same code and same certificate on other 2 windows 2003 machines. But, this new machine is Windows 2003 with 64 bit processor too. I am running into this problem when I am trying to run the service with a 'Service Account' identity. It works fine with my own credentials. (Again, it works fine on

Java client for the X.509 secured web-service

核能气质少年 提交于 2019-12-19 04:13:00
问题 I have remote web-service which is secured with X.509 certificate. I generated web-service client stuff (using jax-ws) but need to configure if for the certificate's usage. How should I proceed? I guess I should register certificate in my local trusted keystore and them set something like this: System.setProperty("javax.net.ssl.keyStore", keyStore); System.setProperty("javax.net.ssl.keyStoreType", "JKS"); System.setProperty("javax.net.ssl.keyStorePassword", keyStorePassword); System

Add certificate on request with RestSharp

十年热恋 提交于 2019-12-19 03:03:32
问题 I'm trying to communicate with a server. This server send me a certificate and a private key in order to execute my request successfully. To test the server, I use Postman. So I fill the certificate setting in postman, and my request works fine Now I want to do the same in C#. For that I use RestSharp in order to create the request. Here is my code var client = new RestClient(url); byte[] certBuffer = UtilsService.GetBytesFromPEM(myCertificate, Models.Enum.PemStringType.Certificate); byte[]