x509certificate

Setting up web services with x509 and multiple clients and how to distinguish clients?

ⅰ亾dé卋堺 提交于 2020-01-04 09:39:49
问题 Following these two links, I was able to implement a simple web service with x509 certification, and an authenticated test client to consume the service. Right now, it looks something like this: -------------- | ServiceA.svc | ------------> Test Client 1 | -GetData() | -------------- How can I extend what I have to accomplish something like this: -------------- | ServiceA.svc | ------------> Test Client 1 | -GetData() | ------------> Test Client 2 | -SaveData() | -------------- | ServiceB.svc

Setting up web services with x509 and multiple clients and how to distinguish clients?

我的梦境 提交于 2020-01-04 09:39:13
问题 Following these two links, I was able to implement a simple web service with x509 certification, and an authenticated test client to consume the service. Right now, it looks something like this: -------------- | ServiceA.svc | ------------> Test Client 1 | -GetData() | -------------- How can I extend what I have to accomplish something like this: -------------- | ServiceA.svc | ------------> Test Client 1 | -GetData() | ------------> Test Client 2 | -SaveData() | -------------- | ServiceB.svc

X509 Certificate multi-passwords?

风流意气都作罢 提交于 2020-01-04 06:29:08
问题 I would like to know if x509 certificate's password allows multi-passwords per certificate - or just one? And if it is possible, what scenario would it be applied? Thanks for your time. 回答1: Because GnuPG is easily available to me, it'd be my tool of choice; each admin would create a public/private key pair and export the public portion: gpg --gen-key gpg --export --armor [keyid] > key_file_[admin_name] Import all the public keys into the keyring of whoever 'owns' the unencrypted x509 cert:

Use a particular CA for a SSL connection

泪湿孤枕 提交于 2020-01-02 14:48:54
问题 I'm reading through Support Certificates In Your Applications With The .NET Framework 2.0 trying to determine how to set a CA for a SSL connection. Around half-way down the article under Validating Certificates, MSDN presents some code: static void ValidateCert(X509Certificate2 cert) { X509Chain chain = new X509Chain(); // check entire chain for revocation chain.ChainPolicy.RevocationFlag = X509RevocationFlag.EntireChain; // check online and offline revocation lists chain.ChainPolicy

CA PEM file to jks tomcat truststore

可紊 提交于 2020-01-02 08:46:27
问题 I have been given a p12 public/private key signed by a certain CA. I have a local tomcat server that I am doing development work on. I am new to security but I believe that need to get the CA public cert into my tomcats truststore. (I am trying to get x509 certs working with CAS) How do I get my tomcat (and JVM) to trust this CA? Is there a way to get the CA public cert out of a p12 and into my tomcat truststore? (I have also exported the cert from firefox to get a PEM file for the CA) I see

Extracting individual .cer certificate from a .p7b file in java

心不动则不痛 提交于 2020-01-02 07:46:07
问题 I am new to Cryptography and so please excuse me if you think this is a basic question I have a .p7b file which I need to read and extract the individual public certificates i.e the .cer files and store it in the key store. I need not worry about persisting in the key store as there is already a service which takes in the .cer file as byte[] and saves that. What i want to know is , how do i read the .p7b and extract the individual .cer file? I know that can be done via the openSSL commands,

Programmatically create a x509 certificate for iPhone without using OpenSSL

ⅰ亾dé卋堺 提交于 2020-01-02 04:16:15
问题 Is there a way to programmatically create a self-signed certificate in an app for iPhone just by using the Apple Security framework, ie. not having to mess with OpenSSL? 回答1: It seems like this is not possible without openSSL or RSA libs, I have searched through some answers, and this one seems to be the best, even includes a connection to this question: iOS: How to create PKCS12 (P12) keystore from private key and x509certificate in application programmatically? 来源: https://stackoverflow.com

Add an X509 certificate to a store in code

可紊 提交于 2020-01-02 04:16:06
问题 This code will add a x509 cer cert file into the certificate store (using System.Security.Cryptography.X509Certificates ): var filename = "Cert.cer"; var cert = new X509Certificate2(filename); var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); store.Open(OpenFlags.ReadWrite); store.Add(cert); Where the certificate has been generated with: makecert -r -pe -sky exchange -n "CN=Blah" Cert.cer -sv Cert.pvk But - this will add the certificate into the "Personal" certificates of

Add an X509 certificate to a store in code

一曲冷凌霜 提交于 2020-01-02 04:16:05
问题 This code will add a x509 cer cert file into the certificate store (using System.Security.Cryptography.X509Certificates ): var filename = "Cert.cer"; var cert = new X509Certificate2(filename); var store = new X509Store(StoreName.My, StoreLocation.CurrentUser); store.Open(OpenFlags.ReadWrite); store.Add(cert); Where the certificate has been generated with: makecert -r -pe -sky exchange -n "CN=Blah" Cert.cer -sv Cert.pvk But - this will add the certificate into the "Personal" certificates of

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

孤者浪人 提交于 2020-01-01 09:36:14
问题 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? 回答1: 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. 回答2: If you are using maven, put this