x509certificate

java.nio.BufferOverflowException in certificate authentication

I am implementing Client certificate authentication with Spring security using tomcat server I have configured tomcat server and added <X-509> tag in my application_context.xml. then i started server. and when i was trying to login i got above exception. Configuration for tomcat : <Connector port="8443" protocol="org.apache.coyote.htt...

x509 and digital signature

I'm rewriting an application so that we can stop using the old Microsoft.Web.Services2.Security.X509 from Microsoft.Web.Services2.dll and start using System.Security.Cryptography.X509Certificates. There is one method that I can't figure out, though: bool Microsoft.Web.Services2.Security.X509.X509Certificate.SupportsDigitalSignature() ...

Can I create my own digital certificate in c# or windows ?

Hi I'm working on c# win App about digital signature.. I knew how to import and export both the private and public key using "x509certificate2" class in c# (I'm exporting private key in PFX type is that right ?) The problem is how to create a digital certificate ? how to obtain one ? Thank you. ...

x509 authentication with spring security 2.0.4

i am new to spring security. can anybody provide me sample application for x509 certificate authentication with spring 2.0.4 ...

OpenSSL.NET Porting a Ruby example to C# (From RailsCasts 143 paypal-security)

I am following through the RailsCasts episode on PayPal security. I am try to port this code to C# and am using OpenSSL.NET Also is it possible to do this without using the OpenSSL wrapper library as that uses some unmanaged code? The ruby code that I am trying to port is this: def encrypt_for_paypal(values) signed = OpenSSL::PKCS7:...

Certificates: Cannot find the certificate and private key for decryption Error when sign

I work in company with many servers and Pcs for developers. Servers are win2003, PC developers Windows XP. In a server Win2003 named preiis01, in preproduction environment, other people in company install a client certificate using any other user (domainCompany\adminsystems) for logging in server preiis01. Anyone admin uses the user "d...

"Cannot find the certificate and private key for decryption" for Certificate pfx pkcs#12 with private key

I have the following .Net code (asp.net) for sign using client certificate. I have client certificate stored under local computer and not the current user. The client certificate is pfx pkcs#12 and has private key Imported private key are NOT marked as exportable. my private key in client certificate protected by password. On the ...

Can I add a new certificate to the keystore without restarting the JVM?

I'd like to import a new certificate into the keystore without restarting a running service. Is that possible? Alternatively, is it possible to specify a certificate to use that's not in the keystore for a specific URL connection? ...

Stunnel Configuration for SSL Connection

I'm trying to use Stunnel to use a mail client that doesn't support SSL to interface with a mail server that wants to use SSL. I want to be able to use plain POP3/SMTP to some local port that Stunnel sets up and have that forward to the SSL connection on the mail server. I was given the following files by my ISP: username.p12 local_ca....

using Certificate in https

I write android application. How can I use Certificate in https connection when I init cert from der file and not from pkcs? When I have pkcs file with password, this code works: KeyStore keyStore = KeyStore.getInstance("PKCS12"); keyStore.load(certificateIs, pass.toCharArray()); KeyManagerFactory kmf = KeyManagerFactory.g...

How to instantiate javax.security.X509Certficate object from a p12 certificate (contains certificate + private key)

X509Certificate is only instantiatable using the contents of a certificate (.cer file). How to instantiate this object using a .p12 file that contains both the certificate and the private key? ...