List of usage examples for io.netty.handler.ssl PemPrivateKey valueOf
public static PemPrivateKey valueOf(ByteBuf key)
From source file:org.graylog2.plugin.inputs.transports.util.KeyUtil.java
License:Open Source License
public static PrivateKey readPrivateKey(Path path) throws IOException { final byte[] bytes = Files.readAllBytes(path); return PemPrivateKey.valueOf(bytes); }