public function getPrivateKey($caName = null, $caPassword = null)
    {
        // if password is set
        if ($caPassword !== null) {
            return [
                file_get_contents($this->caDataRoot . $caName . DS . static::PRIV_KEY_FILENAME),
                $caPassword
            ];
        }

        return file_get_contents($this->caDataRoot . $caName . DS . static::PRIV_KEY_FILENAME);
    }
public function getPrivateKey($caName = null, $caPassword = null)
    {
        // if password is set
        if ($caPassword !== null) {
            return [
                file_get_contents($this->caDataRoot . $caName . DS . static::PRIV_KEY_FILENAME),
                $caPassword
            ];
        }

        return file_get_contents($this->caDataRoot . $caName . DS . static::PRIV_KEY_FILENAME);
    }
public function getPrivateKey ( $ caName = null , $ caPassword = null ) { // if password is set if ( $ caPassword !== null ) { return [ file_get_contents ( $ this -> caDataRoot . $ caName . DS . static :: PRIV_KEY_FILENAME ) , $ caPassword ] ; } return file_get_contents ( $ this -> caDataRoot . $ caName . DS . static :: PRIV_KEY_FILENAME ) ; }
Method getCaKey
Returns array for encrypted keys and string othervise

@param $caName
@param $caPassword
@return array|string
Method getCaKey Returns array for encrypted keys and string othervise