-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?
– Ivan Ferrer
Take https and access only by http... already tried?
– Andre
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.
– Guilherme Nascimento
@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.
– Guilherme Nascimento
And how do I remove the other one? I’ll add the question the process I made the certificate.
– Ivan Ferrer
I think that found
– Ivan Ferrer
So, @Guilhermenascimento, I created the certificate using this mkcert, but keeps giving the same problem with a different certificate.
– Ivan Ferrer