See HOWTO:SSL for details of how to create a Certificate Authority and generate certificates for various packages.