Skip to content

Instantly share code, notes, and snippets.

View manusant's full-sized avatar
🏠
Working from home

Manuel Santos manusant

🏠
Working from home
View GitHub Profile
@manusant
manusant / PemCertificatesConfigReader.java
Last active October 13, 2020 12:38
This is just to extract trusted certificates from a .pem file content. A list of all certificates found will be returned
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.binary.Base64;
import java.util.ArrayList;
import java.util.List;
/**
* PEM Certificates reader with an encoding fallback for base-64 encoded pem string.