Self signed CA signing a self signed certificate causes a `ERR_SSL_SERVER_CERT_BAD_FORMAT`

Abierto
#1,099 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
javascript

Línea de trabajo

Start by reproducing the self-signed CA and leaf certificate flow described in the issue, including PEM conversion and use with Apache or npm serve. Compare the generated certificate with the working OpenSSL version and inspect the certificate-generation and signing entry points. Done means identifying the format or signing discrepancy and confirming the resulting certificate is accepted by browsers.

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

Descripción

Hi. First of all, thank you for this package it's really great.
This is surely most me missing something than an issue but, here it is. I'm generating a self signed CA (with basicConstraints cA flag to true, issuer as itself and signed with its own private key) that I convert to PEM and write it down to a file before storing it into CA windows store with certmgr. Then, I create another certificate with my previous CA's subject attributes as issuer and sign it with my CA's private key. I convert it to PEM and write it down to a file, do the same with the private key, but when I use them with a server app (apache, npm serve) chrome (and other browsers) give me a ERR_SSL_SERVER_CERT_BAD_FORMAT. And as soon as I remove the line that set issuer's attributes, browsers consider certificate as a risk but I can reach my served files.
I did the same logic with openssl and it worked.
What am I missing ?

Lenguaje dominante
JavaScript
Estrellas
5.4k
Forks
875
Merge medio
3 min
PR fusionados (30 d)
6

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 digitalbazaar/forge

Todos los issues de digitalbazaar/forge

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.