...
TIP : The information in this blog post is good to have, for real-life SSL scenarios : http://www.chipchilders.com/blog/2013/1/2/undocumented-feature-using-certificate-chains-in-cloudstack.html
This is meant for testing purposes only, for the lack of a better way without obtaining an actual intermediate CA. In essence, the process is to :
For step 1 : https://jamielinux.com/articles/2013/08/act-as-your-own-certificate-authority/
For step 2: https://jamielinux.com/articles/2013/08/create-an-intermediate-certificate-authority/ (BEWARE of a typo in the blog. Refer to the comments section below it)
For step 3: https://jamielinux.com/articles/2013/08/create-and-sign-ssl-certificates-certificate-authority/
For step 4 : http://www.chipchilders.com/blog/2013/1/2/undocumented-feature-using-certificate-chains-in-cloudstack.html (You may also use CloudMonkey instead of the python API mentioned)
For step 5 : Follow your browser / OS specific steps.