RequestClientCertificate error in browser

I am trying to request an SSL certificate, but it does not work ...

When I do this:

void main() {
  SecureSocket.initialize(
    database: './bin/security',
    password: 'dartdart'
  );

  HttpServer.bindSecure('127.0.0.1', 8443, certificateName: 'Dart').then
  ((server) => server.listen((req) {
    req.response.write('hello');
    req.response.close();
  }));
}

This is normal, I get a warning message about the certificate, I continue anyway, and then I receive "hello".

When I add the requestClientCertificate flag to bindSecure, the browser asks me to select a certificate from the list, I select it, I get it in the browser Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have. Error code: ERR_SSL_PROTOCOL_ERROR, but without errors from the server.

Did I miss something?

I am on mac os marverick.

+4
source share
1 answer

Try installing the certificate in Chrome, because you said that it was signed on its own.

chrome://settings
Show advanced settings...
HTTPS/SSL -> Manage certificates...
Import... (follow the wizard)
0
source

Source: https://habr.com/ru/post/1542820/


All Articles