How to access a safe local site by firefox?

Asked

Viewed 519 times

-2

I’m looking to release a site that I’m developing through the Chrome browser and need to fix the CSS bugs that are occurring in Firefox. But I’m having trouble accessing it through Firefox.

Message in Firefox:

Did not Connect: Potential Security Issue

Firefox detected a potential security threat and did not proceed to local.meusite.com.br because this site requires a secure connection.

It would be a local address, example: https://local.meusite.com.br:8810/

Websites prove your identity through certificates. Firefox does not trust this site because it uses a certificate that is not valid for local.meusite.com.br:8810. The certificate is only valid for .

Error code: MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT

By clicking this code, Firefoz points to:

O certificado não é considerado confiável porque é autoassinado.

HTTP Strict Transport Security: true
Chave HTTP pública fixa: false

Cadeia de certificados:

-----BEGIN CERTIFICATE-----
MIIDBjCCAe4CCQCir/8eGDIE/jANBgkqhkiG9w0BAQsFADBFMQswCQYDVQQGEw
...etc (removi o restante por não ser pertinente à pergunta)...
3+56a5njSTFYKw==
-----END CERTIFICATE-----

In the Google Chrome I can release, even if it gives a restriction message, but how do I access in Firefox, a secure site on site?

You don’t have the option to go on like this...

Tutorial that I followed to generate the certificate:

Criando um Certificado SSL
$ cd ~

Crie a chave privada (é requerido duas vezes uma senha)
$ openssl genrsa -des3 -out server.key 1024

Crie a assinatura desta chave com uma requisição do certificado (mesma senha criada acima)
$ openssl req -new -key server.key -out server.csr

Preencha os dados conforme exemplo
Country Name (2 letter code) [AU]: BR
State or Province Name (full name) [Some-State]: SP
Locality Name (eg, city) []: Sao_Paulo
Organization Name (eg, company) [Internet Widgits Pty Ltd]: Empresa XYZ
Organizational Unit Name (eg, section) []: Development
Common Name (eg, YOUR name) []: local.meusite.com.br
Email Address []: (seu_email)@meusite.com.br
A challenge password []: # (deixe em branco)
An optional company name []: # (deixe em branco)

Criando o certificado
$ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

Remova a senha do server key
$ cp server.key server.tmp
$ openssl rsa -in server.tmp -out server.key

Mova o certificado para a pasta de configuração do apache do MAMP
$ cp server.crt /Applications/MAMP/conf/apache
$ cp server.key /Applications/MAMP/conf/apache

Abra /Applications/MAMP/conf/apache/httpd.conf e descomente a linha:
Include /Applications/MAMP/conf/apache/extra/httpd-ssl.conf.
  • I did not understand, because they denied the question, it is pertinent to my need to correct programming problems?

  • Take https and access only by http... already tried?

  • Dear Ivan, instead of using "invalido" you tried to use the mkcert (https://blog.filippo.io/mkcert-valid-https-certificates-for-localhost/)? Remember that you have to take your other certificate, if not you will conflict things, I have not tested, but it seems that it is supported by Macos, Windows and some Linux distros, see if it helps you. Just for the record, I couldn’t quite understand your question, if it’s about the actual certificate, or if it’s about adding invalid certificate "in the Firefox exceptions", because if it’s the case of the second ai the question would actually be off-topic.

  • 1

    @Andre probably wants to simulate the HTTPS environment precisely for testing, HTTP for sure can, the issue is to test the environment and probably redirects and even other third party programs that REQUIRE the site to be on HTTPS, so accessing HTTP won’t solve Ivan’s problem.

  • And how do I remove the other one? I’ll add the question the process I made the certificate.

  • I think that found

  • So, @Guilhermenascimento, I created the certificate using this mkcert, but keeps giving the same problem with a different certificate.

Show 2 more comments

1 answer

1


Here’s what I got by doing:

First I clicked on the browser lock icon and went to Firefox settings:

Preferences > Privacy & Security > Certificates

in the URL: about:preferences#privacy

Then I clicked on "View Certificates...", imported the certificate by the file: meusite.com.br.crtand checked the two options that appear... then appeared the button that allows you to open the site running risks.

  • I trying to understand why the question got a negative vote, I strongly believe that this will help more people in the future

  • 2

    @Medium, I believe the answer itself defines this, I can’t speak for those who were negative, but I voted to close, because Ivan’s own answer confirmed, the question is off-topic, I would also love to ask several questions on the site, questions about Benchmark, Cluster and strategies aimed at structuring applications and banking, but benchmark subjects, clusters and "strategies" are off-topic or opinion-based, and the rules of the site are clear about what is accepted scope and what is not, and so I respect the rules.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.