Ahora he puesto :
Code: Select all | Expand
.\curl\bin\curl -k --connect-timeout 60 -m 300 -s -S -L --header "Content-Type: text/xml;charset=UTF-8"--cert "empresa.pem" --key "empresa_key.pem" --data 1.xml --output respuesta.xml https://prewww1.aeat.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/VerifactuSOAP -v
y el contenido de respuesta es :
Code: Select all | Expand
.\curl\bin\curl -k --connect-timeout 60 -m 300 -s -S -L --header "Content-Type: text/xml;charset=UTF-8"--cert "empresa.pem" --key "empresa_key.pem" --data 1.xml --output respuesta.xml https://prewww1.aeat.es/wlpl/TIKE-CONT/ws/SistemaFacturacion/VerifactuSOAP -v
* Could not resolve host: empresa.pem
* shutting down connection #0
curl: (6) Could not resolve host: empresa.pem
* Host prewww1.aeat.es:443 was resolved.
* IPv6: (none)
* IPv4: 195.77.198.76
* Trying 195.77.198.76:443...
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Request CERT (13):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256 / [blank] / UNDEF
* ALPN: server did not agree on a protocol. Uses default.
* Server certificate:
* subject: C=ES; L=Madrid; O=Agencia Estatal de Administración Tributaria; CN=*.aeat.es
* start date: Oct 23 08:43:06 2023 GMT
* expire date: Nov 23 08:43:05 2024 GMT
* issuer: C=US; O=Entrust, Inc.; OU=See http://www.entrust.net/legal-terms; OU=(c) 2012 Entrust, Inc. - for authorized use only; CN=Entrust Certification Authority - L1K
* SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway.
* Certificate level 0: Public key type ? (3072/128 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 1: Public key type ? (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 2: Public key type ? (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Connected to prewww1.aeat.es (195.77.198.76) port 443
* using HTTP/1.x
> POST /wlpl/TIKE-CONT/ws/SistemaFacturacion/VerifactuSOAP HTTP/1.1
> Host: prewww1.aeat.es
> User-Agent: curl/8.10.1
> Accept: */*
> Content-Type: text/xml;charset=UTF-8--cert
> Content-Length: 5
>
* upload completely sent off: 5 bytes
* HTTP 1.0, assume close after body
< HTTP/1.0 302 Moved Temporarily
* Need to rewind upload for next request
< Location: https://sede.agenciatributaria.gob.es/Sede/errores/erro4033.html
* HTTP/1.0 connection set to keep alive
< Connection: Keep-Alive
< Content-Length: 0
* Ignoring the response-body
* setting size while ignoring
<
* Connection #1 to host prewww1.aeat.es left intact
* Issue another request to this URL: 'https://sede.agenciatributaria.gob.es/Sede/errores/erro4033.html'
* Switch from POST to GET
* Host sede.agenciatributaria.gob.es:443 was resolved.
* IPv6: (none)
* IPv4: 195.77.198.30
* Trying 195.77.198.30:443...
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Unknown (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256 / [blank] / UNDEF
* ALPN: server did not agree on a protocol. Uses default.
* Server certificate:
* subject: C=ES; ST=Madrid; L=Madrid; jurisdictionCountryName=ES; O=Agencia Estatal de Administracion Tributaria; businessCategory=Government Entity; serialNumber=Q2826000H; CN=agenciatributaria.gob.es
* start date: Jun 26 18:35:23 2024 GMT
* expire date: Nov 22 18:35:22 2024 GMT
* issuer: C=ES; O=Entrust EU, S.L.; 2.5.4.97=VATES-B81188047; CN=Entrust Certification Authority - ES QWAC2
* SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway.
* Certificate level 0: Public key type ? (3072/128 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 1: Public key type ? (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 2: Public key type ? (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Connected to sede.agenciatributaria.gob.es (195.77.198.30) port 443
* using HTTP/1.x
> GET /Sede/errores/erro4033.html HTTP/1.0
> Host: sede.agenciatributaria.gob.es
> User-Agent: curl/8.10.1
> Accept: */*
> Content-Type: text/xml;charset=UTF-8--cert
>
* Request completely sent off
< HTTP/1.1 200 OK
< date: Fri, 18 Oct 2024 11:21:08 GMT
< server: Apache
< x-frame-options: SAMEORIGIN
< last-modified: Tue, 24 Jan 2023 12:41:49 GMT
< accept-ranges: bytes
< content-length: 6780
< x-site: Sede
< content-type: text/html
< x-xss-protection: 1; mode=block
< strict-transport-security: max-age=31536000; includeSubDomains
< content-security-policy: frame-ancestors 'self' *.agenciatributaria.gob.es
< connection: close
<
<!DOCTYPE html>
<html lang="es">
<head>
<meta name="site" content="Sede"/>
<link href="/static_files/common/css/aeat.07.css" rel="stylesheet" type="text/css">
<meta title="AEATviewport" content="width=device-width, initial-scale=1.0" name="viewport">
<title>Agencia Tributaria: 403</title><meta name="ObjectId" content="84837bde849c7710VgnVCM100000dc381e0aRCRD"/><meta name="keyword" content="erro4033"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="detalle" content="errores"/>
</head>
<body>
<div id="body" data-template-id="cc1c55b3cac46710VgnVCM100000dc381e0aRCRD" class="s_Sede p_estandar t_informacion">
<header id="AEAT_header" class="header_aeat d-print-none d-app-none" >
<!-- CABECERA -->
<!--googleoff: index-->
<a class="focus-only" href="#acc-main">Saltar al contenido principal</a>
<div class="header-sup_aeat w-100">
<div class="container">
<div class="row">
<!-- CABECERA IZQUIERDA-->
<div id="topIzquierda" class="pl-0"><nav class="header-contLogos_aeat"><a href="/Sede/inicio.html" title="Página de inicio" class="header-logosPrincipales_aeat"><span class="logoGobierno Sede">Logotipo Gobierno de España</span><span class="logoAEAT logoSite logoSede ml-2 overflow-hidden">Logotipo Organismo</span></a></nav></div><!-- CABECERA IZQUIERDA FIN -->
</div>
</div>
</div>
<!--googleon: index-->
<!-- CABECERA FIN -->
<!-- MENU -->
<!--googleoff: index--><div class="w-100 bg-primary p-1"><div class="container"><div class="row justify-content-between align-items-center"><button class="header-btnMovil_aeat text-white d-lg-none col-2 btn btn-link" type="button" id="menuPrincipal"><i class="aeat-ico fa-ico-menu ico-size-2 w-100" title="Abrir menú móvil" aria-hidden="true" role="presentation"></i><span class="sr-only">Menú móvil</span></button><nav id="aeat_menuPrincipal" class="navbar-dark navbar navbar-expand-lg p-0 col-12 col-xl-8 col-lg-9 d-none d-lg-flex" aria-label="Menú principal"><!--clase para movil: header-navMovil_aeat--><ul class="navbar-nav"><li class="nav-item"><a href="#" class="py-3 px-4 nav-link dropdown-toggle invisible" role="button"><span>Aqui se cargarán las opciones del menú cuando estén disponibles</span></a></li></ul></nav></div></div></div><!--googleon: index-->
<!-- MENU FIN -->
</header><nav aria-label="Migas navegación" class="js-nav-principal d-print-none d-app-none">
<ol class="breadcrumb container bg-transparent px-md-4 px-3">
<li class="breadcrumb-item breadcrumb-item__volver"><a data-aeat-id='b3552c121d27c610VgnVCM100000dc381e0aRCRD' href='/Sede/inicio.html'><i class="aeat-ico fa-ico-chevron-left ico-size-mini mr-2 d-md-none" aria-hidden="true" role="presentation"></i>Inicio</a></li>
</ol>
</nav><div class="container-text js-container">
<div class="row my-3 justify-content-center">
<main class="col-12 col-lg-7" id="acc-main">
<div class="d-flex"><i class="aeat-ico fa-ico-error-sm ico-size-4 mr-3 text-danger" aria-hidden="true" role="presentation"></i><h1 id="js-nombre-canal" class="font-weight-bold mb-0 display-4 mb-3 text-danger">403</h1></div><p>Error de identificación. No se detecta certificado electrónico o no se ha seleccionado correctamente.</p><a target="_blank" title="Comprobaciones para solucionar el error 403, se abre en ventana nueva" href="/Sede/ayuda/consultas-informaticas/firma-digital-sistema-clave-pin-tecnica/error-403-error-conexion-ssl-pagina.html" class="d-block">Comprobaciones para solucionar el error 403<i class="aeat-ico fa-ico-ventana-nueva-sm ico-size-1 ml-1" role="img" title="Se abre en ventana nueva"></i></a><p class="small mt-1 w-100mb-0">Si tiene certificado electrónico, compruebe que está correctamente instalado en el navegador</p><a target="_blank" title="Comprobaciones técnicas para el funcionamiento del DNIe, se abre en ventana nueva" href="/Sede/ayuda/consultas-informaticas/firma-digital-sistema-clave-pin-tecnica/comprobaciones-tecnicas-funcionamiento-dnie.html" class="d-block">Comprobaciones técnicas para el funcionamiento del DNIe<i class="aeat-ico fa-ico-ventana-nueva-sm ico-size-1 ml-1" role="img" title="Se abre en ventana nueva"></i></a><p class="small mt-1 w-100mb-0">Si utiliza DNI electrónico</p><a target="_blank" title="Error 403 al registrarse en Cl@ve, se abre en ventana nueva" href="/Sede/ayuda/consultas-informaticas/firma-digital-sistema-clave-pin-tecnica/eror-403-error-conexion-ssl-pagina/error-conexion-quiere-registrarse-sistema-403.html" class="d-block">Error 403 al registrarse en Cl@ve<i class="aeat-ico fa-ico-ventana-nueva-sm ico-size-1 ml-1" role="img" title="Se abre en ventana nueva"></i></a><p class="small mt-1 w-100mb-0">Si está intentando registrarse en Cl@ve y aparece el error 403</p><a target="_blank" title="Comunicar incidencia, se abre en ventana nueva" href="https://www2.agenciatributaria.gob.es/soporteaeat/Formularios.nsf/soporteOnline.php?OpenForm&codigoError=403" class="d-block">Comunicar incidencia<i class="aeat-ico fa-ico-ventana-nueva-sm ico-size-1 ml-1" role="img" title="Se abre en ventana nueva"></i></a><p class="small mt-1 w-100mb-0">Si tras seguir estas indicaciones persiste el error</p></main>
</div>
</div>
<!--googleoff: index-->
<!--
<section>
<div id="last-update" class="container pb-3">
<p class="small text-center mb-0">
Página actualizada: <time datetime="2023-01-24">24/enero/2023</time>
</p>
</div>
</section>
-->
<footer class="bg-primary d-print-none d-app-none" >
<noscript><div class="container py-3"><div class="row"><a class="text-white" href="https://sede.agenciatributaria.gob.es/Sede/condiciones-uso-sede-electronica/accesibilidad/declaracion-accesibilidad.html">Accesibilidad</a></div></div></noscript><div id="js-pie-fecha-social" class="container pb-3"><div class="row"><div id="last-update" class="col-12 col-sm-9 col-lg-10 mb-2"><p class="small text-center text-white mb-0">Página actualizada: <time datetime="2023-01-24">24/enero/2023</time></p></div></div></div></footer><!--googleon: index-->
</div>
<div class="d-none">
<span class="js-responsive d-xs-block"></span>
<span class="js-responsive d-sm-block"></span>
<span class="js-responsive d-md-block"></span>
<span class="js-responsive d-lg-block"></span>
<span class="js-responsive d-xl-block"></span>
<span class="js-responsive d-xxl-block"></span>
<span class="js-responsive d-xxxl-block"></span>
</div>
<link href="/static_files/common/css/aeat.07.print.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/static_files/common/script/aeat.07.js"></script>
</body>
</html>
* shutting down connection #2
* TLSv1.3 (OUT), TLS alert, close notify (256):
¿Alguna sugerencia?