Skip to main content
fortinet-davidy
New Member
Jan 25, 2023 7:58 PM UTC
Solved

Access fortigate via http and https

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

gfleming
gflemingAnswer
Staff
Jan 27, 2023 5:35 AM UTC

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.

15 replies

gfleming
Staff
Staff
Jan 25, 2023 9:38 PM UTC
 get system global | grep admin-sport

 

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

Translate
fortinet-davidy
New Member
Jan 25, 2023 9:53 PM UTC

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

Translate
gfleming
Staff
Staff
Jan 25, 2023 10:14 PM UTC

What happens when you try to access it?

 

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

Translate
fortinet-davidy
New Member
Jan 26, 2023 12:07 AM UTC

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

 

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024