This lib works but requires still some important job to do (for security reasons)
go get github.com/marcelmiguel/aeatnif
Get pfx file
Convert pfc encrypted to pem unencrypted
openssl pkcs12 -in cert.pfx -nodes -out cert.crt
Put a cert.crt file in the project directory Change aeat-nif_test.go and set password CERTPWD constant (DO NOT UPDATE TO GIT THE PASSWORD !!). Launch tests.
- Use Environment variables for file and password of certificate
- Use secrets in BASE64 to store cert and password for use in Kubernetes
- Verify caducity of certifcate
- Enable read encrypted pem
- Enable read encrypted pfx