How to specify Certificate of type P12 #526

Open
opened 2023-01-13 11:15:17 +00:00 by iAmG-r00t · 2 comments

I have a PFX file that I have to use with a remote gitea setup. Is there a way to specify the tool to use that cert?

I have a PFX file that I have to use with a remote gitea setup. Is there a way to specify the tool to use that cert?
Author

So I managed to get export a .cer file from my .pfx file. Then converted the .cer to a .crt file, question is any way to specify tea to use that specific .crt file.

So I managed to get export a `.cer` file from my `.pfx` file. Then converted the `.cer` to a `.crt` file, question is any way to specify tea to use that specific `.crt` file.
Author

Okay everything I have googled doesn't work. I was given a .pfx file to access an internal server for company x so I can't use openssl to export certs because I don't have the password.

I have the .pfx file installed on my windows local cert storage. Tried to export both DER encoded and Base-64 encoded certificate without private key because they have been marked as not exportable. Tried to convert the DER encoded .cer

image

I then coverted the .cer PEM file to .crt then followed steps from this resource but still doesn't work.

openssl x509 -inform PEM -in xxxxx1.cer -out xxxxx.crt

Anyone who has an idea on what I can do please help.

Okay everything I have googled doesn't work. I was given a `.pfx` file to access an internal server for company x so I can't use openssl to export certs because I don't have the password. I have the `.pfx` file installed on my windows local cert storage. Tried to export both DER encoded and Base-64 encoded certificate without private key because they have been marked as not exportable. Tried to convert the DER encoded `.cer` ![image](/attachments/4a26911e-d5b3-44e5-a398-1f9f8e3b50ed) I then coverted the `.cer` PEM file to `.crt` then followed steps from this [resource](https://serverfault.com/a/1003553) but still doesn't work. ```sh openssl x509 -inform PEM -in xxxxx1.cer -out xxxxx.crt ``` Anyone who has an idea on what I can do please help.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
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: gitea/tea#526
No description provided.