Skip to main content
fortinet-davidy
New Member
January 25, 2023
Solved

Access fortigate via http and https

  • January 25, 2023
  • 2 replies
  • 23104 views

Hi Please see the below config, which include http and https. why I can only access it via http instead of https? thanks

 

 

FG01 # sh system interface
config system interface
edit "port1"
set vdom "root"
set ip 192.168.1.221 255.255.255.0
set allowaccess ping https ssh http
set type physical
set snmp-index 1

Best answer by gfleming

You can just try using the factory cert. It should work. Please try:

 

config system global
  set auth-cert Fortinet_GUI_Server
end

 

More info here: https://docs.fortinet.com/document/fortigate/7.2.3/administration-guide/499047/using-the-default-certificate-for-https-administrative-access

 

You can also of course create your own certificate from your own PKI if you have one.

2 replies

gfleming
Staff
Staff
January 25, 2023
 get system global | grep admin-sport

 

that will show you what port you need to use to get access to the HTTPS connection.

fortinet-davidy
New Member
January 25, 2023

Thanks for your reply! Please see the below. Is that meaning 443 is open? but i still cannot access it via https.

 

FG01 # get system global | grep admin-sport
admin-sport : 443

gfleming
Staff
Staff
January 25, 2023

What happens when you try to access it?

 

It is possible you have something conflicting with it such as SSL VPN or a VIP?

fortinet-davidy
New Member
January 26, 2023

When I access it via https, I got the below page. why no problem with http? 

the second screenshot is NMAP scaning result. is there some issue? I can see some error in it. 

 

 

fortinetdavidy_1-1674691385276.png

 

 

fortinetdavidy_0-1674691233648.png