public function unseal()
    {
        $file = $this->getVaultKeyFile();

        if (!file_exists($file)) {
            return $this->abort($file . ' does not exist - call "create" first');
        }

        $sysService = $this->sys();

        $sealed = $sysService->sealed();
        if (!$sealed) {
            return $this->success('Vault is unsealed');
        }

        $content = json_decode(file_get_contents($file), true);

        while ($sysService->sealed()) {
            $this->info('Unsealing with key ...');
            $sysService->unseal(['key' => array_pop($content['keys'])]);
        }

        $this->success('Vault has been unsealed successfully');
    }
public function unseal()
    {
        $file = $this->getVaultKeyFile();

        if (!file_exists($file)) {
            return $this->abort($file . ' does not exist - call "create" first');
        }

        $sysService = $this->sys();

        $sealed = $sysService->sealed();
        if (!$sealed) {
            return $this->success('Vault is unsealed');
        }

        $content = json_decode(file_get_contents($file), true);

        while ($sysService->sealed()) {
            $this->info('Unsealing with key ...');
            $sysService->unseal(['key' => array_pop($content['keys'])]);
        }

        $this->success('Vault has been unsealed successfully');
    }
public function unseal ( ) { $ file = $ this -> getVaultKeyFile ( ) ; if ( ! file_exists ( $ file ) ) { return $ this -> abort ( $ file . ' does not exist - call "create" first' ) ; } $ sysService = $ this -> sys ( ) ; $ sealed = $ sysService -> sealed ( ) ; if ( ! $ sealed ) { return $ this -> success ( 'Vault is unsealed' ) ; } $ content = json_decode ( file_get_contents ( $ file ) , true ) ; while ( $ sysService -> sealed ( ) ) { $ this -> info ( 'Unsealing with key ...' ) ; $ sysService -> unseal ( [ 'key' => array_pop ( $ content [ 'keys' ] ) ] ) ; } $ this -> success ( 'Vault has been unsealed successfully' ) ; }
Unseal the vault using the keys provided

@return void
Unseal the vault using the keys provided