Cisco – How to install SSL key and certificate on SG 300-10 (and SSH functionality)

ciscossh

How to install our own SSL key and certificate on a SG-300-10 switch?

The manual simply doesn't seem to bear much resemblance to what's available in the web interface.

According to the manual, one should navigate to "Security > SSL Server > SSL Server Authentication Settings". But the only entries under Security are TACAS+, RADIUS, Password Strength, Management Access Authentication, Mgmt Access Method, TCP/UDP Services, Storm Control, Port Security, 802.1X, Denial of Service Prevention.

And, having looked through the other menus, I can't find anywhere else where this could be configured.

Similarly with SSH keys. The manual talks about web interface pages called "SSH User Authentication" and "SSH Server Authentication", but the web interface I see does not have pages with these titles. How would I go about reconfiguring, or even viewing, the SSH keys on the device?

Best Answer

I use an SG300 at home as my core switch. Getting SSH set up is not too bad:

conf t
crypto key generate rsa
ip ssh server
end

That will generate the SSH key and enable the SSH server. If you question-mark your way along those command structures you will find some options.

You can view the public and private RSA SSH keys with:

show crypto key rsa

I've not done an SSL cert import myself, but looking through the CLI I'd take a stab at the following:

conf t
crypto certificate 1 import
ip https certificate 1

There are two "slots" for certificates, so you can specify slot 1 or 2 for the import or a self-signed certificate generation.

The import function does not seem to have an option to install a PKCS12 certificate, so you may need to import the private key separately with:

conf t
crypto key import rsa

I'm not 100% sure on the SSL setup, but the SSH key setup above works.