Serving multiple domains in one box with SNI

but my problem is, this callback function is being executed after execution of “SSL_accept” function, but I have to choose and use the appropriate certificate before using “SSL_new” command, which is way before execution of SSL_accept. When you start your server, you provide a default SSL_CTX. This is used for non-SNI clients, like SSLv3 clients … Read more

Getting certificate chain with Python 3.3 SSL module

Thanks to the contributing answer by Aleksi, I found a bug/feature request that already requested this very thing: http://bugs.python.org/issue18233. Though the changes haven’t been finalized, yet, they do have a patch that makes this available: This is the test code which I’ve stolen from some forgotten source and reassembled: import socket from ssl import wrap_socket, … Read more

Creating .p12 truststore with openssl

A possible explanation for this behaviour: The standard PKCS#12 provider up to Java 7 did not allow trusted certificate entries at all. The JSSE Reference Guide says this: Storing trusted certificates in a PKCS12 keystore is not supported. PKCS12 is mainly used to deliver private keys with the associated certificate chains. It does not have … Read more