[GH-ISSUE #217] /access/ticket": x509: #45

Closed
opened 2026-02-28 00:40:19 +03:00 by kerem · 1 comment
Owner

Originally created by @zhang192073 on GitHub (Nov 26, 2022).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/217

pveum role add TerraformProv -privs "VM.Allocate VM.Clone VM.Config.CDROM VM.Config.CPU VM.Config.Cloudinit VM.Config.Disk VM.Config.HWType VM.Config.Memory VM.Config.Network VM.Config.Options VM.Monitor VM.Audit VM.PowerMgmt Datastore.AllocateSpace Datastore.Audit"
pveum user add terraform-prov@pve
pveum aclmod / -user terraform-prov@pve -role TerraformProv
pveum user token add terraform-prov@pve terraform-token --privsep=0
┌──────────────┬──────────────────────────────────────┐
│ key │ value │
╞══════════════╪══════════════════════════════════════╡
│ full-tokenid │ terraform-prov@pve!terraform-token │
├──────────────┼──────────────────────────────────────┤
│ info │ {"privsep":"0"} │
├──────────────┼──────────────────────────────────────┤
│ value │ 477e8ccc-838f-404a-927f-342864e971fe │
└──────────────┴──────────────────────────────────────┘

PM_API_URL=https://192.168.200.211:8006/api2/json
PM_PASS=477e8ccc-838f-404a-927f-342864e971fe
PM_USER=terraform-prov@pve

└─# ./proxmox-api-go -debug start 103
2022/11/26 06:27:43 Post "https://192.168.200.211:8006/api2/json/access/ticket": x509: certificate signed by unknown authority

Originally created by @zhang192073 on GitHub (Nov 26, 2022). Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/217 pveum role add TerraformProv -privs "VM.Allocate VM.Clone VM.Config.CDROM VM.Config.CPU VM.Config.Cloudinit VM.Config.Disk VM.Config.HWType VM.Config.Memory VM.Config.Network VM.Config.Options VM.Monitor VM.Audit VM.PowerMgmt Datastore.AllocateSpace Datastore.Audit" pveum user add terraform-prov@pve pveum aclmod / -user terraform-prov@pve -role TerraformProv pveum user token add terraform-prov@pve terraform-token --privsep=0 ┌──────────────┬──────────────────────────────────────┐ │ key │ value │ ╞══════════════╪══════════════════════════════════════╡ │ full-tokenid │ terraform-prov@pve!terraform-token │ ├──────────────┼──────────────────────────────────────┤ │ info │ {"privsep":"0"} │ ├──────────────┼──────────────────────────────────────┤ │ value │ 477e8ccc-838f-404a-927f-342864e971fe │ └──────────────┴──────────────────────────────────────┘ PM_API_URL=https://192.168.200.211:8006/api2/json PM_PASS=477e8ccc-838f-404a-927f-342864e971fe PM_USER=terraform-prov@pve └─# ./proxmox-api-go -debug start 103 2022/11/26 06:27:43 Post "https://192.168.200.211:8006/api2/json/access/ticket": x509: certificate signed by unknown authority
kerem closed this issue 2026-02-28 00:40:19 +03:00
Author
Owner

@mleone87 commented on GitHub (Dec 1, 2022):

use -insecure flag

<!-- gh-comment-id:1333479088 --> @mleone87 commented on GitHub (Dec 1, 2022): use` -insecure` flag
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#45
No description provided.