x509certificate

Access installed certified to sign

时间秒杀一切 提交于 2019-12-29 09:13:18
问题 I am trying to sign an Object in a Java + JSF project. What I have done so far is create my own X509 certificate as well as a CA with XCA and install both of them on Firefox and Chrome. I have been searching for 3 days how could I access it to sign (the typical pop-up asking for select a certificate in case you have more than one installed) but I just cannot find something useful. I have seen multiple times this code line: X509Certificate[] certs = (X509Certificate[]) request.getAttribute(

Access installed certified to sign

☆樱花仙子☆ 提交于 2019-12-29 09:13:05
问题 I am trying to sign an Object in a Java + JSF project. What I have done so far is create my own X509 certificate as well as a CA with XCA and install both of them on Firefox and Chrome. I have been searching for 3 days how could I access it to sign (the typical pop-up asking for select a certificate in case you have more than one installed) but I just cannot find something useful. I have seen multiple times this code line: X509Certificate[] certs = (X509Certificate[]) request.getAttribute(

Convert a PEM-formatted String to a java.security.cert.X509Certificate

泄露秘密 提交于 2019-12-29 03:25:08
问题 How does one create a java.security.cert.X509Certificate instance from a PEM-formatted String? The PEM-formatted String is a HTTP request "SSL_CLIENT_CERT" header value. ANSWER : Based on mgaert's answer, here's what I wrote in Scala : val cert = factory.generateCertificate( new ByteArrayInputStream( Base64.decodeBase64( cert.stripPrefix("-----BEGIN CERTIFICATE-----").stripSuffix("-----END CERTIFICATE-----") ) ).asInstanceOf[X509Certificate] 回答1: Decode the Base64 to binary, with some

Implementing X509TrustManager - passing on part of the verification to existing verifier

懵懂的女人 提交于 2019-12-28 12:34:11
问题 I need to ignore the PKIX path building exception javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderExc ption: unable to find valid certification path to requested target I know how to do this by writing my own class implementing X509TrustManager where I always return true from isServerTrusted . However, I don't want to trust all servers & all clients. I want all the default verification

Authentication failed because remote party has closed the transport stream

╄→гoц情女王★ 提交于 2019-12-27 17:09:52
问题 I am developing a TCP client to connect OpenSSL server with the certificate authentication. I have using .crt and .key files shared by server team. These certificates are generated by OpenSSL commands. I am using SslStream object to authenticate the Tcp client by calling SslStream.AuthenticateAsClient method by passing server IP , SslProtocols.Ssl3 and X509CertificateCollection . I am getting the following error: Authentication failed because the remote party has closed the transport stream

Is it possible to programmatically generate an X509 certificate using only C#?

社会主义新天地 提交于 2019-12-27 16:59:06
问题 We're trying to generate an X509 certificate (including the private key) programmatically using C# and the BouncyCastle library. We've tried using some of the code from this sample by Felix Kollmann but the private key part of the certificate returns null. Code and unit test are as below: using System; using System.Collections; using Org.BouncyCastle.Asn1; using Org.BouncyCastle.Asn1.X509; using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Crypto.Generators; using Org.BouncyCastle.Crypto

Authenticating Microsoft EWS using Nodejs over SOAP with x509 certificate

隐身守侯 提交于 2019-12-25 10:19:13
问题 I have had great success with the Microsoft Graph API to access users etc etc within Azure Active Directory, however two things that still require EWS and SOAP are retrieving user photos and adding a mail rule to a users mail account. I'm using Service accounts for everything, and impersonating an account admin to make requests. After attempting to use the same access token that I am using against the Graph API, I receive the error: The access token is acquired using an authentication method

How can I display a dialog box that contains the properties of an X.509 certificate?

不问归期 提交于 2019-12-25 05:36:13
问题 I want to display dialog box that contains properties of an X509 Cert. That box includes three tabs: General Details Certification path As in this image. With C# i use a statement: X509Certificate2UI.DisplayCertificate(X509Certificate2 cert); But with Java, I can't find similar statement! How can I display a dialog box that contains the properties of an X.509 certificate? 回答1: As far as I could track, the .NET will use following function to display the cert information: [StructLayout

Sending and Verifying SSL certificate using c/c++

好久不见. 提交于 2019-12-25 04:08:31
问题 I am actually working on a protocol security. I need to send the certificate and verify it on the other side. Now here is what I have planned: 1 Send the certificate chain just like a normal stream of data 2.Capture it on the other side and store it in a char[] buffer Now, how to verify the certificate from this char[]buffer and extract the needed parameters? I need it in c/c++. 回答1: This blog post about Verifying Using a Certificate Store using OpenSSL shows how to verify certificate against

Validate certificate for Docusign Connect with X509 certificate enabled

雨燕双飞 提交于 2019-12-25 03:27:09
问题 I want to secure the connection from Docusign Connect to our https endpoint. Support already pointed me in the right direction. I downloaded the certificate from here and enabled the "Sign Message with X509 Certificate" in my Docusign portal. I'm using C# .NET 4.5.1 WebAPI hosted on IIS 8 (Windows Server 2012) as my http endpoint. How do I validate the certificate on my side? 来源: https://stackoverflow.com/questions/23921135/validate-certificate-for-docusign-connect-with-x509-certificate