i have application with client-server architecture.
client (C program):
- generate various DER encoded data
- convert DER to PEM (using openssl’s PEM_write_bio) with various PEM header
- send PEM to server
server (Perl script):
- receive PEM data
- convert PEM to DER
- ….
My question is how to convert various PEM data to DER/BER (binary data) in perl?
You can strip off the PEM tags yourself, and do a decode of the Base64 block inside using
MIME::Base64.Should be as simple as