I am using certbot in WSL on win server, i have a domain littler-rm-dsksrv.com and i successfully obtained the certificate:
user@vmi1895852:/mnt/c/Users/Administrator$ sudo certbot certonly --cert-name littler -d littler-rm-dsksrv.com --register-unsafely-without-email
Saving debug log to /var/log/letsencrypt/letsencrypt.log
How would you like to authenticate with the ACME CA?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Runs an HTTP server locally which serves the necessary validation files under
the /.well-known/acme-challenge/ request path. Suitable if there is no HTTP
server already running. HTTP challenge only (wildcards not supported).
(standalone)
2: Saves the necessary validation files to a .well-known/acme-challenge/
directory within the nominated webroot path. A separate HTTP server must be
running and serving files from the webroot path. HTTP challenge only (wildcards
not supported). (webroot)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1
Certificate not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/littler.conf)
What would you like to do?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Keep the existing certificate for now
2: Renew & replace the certificate (may be subject to CA rate limits)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Renewing an existing certificate for littler-rm-dsksrv.com
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/littler/fullchain.pem
Key is saved at: /etc/letsencrypt/live/littler/privkey.pem
This certificate expires on 2025-02-14.
These files will be updated when the certificate renews.
I exported this certificate to pfx:
sudo openssl pkcs12 -inkey /etc/letsencrypt/live/littler/privkey.pem -in /etc/letsencrypt/live/littler/fullchain.pem -export -out rp.pfx
susseccfully
After that i imported this certificate in windows certificate storage for current user so it is in:
Certificates - Current User -> Personal -> Certificates
Here is the screenshot:
I then copy thumbprint from this certificate details and sign the rdp file (12.rdp):
rdpsign.exe /sha256 6d67db78b3871f383e0145544a706446235f02da 12.rdp
Unable to use the certificate specified for signing. Error Code: 0x80090016
The rdp file could not be signed. Error Code: 0x80090016
Can someone help what i do wrong?