Wired Intelligent Edge

 View Only
  • 1.  CSR creation for AOS switches

    Posted Jul 06, 2023 08:36 AM

    I'm creating a CSR request for a 5412 switch to be submitted to internal CA ( Microsoft )

    I'm in doubt about how to add, if possible, a SAN field in the request.

    This is because I first generate the CSR as per the reference using only the common name like below

    crypto pki identity-profile 5412vsf subject common-name 5412vsf.company.com country US org COMPANY org-unit IT State XX

    crypto pki create-csr certificate-name 5412vsf ta-profile Company_CA key-type rsa key-size 2048 usage all valid-start 07/05/2023 valid-end 07/04/2033

    However when I connect via browser I get the "usual" error about the untrusted connection and the problem is 

    NET::ERR_CERT_COMMON_NAME_INVALID

    Subject: 5412vsf.company.com

    This server couldn't prove that it's 5412vsf.company.com; its security certificate does not specify Subject Alternative Names. This may be caused by a misconfiguration or an attacker intercepting your connection.



  • 2.  RE: CSR creation for AOS switches
    Best Answer

    Posted Jul 07, 2023 09:38 AM
      |   view attached

    We ran into this as well.  You need to generate the CSR, then modify it, then you can request a cert from your CA.

    Refer to:

    https://learn.microsoft.com/en-us/troubleshoot/windows-server/windows-security/add-san-to-secure-ldap-certificate#use-certreqexe-to-create-and-submit-a-certificate-request-that-includes-a-san

    Our INF file looks like this:

    [Extensions] 
    2.5.29.17="{text}ipaddress=10.11.5.6&dns=SITE-2530P24G-1.internal.com&dns=SITE-2530P24G-1" 

    then we run the .CMD file to merge and create the certificate.


    Attachment(s)



  • 3.  RE: CSR creation for AOS switches

    Posted Jul 07, 2023 09:50 AM

    Thanks a lot for the solution provided




  • 4.  RE: CSR creation for AOS switches

    Posted Jul 07, 2023 10:42 AM
    Edited by Stefano Colombo Jul 07, 2023 11:05 AM

    Hello 

    I tried your script but it looks for the private key that is not present, obviously, since the CSR has been generated on the Switch itself

    POST EDIT.

    I went on, ignoring the message, and it worked

    thanks