![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
![]() |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
|
|
#1
|
|||
|
|||
|
Pon el comando tal cual lo pones (sim contraseñas)
|
|
#2
|
|||
|
|||
|
Y si tienes instalado el openssl pon esto tambien y mndame del resultado: ojo, solo el encabezado.
openssl pkcs12 -info -in certificado.pfx |
|
#3
|
|||
|
|||
|
este es mi comando:
c:\CURL2\curl.exe -v "https://prewww1.aeat.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/VerifactuSOAP" --cert-type P12 --cert "C:\Program Files (x86)\Certificados\certificado.p12":xxxxx -k -H "Content-Type: application/xml" --data-binary "@C:\Documentos-SAT\VeriFactu\2025\11\FA001530002\FA001530002.xml" --output C:\Documentos-SAT\VeriFactu\2025\11\FA001530002\FA001530002_respuesta.xml Con algún certificado si funciona. Uso la versión 8.17.0 de CURL, esta version usa libreSSL en vez de OpenSSL me instalé OpenSSL, pero no se como hacer para que el CURL use OpenSSL en vez de LibreSSL c:\curl\curl.exe version -V curl 8.17.0 (x86_64-w64-mingw32) libcurl/8.17.0 LibreSSL/4.2.1 zlib/1.3.1.zlib-ng brotli/1.2.0 zstd/1.5.7 WinIDN libpsl/0.21.5 libssh2/1.11.1 nghttp2/1.68.0 ngtcp2/1.17.0 nghttp3/1.12.0 Release-Date: 2025-11-05 Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss Features: alt-svc AsynchDNS brotli CAcert HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM PSL SPNEGO SSL SSLS-EXPORT SSPI threadsafe UnixSockets zstd |
|
#4
|
|||
|
|||
|
Cita:
Este es el resultado: MAC: sha1, Iteration 1024 MAC length: 20, salt length: 20 PKCS7 Data Shrouded Keybag: pbeWithSHA1And3-KeyTripleDES-CBC, Iteration 1024 Bag Attributes localKeyID: 32 23 0C E7 ED 55 CD 65 77 C3 AC 81 77 30 82 2D 94 B6 C5 01 friendlyName: xxxxxxx Key Attributes: <No Attributes> Y me pide la clave PEM , que no se que es ni cual es Y es curioso, en un certificado que si me funciona. Al poner esto del openSSL no reconoce la contraseña, y de seguro que es correcta Última edición por rcarteaga fecha: 14-11-2025 a las 14:43:18. |
|
#5
|
|||
|
|||
|
Cita:
|
|
#6
|
|||
|
|||
|
Prueba esto a ver si es que ese pfx esta generado con un sistema antiguo:
openssl pkcs12 -legacy -in certificado.pfx -info |
|
#7
|
|||
|
|||
|
Y dame wl error que te devuelve xon wl anterior comando openssl
Y pruwba a darle a enter wn la clave, si te funciona con enter, no tiene clave |
|
#8
|
|||
|
|||
|
Cita:
Resumo un poco El certificado A me funciona correctamente con CURL al enviar el XML a Verifactu El certificado A con OPENSSL (al final no da error): Enter Import Password: MAC: sha1, Iteration 1024 MAC length: 20, salt length: 20 PKCS7 Data Shrouded Keybag: pbeWithSHA1And3-KeyTripleDES-CBC, Iteration 1024 Bag Attributes localKeyID: AF 4F D1 09 DA 5F 9E 7E 6F 16 AE 1B 2E CD 37 31 3D E0 2F 81 friendlyName: xxxx_NIF Key Attributes: <No Attributes> El certificado B da error al usar CURL para el envio a Verifactu could not parse PKCS12 file, check password, LibreSSL error error:23FFF071:PKCS12 routines:CRYPTO_internal:mac verify failure El certificado B con OPENSSL: MAC: sha1, Iteration 1024 MAC length: 20, salt length: 20 PKCS7 Data Shrouded Keybag: pbeWithSHA1And3-KeyTripleDES-CBC, Iteration 1024 Bag Attributes localKeyID: 32 23 0C E7 ED 55 CD 65 77 C3 AC 81 77 30 82 2D 94 B6 C5 01 friendlyName: xxxx:NIF Key Attributes: <No Attributes> |
![]() |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| curl para hacer una petición SOAP, Ayuda!! | JETA | Registros de Facturacion y Eventos (XML) | 6 | 16-07-2025 12:54:05 |
| tengo openssl zlib curl iconv libssh libxml2 libxslt version lib para static linkin | JXJ | C++ Builder | 2 | 12-07-2017 00:17:09 |
|