You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: utils.go
    path of file: ./repos/rudder-server/warehouse/utils
    
    the code of the file until where you have to start completion: package warehouseutils

import (
	"bytes"
	"context"
	"crypto/sha512"
	"database/sql"
	"encoding/hex"
	"encoding/json"
	"errors"
	"fmt"
	"net/url"
	"os"
	"reflect"
	"regexp"
	"sort"
	"strings"
	"time"

	"github.com/samber/lo"

	"github.com/rudderlabs/r
    
func GetSSLKeyDirPath(destinationID string) (whSSLRootDir string) {
	var err error
	var directoryName string
	if directoryName, err = misc.CreateTMPDIR(); err != nil {
		pkgLogger.Errorf("Error creating SSL root TMP directory for destination %v", err)
		return
	}
	sslDirPath := fmt.Sprintf("%s/dest-ssls/%s", directoryName, destinationID)
	return sslDirPath
}