Skip to content

Commit

Permalink
Remove unwanted configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
ldclakmal committed Jul 1, 2021
1 parent 45a247a commit 22cdac5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,7 @@ import ballerina/tcp;
// provides the SSL-related configurations of the client.
tcp:Client securedEP = check new ("localhost", 3000,
secureSocket = {
// Provide the trusted certificate path or the truststore path
// along with the truststore password.
cert: "../resource/path/to/public.crt",
protocol: {
name: tcp:TLS,
versions: ["TLSv1.2", "TLSv1.1"]
},
ciphers: ["TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA"]
cert: "../resource/path/to/public.crt"
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,10 @@ import ballerina/tcp;
// provides the SSL-related listener configurations of the listener.
listener tcp:Listener securedEP = check new(3000,
secureSocket = {
// Provide the server certificate path and the private key path
// or the keystore path along with keystore password.
key: {
certFile: "../resource/path/to/public.crt",
keyFile: "../resource/path/to/private.key"
},
// Enable the preferred SSL protocol and its versions.
protocol: {
name: tcp:TLS,
versions: ["TLSv1.2", "TLSv1.1"]
},
// Configure the preferred ciphers.
ciphers: ["TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA"]
}
}
);

Expand Down

0 comments on commit 22cdac5

Please sign in to comment.