Follow these steps to enable https secure web configuration on your router or switch:
#conf t username tech privilege 15 secret 0 userpassword '<-- create user tech with the highest privileges' ip http server '<-- enable http access' ip http access-class 23 ip http authentication local '<-- enable local authentication' ip http secure-server ip http timeout-policy idle 60 life 86400 requests 10000