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.
source
share