Questo sito potrebbe offrire funzionalità limitate durante le operazioni di manutenzione per migliorare l'esperienza utente. Se un articolo non risolve il tuo problema e vuoi richiedere supporto, la nostra comunità di supporto è pronta ad aiutarti tramite @FirefoxSupport su Twitter e /r/firefox su Reddit.

Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

SEC_ERROR_UNKNOWN_ISSUER with self-signed cert

  • 1 risposta
  • 1 ha questo problema
  • 1 visualizzazione
  • Ultima risposta di kede81

more options

Greetings,

I'm setting a staging server on a VM, and issued a self-signed certificate.

When accessing https://staging.my.site firefox is giving me the following error:

" The owner of staging.my.site has configured their website improperly. To protect your information from being stolen, Firefox has not connected to this website.

This site uses HTTP Strict Transport Security (HSTS) to specify that Firefox may only connect to it securely. As a result, it is not possible to add an exception for this certificate. "

Clicking on Advanced shows:

" staging.my.site uses an invalid security certificate. The certificate is not trusted because it is self-signed. Error code: SEC_ERROR_UNKNOWN_ISSUER "

There is no way to add an exception.

I went into Preferences-Certificates-View Certificates / Servers-Add Exception. Typed "https://staging.my.site", clicked on Get Certificate-Confirm Security Exception. But I got the same message

Restarted FF. Same message. Checked in SecurityPreloadState.txt but cannot see mention of "staging.my.site"

Kindly indicate me how to add an exception for my staging site.

Regards

Greetings, I'm setting a staging server on a VM, and issued a self-signed certificate. When accessing https://staging.my.site firefox is giving me the following error: " The owner of staging.my.site has configured their website improperly. To protect your information from being stolen, Firefox has not connected to this website. This site uses HTTP Strict Transport Security (HSTS) to specify that Firefox may only connect to it securely. As a result, it is not possible to add an exception for this certificate. " Clicking on Advanced shows: " staging.my.site uses an invalid security certificate. The certificate is not trusted because it is self-signed. Error code: SEC_ERROR_UNKNOWN_ISSUER " There is no way to add an exception. I went into Preferences-Certificates-View Certificates / Servers-Add Exception. Typed "https://staging.my.site", clicked on Get Certificate-Confirm Security Exception. But I got the same message Restarted FF. Same message. Checked in SecurityPreloadState.txt but cannot see mention of "staging.my.site" Kindly indicate me how to add an exception for my staging site. Regards

Modificato da randoum il

Tutte le risposte (1)

more options

HSTS is a configuration of the web server. See https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security for details. It would appear that the server you are staging employs this mechanism. There is no error in how Firefox behaves, this is mandated by the HSTS standard as described in the Wikipedia article. I see three workaround options: 1. you import the self-signed cert as a CA cert in to your browser. That way I expect the certificate will be accepted (as the issuer is trusted) and therefore the connection should proceed. Note I haven't built a test environment to duplicate your setup and tried this out, so this is from theory only and I may be wrong. 2. you configure the staging server differently from the production server in not employing HSTS. This will permit the browser to ask you for a security exception. Please do not deconfigure HSTS from your production server, as it is a good idea, it just doesn't permit the staging setup you employ. 3. if your staging server has internet connectivity and you are able to assign a valid and internet-reachble DNS name, you could obtain a proper certificate for it, e.g. using letsencrypt.org, a free service.