Skip to main content

Posts

Showing posts with the label pkcs#12

JBoss/Java and SSL

Hi I'm a bit lost and hope you'll get me out of here. I'll try to be as clear as possible since I don't really understand/know how I should use certificates. I've got an application that is supposed to communicate with another one using webservices and SSL. We both asked our main "Certificate Authority" to get certificates. They sent us 4 files and a password for the .P12 file: .csr, .cer, .key, .P12 Here is what I did : * Configure JBoss to use SSL on 8443 and used the P12 file as the keystore To test this I did a small Java class that call a webservices on this server, using : props.setProperty("javax.net.ssl.trustStore", "/.../.../certif.p12"); props.setProperty("javax.net.ssl.trustStorePassword", "XXXXXXXXX"); props.setProperty("javax.net.ssl.trustStoreType", "PKCS12"); The connection works, but I think I'm missing something as I did not use the other files. If I send my .P12 file