setEndpointIdentificationAlgorithm("HTTPS") does not support ECH_REJECTED

Abierto
#1,561 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java
Área
security

Línea de trabajo

Read common/src/main/java/org/conscrypt/TrustManagerImpl.java around the linked lines 406–428 and trace how certificate verification chooses the hostname when ECH is rejected. The report provides a failing scenario and stack trace but no test file; first locate or add a focused regression test for setEndpointIdentificationAlgorithm("HTTPS") with ECH_REJECTED. Done means verification uses the appropriate hostname and the regression test passes.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

https://github.com/google/conscrypt/blob/48ee08228358c2289f422dd80b333b5ff33a7267/common/src/main/java/org/conscrypt/TrustManagerImpl.java#L406-L428

When ECH is rejected, Conscrypt continues to use the inner hostname to verify the certificate.

Exception in thread "main" java.security.cert.CertificateException: No subjectAltNames on the certificate match
        at org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:423)
        at org.conscrypt.TrustManagerImpl.getTrustedChainForServer(TrustManagerImpl.java:370)
        at org.conscrypt.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:383)
        at org.conscrypt.Platform.checkServerTrusted(Platform.java:374)
        at org.conscrypt.ConscryptEngine.verifyCertificateChain(ConscryptEngine.java:1573)
        at org.conscrypt.NativeCrypto.ENGINE_SSL_force_read(Native Method)
        at org.conscrypt.NativeSsl.forceRead(NativeSsl.java:753)
        at org.conscrypt.ConscryptEngine.unwrap(ConscryptEngine.java:825)
        at org.conscrypt.ConscryptEngine.unwrap(ConscryptEngine.java:660)
        at org.conscrypt.ConscryptEngine.unwrap(ConscryptEngine.java:625)
        at org.conscrypt.Java8EngineWrapper.unwrap(Java8EngineWrapper.java:222)
Lenguaje dominante
Java
Estrellas
1.4k
Forks
332
Merge medio
2 d 56 min
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de google/conscrypt

Todos los issues de google/conscrypt

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.