docs: public static SSLContext getSSLServerContext(String certificateString, String keyString) throws CertificateException, KeyStoreException, IOException, NoSuchAlgorithmException, UnrecoverableKeyException, KeyManagementException, InvalidKeySpecException {
      byte[] certBytes = parseDERFromPEM(certificateString, CERT_START, CERT_END);
      byte[] keyBytes = parseDERFromPEM(keyString, P8_KEY_START, P8_KEY_END);
  
      X509Certificate cert = generateCertificateFromDER(certBytes);
      PrivateKey key = generatePrivateKeyFromPKCS8DER(keyBytes);
      KeyStore keystore = KeyStore.getInstance("JKS");
      keystore.load(null);
      keystore.setCertificateEntry("cert-alias", cert);
      keystore.setKeyEntry("key-alias", key, "changeit".toCharArray(), new Certificate[]{cert});
  
      KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
      kmf.init(keystore, "changeit".toCharArray());
  
      KeyManager[] km = kmf.getKeyManagers();
  
      SSLContext context = SSLContext.getInstance("TLS");
      context.init(km, null, null);
  
      return context;
    }