Skip to content

Trouble with tls.createSecureContext #452

Closed
@renambot-uic

Description

@renambot-uic

I have a HTTPS server running fine with crypto.createCredentials (using a real SSL certificate):
crypto.createCredentials({key: key, cert: crt, ca: ca}).context

I understand this is deprecated.

If I replace the code with:
tls.createSecureContext({key: key, cert: crt, ca: ca}).context
the code runs but I can't get a connection with a browser, it times out.

If I run: openssl s_client -connect example.server.com:443
it seems to validate fine ( Verify return code 0 (ok) )

Is there anything else to do to be compatible with node.js ?

Could it be related to #402

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions