freelancer developer
2016.11.07
OpenSSL sign CSR with SAN enabled

In this example I used the config file made in this post, and a CSR from this post.

2016.11.07
OpenSSL generate CSR with alternative names

With this command you can generate a certificate signing request with the alternative names already in the CSR. If you want to add domain names use DNS:example.com, if you want to add IP address use this format: IP:127.0.1.1. You can add as many alternativa names as you wish, as separator use a comma.

2016.11.02
OpenSSL CA configuration

This is a sample configuration file for OpenSSL. With this file you can issue (self-signed) certificates with alternative names enabled.
See this post how to generate CSR with SAN, and this post how to sign CSR with SAN.