Opening and checking a Pem file in SWI-Prolog
问题 How do I open a Pem file to check a) That the 'Not before' and 'Not after' dates are okay and b) That there is a chain of certs in the pem file to a route certificate authority? I have tried: :-use_module(library(http/http_client)). url('http://fm4dd.com/openssl/source/PEM/certs/512b-rsa-example-cert.pem'). url_data(Url,D):- http_get(Url,D,[to(string)]). url_data1(Url,Certificate):- http_get(Url,D,[to(stream(Stream))]), load_certificate(Stream, Certificate), close(Stream). url_data/1 works in