x509certificate

How to use X509 certificate with the Nest Elastic Client

好久不见. 提交于 2020-01-17 07:40:28
问题 I am currently upgrading from Elastic Search 1.7 to 5.2. I know there is no upgrade path, which is fine. One problem we had originally is with Nest and ElastiSearch.Net there was no way to attach an X509 certificate as it only had the ability to use Basic Authentication. To get around that we made copies of the existing github repos and modified the code directly to allow it. This ultimately is what kept us from upgrading for so long since we couldn't just use the nuget packages, because we

Certificate in windows .pfx file has EKU issue

隐身守侯 提交于 2020-01-17 07:22:10
问题 I have developed an application in phonegap and now I want to release it for windows phones. But as we know that since Windows 10 was introduced we have to make a .pfx file to sign an application. I have created a certificate with OpenSSL and as I try to build my application with that key I am getting this error: Error - Your Windows Signing Key must have an EKU (Enhanced Key Usage) property of "Code Signing" I don't know what does exactly mean. Can anyone please help me out for this? 回答1:

How to create a X509 certificate that prevents “server mode SSL must use certificate with associated private key” exception?

江枫思渺然 提交于 2020-01-17 06:48:46
问题 I'm trying to create an X.509 certificate file that will work with the following code as found in the smtp4dev project: var certificate = new X509Certificate(Settings.Default.SSLCertificatePath); var clientCertificateRequired = false; var protocols = SslProtocols.Ssl2 | SslProtocols.Ssl3 | SslProtocols.Tls; var checkRevocation = false; var stream = new SslStream(stream); stream.AuthenticateAsServer(certificate, clientCertificateRequired, protocols, checkRevocation); Settings.Default

how to implement 2-way SSL certificate for WCF

岁酱吖の 提交于 2020-01-15 11:56:18
问题 I am a newbie to WCF so trying to figure out how to implement 2way ssl certficate authentication for WCF service i need to host. The consumer of the service would provide us with there certificate and we are supposed to provide them with ours. The part i don't understand and would appreciate help is how to do we go about it in the way of either 1. articles pointing out the steps or 2. Code samples. Thanks. 回答1: The following web pages provide a fairly comprehensive overview of a Windows

WCF client for consuming ASMX service with WS-Security

眉间皱痕 提交于 2020-01-14 06:15:26
问题 I have a ASMX web service (SOAP 1.1) that requires to sign all SOAP requests with certificate (private key) using WS-Security. When the ASMX service receives the request, it will authenticate it using the public key of the certificate. After the operation is done, the response sent back to the client will not be signed! That's the security requirements... I've created the proxy via 'Add Service Reference' and the client's app.config: <?xml version="1.0" encoding="utf-8"?> <configuration>

CA x.509 generated by bouncy castle is seen on Android as user certificate

久未见 提交于 2020-01-14 05:46:12
问题 I am using following code to generate root CA: public static X509Certificate buildRootCert(KeyPair keyPair) throws Exception { X509v1CertificateBuilder certBldr = new JcaX509v1CertificateBuilder( new X500Name("CN=Root"), BigInteger.valueOf(1), new Date(System.currentTimeMillis()), new Date(System.currentTimeMillis() + 1000 * 3600 * 24), new X500Name("CN=Root"), keyPair.getPublic()); ContentSigner signer = new JcaContentSignerBuilder("SHA1withRSA") .setProvider("BC").build(keyPair.getPrivate()

How to Sign X.509 certificate with RS256 in PHP? Not able to get Valid fingerprint…x5t

丶灬走出姿态 提交于 2020-01-14 03:46:07
问题 I have implemented JWT token generator library from Here, and i am able to get RS256 Token (Payload). But i am having issue with Header data: I need one header value "x5t", which is not generated from the given library. I need header data like: { "typ": "JWT", "alg": "RS256", "x5t": "COm8ON2SD2MTc5jwcxZ0vE3-XJo" } I am getting first two parameter successfully, but not able to get valid third parameter. My Sample code is : $fingerprint = str_replace("SHA1 Fingerprint=", '', system('openssl

Check a certificate validity against a custom trust list in Java

百般思念 提交于 2020-01-13 11:12:33
问题 I have a document that is digitally signed using CAdES. I use BouncyCastle APIs to get the X509Certificate[] instances of the signers, but let's assume the list contains one and one only element. I need to verify whether this certificate is trusted or not at today's date, and I don't want to use the system's standard trust store which is normally used to trust SSL certificates. No, I want to build my own trust list with a list of .cer files in my classpath. At the moment, a single CA is

Convert private key in PEM format

痴心易碎 提交于 2020-01-13 03:37:10
问题 I have created a self-signed certificate with Java code and added into KeyStore. Now I want to export Private key and Certificate created, into a file in PEM format. Is it possible to achieve this without any third party library ? Below is the code I use for creating self-singed certificate. public void createSelfSignedSSLCertificate() { try { final CertAndKeyGen keypair = new CertAndKeyGen("RSA", "SHA1WithRSA", null); final X500Name x500Name = new X500Name(commonName, organizationalUnit,

How to configure a WCF service to only accept a single client identified by a x509 certificate

被刻印的时光 ゝ 提交于 2020-01-12 05:54:49
问题 I have a WCF client/service app that relies on secure communication between two machines and I want to use use x509 certificates installed in the certificate store to identify the server and client to each other. I do this by configuring the binding as <security authenticationMode="MutualCertificate"/> . There is only client machine. The server has a certificate issued to server.mydomain.com installed in the Local Computer/Personal store and the client has a certificate issued to client