Replaced OpenSSL CLI command with related Ruby primitives