Menu
Open source
Transport Layer Security (TLS)
JavaScript
import http from 'k6/http';
import { check } from 'k6';
export const options = {
tlsCipherSuites: ['TLS_RSA_WITH_RC4_128_SHA', 'TLS_RSA_WITH_AES_128_GCM_SHA256'],
tlsVersion: {
min: 'ssl3.0',
max: 'tls1.2',
},
};
export default function () {
const res = http.get('https://sha256.badssl.com');
check(res, {
'is TLSv1.2': (r) => r.tls_version === http.TLS_1_2,
'is sha256 cipher suite': (r) => r.tls_cipher_suite === 'TLS_RSA_WITH_AES_128_GCM_SHA256',
});
}
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video
Performance testing and observability in Grafana Cloud
In this webinar, learn how Grafana Cloud k6 offers you the best developer experience for performance testing.
User-centered observability: load testing, real user monitoring, and synthetics
Learn how to use load testing, synthetic monitoring, and real user monitoring (RUM) to understand end users' experience of your apps. Watch on demand.