pemToDer static method
Implementation
static BuBytes pemToDer(String pem) {
final body =
pem
.split('\n')
.map((l) => l.trim())
.where((l) => l.isNotEmpty && !l.startsWith('-----'))
.join();
return StringUtils.encode(body, encoding: StringEncoding.base64);
}