Example usage for io.netty.handler.ssl PemX509Certificate valueOf

List of usage examples for io.netty.handler.ssl PemX509Certificate valueOf

Introduction

In this page you can find the example usage for io.netty.handler.ssl PemX509Certificate valueOf.

Prototype

public static PemX509Certificate valueOf(ByteBuf key) 

Source Link

Document

Creates a PemX509Certificate from raw ByteBuf .

Usage

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);
}