x509certificate

Why IE rejects a self-signed localhost certificate for 127.0.0.1 only, when Chrome accepts it?

☆樱花仙子☆ 提交于 2019-12-04 08:43:19
Our Java 7 application needs to listen for HTTPS requests on localhost. It must accept connections on https://localhost:8112 and https://127.0.0.1:8112 . To do so we have programmatically built an auto-signed X509v3 certificate, and we have installed this certificate in the Windows-ROOT keystore, as follows: KeyStore.TrustedCertificateEntry trustedCert = ...; KeyStore ks = KeyStore.getInstance("Windows-ROOT"); ks.load(null, null); ks.setEntry("xxxx_localhost", trustedCert, null); This makes the certificate accepted by Chrome 36 in both cases (localhost and 127.0.0.1), but IE 11 does not

MongoDB Self-signed SSL connection: SSL peer certificate validation failed

你说的曾经没有我的故事 提交于 2019-12-04 08:18:45
I have followed this guide Self-signed SSL connection using PyMongo, by Wan Bachtiar to create three .pem files; server.pem, client.pem and ca.pem. I am using Ubuntu 16.04 and MongoDB v3.2.11. The purpose is to secure the MongoDB before opening it to the public internet. lets start the mongod: $ mongod --auth --port 27017 --dbpath /data/db1 --sslMode requireSSL --sslPEMKeyFile /etc/ssl/server.pem --sslCAFile /etc/ssl/ca.pem --sslAllowInvalidHostnames & Output: root@tim:/etc/ssl# 2017-01-13T12:58:55.150+0000 I CONTROL [initandlisten] MongoDB starting : pid=19058 port=27017 dbpath=/data/db1 64

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

对着背影说爱祢 提交于 2019-12-04 06:25:43
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="http://www.w3.org/2000/09/xmldsig#"> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10

sun.security.x509.CertAndKeyGen and sun.security.pkcs.PKCS10 - missing in JDK8. Implementation suggestions

不羁岁月 提交于 2019-12-04 05:09:33
In JDK8 the class sun.security.x509.CertAndKeyGen does not exists anymore. Also sun.security.pkcs.PKCS10 is missing. In JDK7 they existed. What could be an alternatives to these classes methods? I think you are looking for: sun.security.tools.keytool.CertAndKeyGen You'll find it inside the rt.jar under the JRE libraries. Keep in mind this class is outside of J2SE , it's likely only available with OpenJDK , so for example the GNU Compiler won't have it. mesompi If you are using maven, put this in pom.xml. ( from this question ): <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId

How to generate certificate if private key is in HSM?

二次信任 提交于 2019-12-04 04:52:48
I often use openssl to generate RSA key and certificate. But now i encounter a problem. openssl x509 -req require private key as input. But now we're using HSM to protect private key and I'll never be able to touch the private key. In this way how do i suppose to generate a x509 certificate? I've seen some HSMs come with their own support programs ready to use for a variety of things including key generation and cert or CSR creation, or make them available (for example on the vendor website); did you check for that? Assuming that isn't a (good) option: You don't identify your HSM; there are

what is the difference between X509_STORE and X509_STORE_CTX .?

只愿长相守 提交于 2019-12-04 03:43:45
can any one tell me how the Certificate trust chain is formed with these structures and what these two structure represent? Taken from the source code in x509vfy.h: The X509_STORE holds the tables etc for verification stuff. A X509_STORE_CTX is used while validating a single certificate. The X509_STORE has X509_LOOKUPs for looking up certs. The X509_STORE then calls a function to actually verify the certificate chain. The X509_STORE represents more or less your global certificate validation setup, where you store the intermediate certificates and CRLs. The store can be used multiple times,

How do I read the digital signature information from a signed .Net assembly?

丶灬走出姿态 提交于 2019-12-04 02:46:12
I am writing an assembly information application to be used in our software build process and am trying to read the digital signature information from a signed .Net assembly. I want to do in my C# code what Windows Explorer can do by right-clicking a signed assembly and selecting the "Digital Signatures" tab and then clicking the Details button. e.g. Has anyone got an idea how to do this programmatically in C#? I am currently using the Mono Cecil library to get the rest of the information from the assembly. Your help will be most appreciated. The Mono project provides source code for both

X509 serial number using java

五迷三道 提交于 2019-12-04 02:23:45
I need to get some data from X509 certificate. If I open a certificate file in windows, its showing its serial number in this format. ex. 39 65 70 eb d8 9f 28 20 4e c2 a0 6b 98 48 31 0d The same data I am trying to obtain using java. After get it loaded, I use x509.getSerialNumber(); and result is : 76292708057987193002565060032465481997 So what is the difference between both of these ? I want the result as upper one. Windows shows the hexadecimal representation of the serial number, whereas Java returns a BigInteger result from X509Certificate.getSerialNumber() . To display the BigInteger as

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

核能气质少年 提交于 2019-12-04 01:13:17
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 for Java, but I can't find similar classes for .NET mentioned in those answers.) (Followup to Eugene's

SecurityTokenSignatureKeyNotFoundException when validating JWT signature

拟墨画扇 提交于 2019-12-04 00:34:37
问题 I'm trying to implement the OpenID Connect specification for my organisation. I'm using Microsoft's OWIN implementation of OpenID Connect in a test relying party application to verify my implementation of the protocol. I've exposed the following metadata document: { "issuer": "https://acs.contoso.com/", "authorization_endpoint": "http://localhost:53615/oauth2/auth", "token_endpoint": "http://localhost:53615/oauth2/token", "userinfo_endpoint": "http://localhost:53615/connect/userinfo", "jwks