Certificates
VeriFactu · Certificates
Certificate Management
Section titled “Certificate Management”VeriFactu requires X.509 certificates issued by Spanish CAMs (CAs).
Supported Certificate Types
Section titled “Supported Certificate Types”| Type | Use Case | Issuer |
|---|---|---|
| FNMT Class 2 | Individuals | FNMT-RCM |
| DNIe | Spanish citizens | DNIe |
| Camerfirma | Businesses | Camerfirma |
| Firmaprofesional | Professionals | Firmaprofesional |
Uploading a Certificate
Section titled “Uploading a Certificate”POST /verifactu/v1/certificatesContent-Type: multipart/form-data
file: certificate.pfxpassword: your_pfx_passwordCertificate Storage
Section titled “Certificate Storage”Kreyo securely stores certificates:
- Encrypted at rest — AES-256 encryption
- Memory-only during signing — Never written to disk unencrypted
- Access controlled — Only your API key can use your certificates
Using Certificates
Section titled “Using Certificates”When submitting a record, reference your certificate by ID:
{ "certificate_id": "cert_abc123", "invoice": { ... }}Certificate Renewal
Section titled “Certificate Renewal”- Upload new certificate
- Update your integrations with new
certificate_id - Old records remain valid (signed with previous cert)
Security Considerations
Section titled “Security Considerations”- Use strong PFX passwords (12+ characters)
- Rotate certificates annually
- Revoke compromised certificates immediately