Configuring Certificatemap Filters

For more information, see the Cisco Nexus 9000 Series NX-OS Security Configuration Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-installation-and-configuration-guides-list.html/

Configuring an Email Id as an Alternate Name

Configuring an Email Id as an Alternate Name
POST http://<mgmt0_IP>/api/mo/sys/userext/pkiext.json
{
  "pkiEp": {
    "children": [
      {
        "pkiCertificateMap": {
          "attributes": {
            "altnameEmail": "SampleString_123",
            "name": "CertMap1"
}}}]}}
{
    imdata:[]
}
<System>
  <userext-items>
    <pkiext-items>
      <certificatemap-items>
        <CertificateMap-list>
          <name>CertMap1</name>
          <altnameEmail>SampleString_123</altnameEmail>
        </CertificateMap-list>
      </certificatemap-items>
    </pkiext-items>
  </userext-items>
</System>

Note: This example was added in Release 9.3(5).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

crypto certificatemap mapname CertMap1
  filter altname-email SampleString_123


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
pkiEp sys/userext/pkiext
pkiCertificateMap sys/userext/pkiext/certificatemap-CertMap1


pkiCertificateMap Properties

The following table contains information about the pkiCertificateMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
altnameEmailpki:FilterName
(string:CharBuffer)
Email Id as an Alternate Name
MAX SIZE: 64
namepki:FilterName
(string:CharBuffer)
CertificateMap Filter Name
MAX SIZE: 64


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting an Email Id as an Alternate Name

Deleting an Email Id as an Alternate Name
POST http://<mgmt0_IP>/api/mo/sys/userext/pkiext.json
{
  "pkiEp": {
    "children": [
      {
        "pkiCertificateMap": {
          "attributes": {
            "altnameEmail": "",
            "name": "CertMap1"
}}}]}}
{
    imdata:[]
}
<System>
  <userext-items>
    <pkiext-items>
      <certificatemap-items>
        <CertificateMap-list>
          <name>CertMap1</name>
          <altnameEmail></altnameEmail>
        </CertificateMap-list>
      </certificatemap-items>
    </pkiext-items>
  </userext-items>
</System>

Note: This example was added in Release 9.3(5).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

crypto certificatemap mapname CertMap1
  no filter altname-email SampleString_123


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
pkiEp sys/userext/pkiext
pkiCertificateMap sys/userext/pkiext/certificatemap-CertMap1


pkiCertificateMap Properties

The following table contains information about the pkiCertificateMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
altnameEmailpki:FilterName
(string:CharBuffer)
Email Id as an Alternate Name
MAX SIZE: 64
namepki:FilterName
(string:CharBuffer)
CertificateMap Filter Name
MAX SIZE: 64


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring Principal Name as an Alternate Name

Configuring Principal Name as an Alternate Name
POST http://<mgmt0_IP>/api/mo/sys/userext/pkiext.json
{
  "pkiEp": {
    "children": [
      {
        "pkiCertificateMap": {
          "attributes": {
            "altnameUpn": "SampleString_123",
            "name": "CertMap1"
}}}]}}
{
    imdata:[]
}
<System>
  <userext-items>
    <pkiext-items>
      <certificatemap-items>
        <CertificateMap-list>
          <name>CertMap1</name>
          <altnameUpn>SampleString_123</altnameUpn>
        </CertificateMap-list>
      </certificatemap-items>
    </pkiext-items>
  </userext-items>
</System>

Note: This example was added in Release 9.3(5).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

crypto certificatemap mapname CertMap1
  filter altname-upn SampleString_123


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
pkiEp sys/userext/pkiext
pkiCertificateMap sys/userext/pkiext/certificatemap-CertMap1


pkiCertificateMap Properties

The following table contains information about the pkiCertificateMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
altnameUpnpki:FilterName
(string:CharBuffer)
User Principal Name as an Alternate Name
MAX SIZE: 64
namepki:FilterName
(string:CharBuffer)
CertificateMap Filter Name
MAX SIZE: 64


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting Principal Name as an Alternate Name

Deleting Principal Name as an Alternate Name
POST http://<mgmt0_IP>/api/mo/sys/userext/pkiext.json
{
  "pkiEp": {
    "children": [
      {
        "pkiCertificateMap": {
          "attributes": {
            "altnameUpn": "",
            "name": "CertMap1"
}}}]}}
{
    imdata:[]
}
<System>
  <userext-items>
    <pkiext-items>
      <certificatemap-items>
        <CertificateMap-list>
          <name>CertMap1</name>
          <altnameUpn></altnameUpn>
        </CertificateMap-list>
      </certificatemap-items>
    </pkiext-items>
  </userext-items>
</System>

Note: This example was added in Release 9.3(5).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

crypto certificatemap mapname CertMap1
  no filter altname-upn SampleString_123


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
pkiEp sys/userext/pkiext
pkiCertificateMap sys/userext/pkiext/certificatemap-CertMap1


pkiCertificateMap Properties

The following table contains information about the pkiCertificateMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
altnameUpnpki:FilterName
(string:CharBuffer)
User Principal Name as an Alternate Name
MAX SIZE: 64
namepki:FilterName
(string:CharBuffer)
CertificateMap Filter Name
MAX SIZE: 64


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring Subject Name of the Certificate

Configuring Subject Name of the Certificate
POST http://<mgmt0_IP>/api/mo/sys/userext/pkiext.json
{
  "pkiEp": {
    "children": [
      {
        "pkiCertificateMap": {
          "attributes": {
            "name": "CertMap1",
            "subjectName": "SampleString_123"
}}}]}}
{
    imdata:[]
}
<System>
  <userext-items>
    <pkiext-items>
      <certificatemap-items>
        <CertificateMap-list>
          <name>CertMap1</name>
          <subjectName>SampleString_123</subjectName>
        </CertificateMap-list>
      </certificatemap-items>
    </pkiext-items>
  </userext-items>
</System>

Note: This example was added in Release 9.3(5).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

crypto certificatemap mapname CertMap1
  filter subject-name SampleString_123


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
pkiEp sys/userext/pkiext
pkiCertificateMap sys/userext/pkiext/certificatemap-CertMap1


pkiCertificateMap Properties

The following table contains information about the pkiCertificateMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
namepki:FilterName
(string:CharBuffer)
CertificateMap Filter Name
MAX SIZE: 64
subjectNamepki:FilterName
(string:CharBuffer)
Subject Name of the Certificate
MAX SIZE: 64


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting Subject Name of the Certificate

Deleting Subject Name of the Certificate
POST http://<mgmt0_IP>/api/mo/sys/userext/pkiext.json
{
  "pkiEp": {
    "children": [
      {
        "pkiCertificateMap": {
          "attributes": {
            "name": "CertMap1",
            "subjectName": ""
}}}]}}
{
    imdata:[]
}
<System>
  <userext-items>
    <pkiext-items>
      <certificatemap-items>
        <CertificateMap-list>
          <name>CertMap1</name>
          <subjectName></subjectName>
        </CertificateMap-list>
      </certificatemap-items>
    </pkiext-items>
  </userext-items>
</System>

Note: This example was added in Release 9.3(5).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

crypto certificatemap mapname CertMap1
  no filter subject-name SampleString_123


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
pkiEp sys/userext/pkiext
pkiCertificateMap sys/userext/pkiext/certificatemap-CertMap1


pkiCertificateMap Properties

The following table contains information about the pkiCertificateMap properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
namepki:FilterName
(string:CharBuffer)
CertificateMap Filter Name
MAX SIZE: 64
subjectNamepki:FilterName
(string:CharBuffer)
Subject Name of the Certificate
MAX SIZE: 64


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html