muhlba91/pulumi-proxmoxve

[Python] SSL error with self-signed certificates

Closed this issue · 1 comments

Hello,

First of all, thanks a lot for your work on this project !

On my first test on creating a VM, i had the following error :

  proxmoxve:VM:VirtualMachine (<REDACTED>):
    error:   sdk-v2/provider2.go:509: sdk.helper_schema: error creating VM: All attempts fail:
    #1: received an HTTP 596 response - Reason: error:0A000086:SSL routines::certificate verify failed
    #2: received an HTTP 596 response - Reason: error:0A000086:SSL routines::certificate verify failed
    #3: received an HTTP 596 response - Reason: error:0A000086:SSL routines::certificate verify failed: provider=proxmox@v6.15.0
    error: 1 error occurred:
        * error creating VM: All attempts fail:
    #1: received an HTTP 596 response - Reason: error:0A000086:SSL routines::certificate verify failed
    #2: received an HTTP 596 response - Reason: error:0A000086:SSL routines::certificate verify failed
    #3: received an HTTP 596 response - Reason: error:0A000086:SSL routines::certificate verify failed

This error shows up whether I use insecure=True on my pulumi_proxmoxve.Provider configuration or not.

My self-signed CA is populated into the SSL_CERT_FILE (/usr/lib/ssl/cert.pem) and it works when i use the base Terraform provider (https://github.com/bpg/terraform-provider-proxmox).

Did i missed something ?

My bad, i was issuing a wrong node_name value in the pulumi_proxmoxve.vm.VirtualMachine configuration