Encryption 无法在NiFi中使用EncryptContent进行加密

Encryption 无法在NiFi中使用EncryptContent进行加密,encryption,apache-nifi,public-key-encryption,pgp,openpgp,Encryption,Apache Nifi,Public Key Encryption,Pgp,Openpgp,我使用的是通过以下命令生成的公共ASCII铠装密钥文件: gpg——输出PG1ar\u en\u pub.asc——装甲——导出”xxxxx@xxxx.com“ 在Nifi Encrypt content processor中,我设置了以下配置: 运行此操作时,我得到以下错误: EncryptContent[id=66ef350e-65aa-1cc0-ac66-67ac1ea0bb5e] Cannot encrypt StandardFlowFileRecord[uuid=e7fc0a5a-f

我使用的是通过以下命令生成的公共ASCII铠装密钥文件:

gpg——输出PG1ar\u en\u pub.asc——装甲——导出”xxxxx@xxxx.com“

在Nifi Encrypt content processor中,我设置了以下配置:

运行此操作时,我得到以下错误:

EncryptContent[id=66ef350e-65aa-1cc0-ac66-67ac1ea0bb5e] Cannot encrypt StandardFlowFileRecord[uuid=e7fc0a5a-f30b-4139-8237-7700b98bbdc8,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1619433115884-599196, container=default, section=156], offset=0, length=52],offset=0,name=e7fc0a5a-f30b-4139-8237-7700b98bbdc8,size=52] - : Invalid public keyring - invalid header encountered