Skip to content

Crypt error in 6.0.2 #221

@anik1ng

Description

@anik1ng

Hi, i update phpbu from 5.2.10 to 6.0.2 and get error:

Exception 'RuntimeException' with message 'Command failed:                                                                                                                                                                  
  exit-code: 1                                                                                                                                                                                                              
  message:   Usage smime [options] cert.pem ...                                                                                                                                                                             
where options are                                                                                                                                                                                                           
-encrypt       encrypt message                                                                                                                                                                                              
-decrypt       decrypt encrypted message                                                                                                                                                                                    
-sign          sign message                                                                                                                                                                                                 
-verify        verify signed message                                                                                                                                                                                        
-pk7out        output PKCS#7 structure                                                                                                                                                                                      
-des3          encrypt with triple DES                                                                                                                                                                                      
-des           encrypt with DES                                                                                                                                                                                             
-seed          encrypt with SEED                                                                                                                                                                                            
-rc2-40        encrypt with RC2-40 (default)                                                                                                                                                                                
-rc2-64        encrypt with RC2-64                                                                                                                                                                                          
-rc2-128       encrypt with RC2-128                                                                                                                                                                                         
-aes128, -aes192, -aes256                                                                                                                                                                                                   
               encrypt PEM output with cbc aes                                                                                                                                                                              
-camellia128, -camellia192, -camellia256                                                                                                                                                                                    
               encrypt PEM output with cbc camellia                                                                                                                                                                         
-nointern      don't search certificates in message for signer                                                                                                                                                              
-nosigs        don't verify message signature                                                                                                                                                                               
-noverify      don't verify signers certificate                                                                                                                                                                             
-nocerts       don't include signers certificate when signing                                                                                                                                                               
-nodetach      use opaque signing                                                                                                                                                                                           
-noattr        don't include any signed attributes                                                                                                                                                                          
-binary        don't translate message to text                                                                                                                                                                              
-certfile file other certificates file                                                                                                                                                                                      
-signer file   signer certificate file                                                                                                                                                                                      
-recip  file   recipient certificate file for decryption                                                                                                                                                                    
-in file       input file                                                                                                                                                                                                   
-inform arg    input format SMIME (default), PEM or DER                                                                                                                                                                     
-inkey file    input private key (if not signer or recipient)                                                                                                                                                               
-keyform arg   input private key format (PEM or ENGINE)                                                                                                                                                                     
-out file      output file                                                                                                                                                                                                  
-outform arg   output format SMIME (default), PEM or DER                                                                                                                                                                    
-content file  supply or override content for detached signature                                                                                                                                                            
-to addr       to address                                                                                                                                                                                                   
-from ad       from address                                                                                                                                                                                                 
-subject s     subject                                                                                                                                                                                                      
-text          include or delete text MIME headers                                                                                                                                                                          
-CApath dir    trusted certificates directory                                                                                                                                                                               
-CAfile file   trusted certificates file                                                                                                                                                                                    
-no_alt_chains only ever use the first certificate chain found                                                                                                                                                              
-crl_check     check revocation status of signer's certificate using CRLs                                                                                                                                                   
-crl_check_all check revocation status of signer's certificate chain using CRLs                                                                                                                                             
-engine e      use engine e, possibly a hardware device.                                                                                                                                                                    
-passin arg    input file pass phrase source                                                                                                                                                                                
-rand file:file:...                                                                                                                                                                                                         
               load the file (or the files in the directory) into                                                                                                                                                           
               the random number generator                                                                                                                                                                                  
cert.pem       recipient certificate(s) for encryption                                                                                                                                                                      
                                                                                                                                                                                                                            
'                                                                                                                                                                                                                           
in phar:///home/c/username/phpbu-6.0.2.phar/lib/sf-cli/Command/Runner/Simple.php:57

This is my config:

{
   "name":"site.com",
   "source":{
      "type":"mysqldump",
      "options":{
         "databases":"secret",
         "user":"secret",
         "password":"secret"
      }
   },
   "target":{
      "dirname":".backup/site.com",
      "filename":"site-mysqldump-%Y%m%d-%H%i.sql",
      "compress":"bzip2"
   },
   "crypt":{
      "type":"openssl",
      "options":{
         "certFile":"certificate.crt",
         "algorithm":"aes256"
      }
   },
   "sync":{
      "type":"dropbox",
      "options":{
         "token":"secret",
         "path":"/site.com",
         "cleanup.type":"stepwise",
         "cleanup.daysToKeepAll":"30",
         "cleanup.daysToKeepDaily":"30",
         "cleanup.weeksToKeepWeekly":"4",
         "cleanup.monthToKeepMonthly":"12",
         "cleanup.yearsToKeepYearly":"5"
      }
   },
   "cleanup":{
      "type":"stepwise",
      "options":{
         "daysToKeepAll":"30",
         "daysToKeepDaily":"30",
         "weeksToKeepWeekly":"4",
         "monthToKeepMonthly":"12",
         "yearsToKeepYearly":"5"
      }
   }
}

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions