Skip to content

Instantly share code, notes, and snippets.

@sabesansathananthan
Created August 8, 2019 17:08
Show Gist options
  • Save sabesansathananthan/b9515fbb6bc7aebb3db59e30ee300492 to your computer and use it in GitHub Desktop.
Save sabesansathananthan/b9515fbb6bc7aebb3db59e30ee300492 to your computer and use it in GitHub Desktop.
Running a Key Distribution Center
public static void main(String[] args) throws Exception {
String[] config = MiniKdcConfigBuilder.builder()
.workDir(prepareWorkDir())
.confDir("minikdc-krb5.conf")
.keytabName("example.keytab")
.principals("client/localhost", "HTTP/localhost")
.build();
MiniKdc.main(config);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment