title: Getting "ssl3_get_record:wrong version number" in spring-boot application on GCP Compute Engine
body: <p>I have created a spring-boot backend java application with a React front end, and I am trying to use the GCP.</p>
  
  <p>I got it working on AppEngine and wanted to put a long-running version of the application on a VM in Compute Engine, but when I deploy it on the vm in compute engine and try to connect to the app with HTTPS it gives me "ssl3_get_record:wrong version number". This is even when I am trying to connect to the app inside of the vm itself with 'localhost'. </p>
  
  <p>It is a pretty cut and dry spring boot application that uses the embedded tomcat server. It contains a WebSecurityConfigureAdaptor and a WebMvcConfigurer for CORS mapping. </p>
  
  <p>Has anyone run into this issue or can give me some guidance on what I need to do to fix it? </p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Adding curl -i -v <a href="https://localhost" rel="nofollow noreferrer">https://localhost</a> as requested</p>
  
  <pre><code>*   Trying ::1...
  * TCP_NODELAY set
  * Connected to localhost (::1) port 3001 (#0)
  * ALPN, offering h2
  * ALPN, offering http/1.1
  * successfully set certificate verify locations:
  *   CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
  * 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 (OUT), TLS alert, unknown CA (560):
  * SSL certificate problem: self signed certificate
  * Closing connection 0
  curl: (60) SSL certificate problem: self signed certificate
  More details here: https://curl.haxx.se/docs/sslcerts.html
  
  curl failed to verify the legitimacy of the server and therefore could not
  establish a secure connection to it. To learn more about this situation and
  how to fix it, please visit the web page mentioned above.
  </code></pre>