Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Keyset does not exist #185

Open
daniel-cues opened this issue Feb 28, 2024 · 0 comments
Open

Error: Keyset does not exist #185

daniel-cues opened this issue Feb 28, 2024 · 0 comments

Comments

@daniel-cues
Copy link

I'm attempting to authenticate using a PFX file I made from a certificate and key.
However Rubeus returns this error:

   ______        _                                                                                                              
  (_____ \      | |                                                                                                             
   _____) )_   _| |__  _____ _   _  ___                                                                                         
  |  __  /| | | |  _ \| ___ | | | |/___)                                                                                        
  | |  \ \| |_| | |_) ) ____| |_| |___ |                                                                                        
  |_|   |_|____/|____/|_____)____/(___/                                                                                         

  v2.3.2                                                                                                                        

[*] Action: Ask TGT                                                                                                             

[*] Got domain: **redacted**                                                                                                     
[*] Using PKINIT with etype rc4_hmac and subject: CN=*.**redacted**
[*] Building AS-REQ (w/ PKINIT preauth) for: '**redacted**\admin'                                                                
[*] Using domain controller: **redacted**                                                                              

[!] Unhandled Rubeus exception:                                                                                                 

System.Security.Cryptography.CryptographicException: Keyset does not exist                                                      

   at System.Security.Cryptography.Pkcs.PkcsUtils.CreateSignerEncodeInfo(CmsSigner signer, Boolean silent, SafeCryptProvHandle& 
hProv)                                                                                                                          
   at System.Security.Cryptography.Pkcs.SignedCms.Sign(CmsSigner signer, Boolean silent)                                        
   at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)                            
   at Rubeus.PA_PK_AS_REQ.Encode()                                                                                              
   at Rubeus.PA_DATA.Encode()                                                                                                   
   at Rubeus.AS_REQ.Encode()                                                                                                    
   at Rubeus.Ask.InnerTGT(AS_REQ asReq, KERB_ETYPE etype, String outfile, Boolean ptt, String domainController, LUID luid, Boole
an describe, Boolean verbose, Boolean opsec, String serviceKey, Boolean getCredentials, String proxyUrl)                        
   at Rubeus.Ask.TGT(String userName, String domain, String certFile, String certPass, KERB_ETYPE etype, String outfile, Boolean
 ptt, String domainController, LUID luid, Boolean describe, Boolean verifyCerts, String servicekey, Boolean getCredentials, Stri
ng proxyUrl, String service, Boolean changepw, String principalType)                                                            
   at Rubeus.Commands.Asktgt.Execute(Dictionary`2 arguments)                                                                    
   at Rubeus.Domain.CommandCollection.ExecuteCommand(String commandName, Dictionary`2 arguments)                                
   at Rubeus.Program.MainExecute(String commandName, Dictionary`2 parsedArgs)          

I haven't seen this error mentioned in any other Issue, what could be happening here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant