Hi,
I'm trying to issue certificates with Vault and I tried using the documentation present in the website and it works with the root token.
The only problem is that when I try to specify TTL to the certificates and use another token (non-root-token)
vault write pki/issue/rodrigo common_name=rodrigo ttl=720h
I get this:
Error writing data to pki/issue/rodrigo: Error making API request.
Code: 403. Errors:
* permission denied
If I issue the certificate without ttl, it also works, but then the certificate is already expired.
If I run
openssl x509 -enddate -noout -in rodrigo-bundle.pem
I get
notAfter=Aug 27 10:57:30 2018 GMT
Which is the exactly same date/time as I ran the command.
Does anyone have any idea what I'm doing wrong?
Best,
Rodrigo