OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Auto-certificate and Chrome
« previous next »
  • Print
Pages: [1] 2 3

Author Topic: Auto-certificate and Chrome  (Read 17273 times)

balubeto

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 0
    • View Profile
Auto-certificate and Chrome
« on: October 14, 2018, 05:54:28 pm »
Hi



I have a LAN network managed by a hardware firewall that has OPNsense 17.8.4 64 bit.


To access the firewall, I use Chrome 69.x.x.x 64 bit.


I would like to access this firewall using the https protocol.


So, with OPNsense, how do I create a valid auto-certificate, export it and import it into Chrome?


Thanks


Bye
Logged
balubeto

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Auto-certificate and Chrome
« Reply #1 on: October 14, 2018, 06:20:27 pm »
Chrome usually uses the system certificate store so you just have to import a custom CA from OPNsense into it and then sign a new certificate signed by it to the web interface.
Logged

qinohe

  • Full Member
  • ***
  • Posts: 160
  • Karma: 19
    • View Profile
Re: Auto-certificate and Chrome
« Reply #2 on: October 14, 2018, 07:16:29 pm »
Hi balubeto, there is a howto for creating self-signed chains, exporting and importing them.

Should give you some clues.

https://wiki.opnsense.org/manual/how-tos/self-signed-chain.html

Greetings, mark
Logged

balubeto

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 0
    • View Profile
Re: Auto-certificate and Chrome
« Reply #3 on: October 15, 2018, 04:38:38 pm »
Quote from: qinohe on October 14, 2018, 07:16:29 pm
Hi balubeto, there is a howto for creating self-signed chains, exporting and importing them.

Should give you some clues.

https://wiki.opnsense.org/manual/how-tos/self-signed-chain.html

Greetings, mark

Once I have created and exported a self-certificate, how do I import it in Chrome?

Thanks

Bye
Logged
balubeto

qinohe

  • Full Member
  • ***
  • Posts: 160
  • Karma: 19
    • View Profile
Re: Auto-certificate and Chrome
« Reply #4 on: October 15, 2018, 05:32:30 pm »
Go to; Settings>Advanced>Privacy and Security>Manage Certificates>IMPORT

Once done restart browser -> ready   ;D

Greetings, mark

edit:btw.  you can also import it in your OS/Distro certificate store, though you need to figure out how your OS/distro handles that.
« Last Edit: October 15, 2018, 05:35:25 pm by qinohe »
Logged

balubeto

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 0
    • View Profile
Re: Auto-certificate and Chrome
« Reply #5 on: October 16, 2018, 05:14:59 pm »
I followed your guide, I imported the OPNsense+self-certificate.p12 file, I activated the https protocol, I imported this certificate in Chrome without any problems and I restarted it.

At this point, every time I try to access its Login web page, Chrome doesn't let me access it because it tells me that the certificate is not valid. How come?

Now, how do I regain the firewall control?

Thanks

Bye
Logged
balubeto

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Auto-certificate and Chrome
« Reply #6 on: October 16, 2018, 05:51:13 pm »
SSH / Serial -> Menu -> Restore Configuration
Logged

qinohe

  • Full Member
  • ***
  • Posts: 160
  • Karma: 19
    • View Profile
Re: Auto-certificate and Chrome
« Reply #7 on: October 16, 2018, 07:41:07 pm »
Quote from: fabian on October 16, 2018, 05:51:13 pm
SSH / Serial -> Menu -> Restore Configuration
Well, use that as a second option  :P

Are you willing to install Firefox, and try the same, import the certificate into it's store, I remember people having trouble importing CRT's in Chrome/Chromium. Meaning your still bugged by that message:'invalid authority', at least something like that.

Unless you added it to the distro/OS certificate store, remove it and create the CRT. chain over new, there is something wrong with it's configuration.

Greetings, mark
Logged

balubeto

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 0
    • View Profile
Re: Auto-certificate and Chrome
« Reply #8 on: October 16, 2018, 08:01:28 pm »
Quote from: fabian on October 16, 2018, 05:51:13 pm
SSH / Serial -> Menu -> Restore Configuration

Is it possible to access via telnet? If so, what is its listening port?
Logged
balubeto

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Auto-certificate and Chrome
« Reply #9 on: October 16, 2018, 10:25:29 pm »
Quote from: balubeto on October 16, 2018, 08:01:28 pm
Is it possible to access via telnet? If so, what is its listening port?
No, for security reasons that will also not be added in the future but SSH is there if you have enabled it before. By default it listens on port TCP/22 which is the standard port of SSH.
Logged

balubeto

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 0
    • View Profile
Re: Auto-certificate and Chrome
« Reply #10 on: October 17, 2018, 10:51:58 am »

Since I have Windows 7 SP1 64 bit, I have installed Putty 64 bit to access the firewall.


Leaving the default values of Putty, when I try to perform the Login, this message appears (see attachment). How come?


Thanks


Bte
Logged
balubeto

qinohe

  • Full Member
  • ***
  • Posts: 160
  • Karma: 19
    • View Profile
Re: Auto-certificate and Chrome
« Reply #11 on: October 17, 2018, 04:41:50 pm »
Have a look at the 'key format' in putty.

Should be in the form of:
Code: [Select]
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCdQKkkD6v... user@host
If there is more than that, remove it and try again.

Greetings, mark
Logged

balubeto

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 0
    • View Profile
Re: Auto-certificate and Chrome
« Reply #12 on: October 17, 2018, 06:10:00 pm »
Quote from: qinohe on October 17, 2018, 04:41:50 pm
Have a look at the 'key format' in putty.

Should be in the form of:
Code: [Select]
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCdQKkkD6v... user@host
If there is more than that, remove it and try again.

Greetings, mark

Where can I find the ssh-rsa string so that it can be inserted in the Key field in the Connection ---> SSH ---> Host keys of Putty?

Thanks

Bye
Logged
balubeto

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Auto-certificate and Chrome
« Reply #13 on: October 17, 2018, 06:12:17 pm »
You have to export the public key to the OpenSSH format.
Logged

balubeto

  • Jr. Member
  • **
  • Posts: 75
  • Karma: 0
    • View Profile
Re: Auto-certificate and Chrome
« Reply #14 on: October 17, 2018, 06:30:13 pm »
I don't have any idea. I exported a p12 file (see attachment).


Thanks


Bye
Logged
balubeto

  • Print
Pages: [1] 2 3
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Auto-certificate and Chrome
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2