Skip to content

Commit

Permalink
Add JFS_RSA_PASSPHRASE environment variable prompt information (#1706)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored Apr 2, 2022
1 parent 6111f4d commit f55ba44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/object/encrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func ParseRsaPrivateKeyFromPem(privPEM string, passphrase string) (*rsa.PrivateK
if strings.Contains(block.Headers["Proc-Type"], "ENCRYPTED") &&
x509.IsEncryptedPEMBlock(block) {
if passphrase == "" {
return nil, fmt.Errorf("passphrase is required to private key")
return nil, fmt.Errorf("passphrase is required to private key, please try again after setting the 'JFS_RSA_PASSPHRASE' environment variable")
}
var err error
// nolint:staticcheck
Expand Down

0 comments on commit f55ba44

Please sign in to comment.