openssl genrsa -out ca.key 2048
openssl req -new -x509 -days 365 -key ca.key -subj "/C=CN/ST=GD/L=SZ/O=Acme, Inc./CN=Acme Root CA" -out ca.crt
openssl req -newkey rsa:2048 -nodes -addext "subjectAltName = otherName:2.16.76.1.3.1;IA5STRING:010119801234567857700000000000000001234567890SSPBA" -keyout person.key -subj "/C=CN/ST=GD/L=SZ/O=Acme, Inc./CN=Acme CTO" -out person.csr
openssl x509 -req -extensions SAN -extfile <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAltName=otherName:2.16.76.1.3.1;IA5STRING:010119801234567857700000000000000001234567890SSPBA,email:[email protected]")) -days 365 -in person.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out person.crt
Obs: Foi necessário repetir a inclusão do SAN pois o processo de assintatura estava descartando e não parei para analisar