"unknown signature algorithm" when trying to verify a certificate based on ECC key
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- ruby
- Área
- cryptography, security
Línea de trabajo
Comienza con la llamada reportada signer_certificate.verify(certificate.public_key) y compara los detalles del certificado RSA con los detalles del certificado ECC del issue. Rastrea cómo el binding de Ruby OpenSSL gestiona el algoritmo de firma rsassaPss y la clave id-ecPublicKey, y reproduce el error de algoritmo de firma desconocido. Se considera terminado cuando la ruta de verificación del certificado reportada ya no rechaza este algoritmo inesperadamente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi everyone, I don't know much about SSL understanding and I have a question because I try to verify a certifcate.
I hope someone can help me and/or maybe guide me to a solution.
Context occurs on a process of strong user authentication where I can receive either an old certificate or a new one. My code has to work with both of them.
I think I have to verify the signature of a certificate to provide this strong integrity.
I don't have any issue with the old certificate which is based on RSA Keys, but I got one with the new certificate where it is an ECC key.
At the moment I have no choice but to bypass the check on the new certificate.
The old certificate has the following lines in it (I have omitted some lines) :
Certificate:
Data:
Version: 3 (0x2)
Signature Algorithm: sha256WithRSAEncryption
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public-Key: (2048 bit)
Modulus:
-----
Exponent: 65537 (0x10001)
The new certificate has the following lines in it :
Certificate:
Data:
Version: 3 (0x2)
Signature Algorithm: rsassaPss
Hash Algorithm: sha256
Mask Algorithm: mgf1 with sha256
Salt Length: 0x20
Trailer Field: 0xBC (default)
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (256 bit)
pub:
--------
ASN1 OID: prime256v1
NIST CURVE: P-256
I usually execute the following command to verify the certificate : signer_certificate.verify(certificate.public_key)
I get unknown signature algorithm when I try to use this command on the new certificate.
- Lenguaje dominante
- C
- Estrellas
- 276
- Forks
- 201
- Merge medio
- 1 d 41 min
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ruby/openssl
-
Add OpenSSL::SSL::SSLContext#client_hello_cb= (binding for SSL_CTX_set_client_hello_cb())Posiblemente ocupada @kou la tomó hoy. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 53/100
ruby/openssl#1125 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
ruby/openssl#1118 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
Expose XOFs like SHAKE128 and SHAKE256Posiblemente ocupada @rhenium la tomó hace 97 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
ruby/openssl#1082 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
ruby/openssl#1075 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Unchecked *_set_* callsPosiblemente ocupada @ndossche la tomó hace 167 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
ruby/openssl#1038 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de ruby/openssl
Issues similares
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
FujiNetWIFI/fujinet-lib#122 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 12 días
-
bug format I/O medium priority rt_lib
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día