Configure Subject Alternative Names

About this task

Use this procedure to protect additional host names with a single certificate.

Note

Note

The switch supports 100 subject alternative names.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Configure a subject alternative name for the entity:

    certificate subject-alternative-name <dns | e-mail | ip> WORD<1-255>

  3. View the subject alternative names configured on the switch:

    show certificate subject-alternative-name

Examples

Configure a subject alternative name for an email address and an IP address.

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#certificate subject-alternative-name e-mail name@company.com
Switch:1(config)#certificate subject-alternative-name ip 192.0.2.22

View the configuration.

Switch:1>show certificate subject-alternative-name
==========================================================================================
                                   SAN Table
==========================================================================================
TYPE     NAME
------------------------------------------------------------------------------------------
e-mail   name@company.com
ip       192.0.2.22

Variable Definitions

The following table defines parameters for the certificate subject-alternative-name command.

Variable Value
<dns | e-mail | ip> Specifies the type of subject alternative name to add.
WORD<1-255> Specifies the alternative name to add to the subject alternative name table.