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