cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1740
Views
5
Helpful
4
Replies

Cisco 3560 Sh run issue

Hello dear members.  I have 2 switches 3560 and they both running on the same IOS <<c3560-ipserviceslmk9-tar.122-55.SE.tar>>

In one of the switches I am enabling ssh to use local AAA authentication using the below commands.


aaa new-model
aaa authentication login default local
aaa authentication enable default enable

ip domain-name xyz.com

crypto key generate rsa  ==> with a key of 2048 size
ip ssh time-out 120
ip ssh authentication-retries 3


line vty 0 4
transport input ssh
end
Both of the switches have the exact same config.

But in one of them when i type sh run
I get the bellow.

crypto pki trustpoint TP-self-signed- xxxxxxxxxxxxxxxxx
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-xxxxxxxxxxxxx
revocation-check none
rsakeypair TP-self-signed-xxxxxxxxxxxxxxxx


and on the OTHER switch I do not seem to be getting this output as I am shown above.

Anyone has any ideas?

Please keep in mind I am able to log in using SSH to both of the switches.  and ip ssh version 2 is enabled to both.

I would appreciate your response on that matter.

Thank you and have a great evening.


4 Replies 4

Jon Marshall
Hall of Fame
Hall of Fame

The certificate as far as i know is not used for SSH. The key pair you generated for SSH does not create a certificate.

Does one of the switches have "ip http secure-server" configured ?

Jon

Jon thank you for the reply,

I guess I answered my own question, there is nothin ginconsistent between the 2 switch configs, simply I did not get a chance to https to the IP of the 2nd switch which means the switch was never given the opportunity to generate the certificate.

Thank you for the reply.

antonios.skoulariotis wrote:

Jon thank you for the reply,

I guess I answered my own question, there is nothin ginconsistent between the 2 switch configs, simply I did not get a chance to https to the IP of the 2nd switch which means the switch was never given the opportunity to generate the certificate.

Thank you for the reply.

So just to clarify for me and others it was to do with using https to access the switch ? ie. ssh doens't need a cert but when you https to the switch it needs a cert ?

Jon

Jon you are correct.  When you first enable Ip http secure-server in simple terms when you enable https only access to the switch and you do a sh run you get nothing changed on the run config.

When you though try to access the switch for the very first time, and since it is a secure connection, the certificate is self generated on the actual switch.

Using ssh the way I have it configured with local authentication does not require certs.

You have the ability though to aaa the users using a tacacs or a radius server and the option to use certs.

I hope this clarifies it.

Thank you for your responses.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: