Visualizzazione dei risultati da 1 a 6 su 6

Discussione: URL e certificati

  1. #1
    Utente di HTML.it L'avatar di Alex80b
    Registrato dal
    Feb 2004
    Messaggi
    154

    URL e certificati

    Ciao,
    ho bisogno di accedere via Java (JSP a dire il vero) ad un URL protetto da password. Via browser non ho nessun problema in quanto lo user e la password stanno nel link e basta ignorare la richiesta di certificato che tutto funziona alla grande.
    Dovrei replicare la stessa funzionalità via java, ma mi incarto sulla richiesta del certificato in quanto ricevo sempre un errore javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target
    Coloro i quali mi mettono a disposizione queste pagine mi dicono che il certificato non serve.
    Come posso risolvere questo problema?

  2. #2
    Utente di HTML.it
    Registrato dal
    Aug 2002
    Messaggi
    8,013
    credo che non ci siano molti work-around se non replicare quello che fai con il browser (ovvero forzare l'importazione del certificato). Qui si tratta di importare il certificato nel keystore del tuo ambiente java. Trovi una spiegazione passo-passo qui:

    java-samples.com link
    <´¯)(¯`¤._)(¯`»ANDREA«´¯)(_.¤´¯)(¯`>
    "The answer to your question is: welcome to tomorrow"

  3. #3
    Utente di HTML.it L'avatar di Alex80b
    Registrato dal
    Feb 2004
    Messaggi
    154
    Originariamente inviato da Andrea1979
    credo che non ci siano molti work-around se non replicare quello che fai con il browser (ovvero forzare l'importazione del certificato). Qui si tratta di importare il certificato nel keystore del tuo ambiente java. Trovi una spiegazione passo-passo qui:

    java-samples.com link
    non me ne intendo molto di certificati... ma non mi hanno fornito nessun certificato da installare.

  4. #4
    Utente di HTML.it
    Registrato dal
    Aug 2002
    Messaggi
    8,013
    è quello che è sul sito da visitare che devi importare...
    <´¯)(¯`¤._)(¯`»ANDREA«´¯)(_.¤´¯)(¯`>
    "The answer to your question is: welcome to tomorrow"

  5. #5
    Utente di HTML.it L'avatar di Alex80b
    Registrato dal
    Feb 2004
    Messaggi
    154
    Originariamente inviato da Andrea1979
    è quello che è sul sito da visitare che devi importare...
    scusa se le domande sono banali... ma come lo importo? quando mi dà l'alert di sicurezza non mi permette di installarlo...

  6. #6
    Utente di HTML.it L'avatar di Alex80b
    Registrato dal
    Feb 2004
    Messaggi
    154
    Questo è quello che mi mostra IE quando tento di accedere alla pagina:

    There is a problem with this website's security certificate.


    The security certificate presented by this website was not issued by a trusted certificate authority.
    The security certificate presented by this website was issued for a different website's address.

    Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.
    We recommend that you close this webpage and do not continue to this website.
    Click here to close this webpage.
    Continue to this website (not recommended).
    More information


    If you arrived at this page by clicking a link, check the website address in the address bar to be sure that it is the address you were expecting.
    When going to a website with an address such as https://example.com, try adding the 'www' to the address, https://www.example.com.
    If you choose to ignore this error and continue, do not enter private information into the website.

    For more information, see "Certificate Errors" in Internet Explorer Help.

    Se però clicco su "Continue to this website (not recommended)." vedo tutte le informazioni che mi servono.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.