public function export(string $password = NULL): string {
        $status = openssl_pkey_export(
            $this->getHandle(),
            $output,
            $password
        );
        if(!$status) {
            throw new RuntimeException(OpenSSL::getLastError());
        }
        return $output;
    }