x509

Using a X509 Certificate in .Net Compact Framework for Client Authentication HTTPRequest

大憨熊 提交于 2019-12-21 14:24:11
问题 I'm working in Windows Mobile 6 and would like to have client authentication when talking to a Apache webserver. I have a certificate in my local certificate store and it should be rather straightforward: X509Store myStore = new X509Store("MY", StoreLocation.CurrentUser); myStore.Open(OpenFlags.ReadOnly); X509Certificate2Collection certificates = myStore.Certificates; X509Certificate2 clientcertificate; foreach (X509Certificate 2certificate in certificates) { clientcertificate = certificate;

Java client to WCF service interop with mutual certificate - Cannot resolve KeyInfo for verifying signature

旧巷老猫 提交于 2019-12-21 12:32:41
问题 Exception: MessageSecurityException: Cannot resolve KeyInfo for verifying signature: KeyInfo 'SecurityKeyIdentifier I have to set up a WCF service to receive SOAP calls from a Java client that is sending signed content with the following header: <soap:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1"> <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature-2"> <ds:SignedInfo xmlns:ds=

Connect Azure Website to Xero Partner Application

别来无恙 提交于 2019-12-21 11:01:21
问题 I'm integrating my app with Xero which requires two certificates. I uploaded them to Azure with help from this article, but I'm still unable to connect to the Xero API. I'm hoping someone has experience integrating a Xero Partner Application with an Azure Web App. I've uploaded two pfx files; one is a self-signed certificate and the other is the partner certificate issued by Xero. The latter pfx file contains two certificates; an Entrust Commercial Private Sub CA1 (whatever than means) and a

Connect Azure Website to Xero Partner Application

邮差的信 提交于 2019-12-21 11:01:08
问题 I'm integrating my app with Xero which requires two certificates. I uploaded them to Azure with help from this article, but I'm still unable to connect to the Xero API. I'm hoping someone has experience integrating a Xero Partner Application with an Azure Web App. I've uploaded two pfx files; one is a self-signed certificate and the other is the partner certificate issued by Xero. The latter pfx file contains two certificates; an Entrust Commercial Private Sub CA1 (whatever than means) and a

“Cannot load the X.509 certificate identity specified in the configuration”

时间秒杀一切 提交于 2019-12-21 09:24:45
问题 I transfered a workking WCF service from my development environment to the QA environment, including the certificates (Root Authority, Root Auth revocation list, Service certificate - including its PK). Afterward I located the private key usihg 'FindPrivateKey' and gave all the relavent accounts full permissions to access the private key file at the file system level. My app crashes with a Unhandled Exception: System.InvalidOperationException: Cannot load the X.509 certificate identity

How to extract the domain name out of an X509Certificate object during SslStream.AuthenticateAsClient? (.NET4)

与世无争的帅哥 提交于 2019-12-21 07:30:39
问题 I have a RemoteCertificateValidationCallback function called by SslStream.AuthenticateAsClient, which is passed an X509Certificate object. I'd like to extract the name from that certificate, such that had I passed that string into AuthenticateAsClient, it would have passed. (Assuming no other issues.) (Note: The Subject property contains the domain name, but it's inside a "CN=..., S=..." etc formatted string.) See also: How to extract CN from X509Certificate in Java? (Asks a similar question

Decoding an ASN.1 DER OCTET STRING with OpenSSL

心已入冬 提交于 2019-12-21 04:21:24
问题 Using the OpenSSL API, I have extracted a custom extension from a X.509v3 certificate with: X509_EXTENSION* ex = X509_get_ext(x509, 4); The X509_EXTENSION object contains a value (ex->value) that is an ASN.1 OCTET STRING. The OCTET STRING contains a DER encoded UTF-8 string. I'm trying to decode the OCTET STRING to get the plain UTF-8 string. I have tried a few things, such as: ASN1_STRING_to_UTF8(&buf, ex->value); and M_ASN1_OCTET_STRING_print(bio, ex->value); int len = BIO_read(bio, buf,

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

Missing leading zeroes while retrieving serial number of a x509 cert

懵懂的女人 提交于 2019-12-20 07:47:49
问题 I'm trying to get serial number from a X.509 Cert.. When i compare the Serial number generated by my code with the actual serial number(on windows), leading zeroes of the actual serial number(of the X509 cert) are missing. Any suggestions or alternative ways to get the serial number of the x.509 cert in hex with the leading zeroes?? Below is the code segment which I'm currently using: InputStream in = new FileInputStream("cert"); CertificateFactory certificateFactory = CertificateFactory

X.509 certificate validation process

情到浓时终转凉″ 提交于 2019-12-20 06:18:52
问题 I have been reading on x.509 certificates and I just don't quite get how the entire process works. so this is how I understand it: the CA is some company which produces certificates. someone who wants to use one, like a bank website, contacts the CA and buys a certificate containing the public key to encode the messages for the website, which can only be decoded by the sites private key. this is where I get confused - how does the user (some web browser), checks that the certificate it