Convert certificate from p7c to cer - certificate

how to convert a certificate from .p7c to .cer extension?
Thanks

I know this is a very old question.
But on Windows 10 or Windows Server 2012 R2, if you double click on a .p7c file, Windows will try to open p7c file with wab.exe (Windows Contact), which is wrong.
What I had to do was rename the p7c file into p7b, only then it will be recognized as a certificate file.
Then I can double click on it and Windows will open it with certmgr, as shown below and export it to Base64 .cer file :

Ok, we find the solution (on windows xp):
double click the file >> click copy on file >> save the file in cer format.

Related

Copy file from Remote Server using PgAdmin4

I am trying to copy a file from my Office Remote server as CSV output on my local machine (windows). I cannot use the export/import dialog. It shows the following error
Utility file not found. Please correct the Binary Path in the Preferences dialog
The same command works fine for local server files meaning I have already edited the binary path in the Configuration setting.
The COPY command gives the following error
ERROR: relative path not allowed for COPY to file SQL state: 42602
\Copy doesn't work either.
Can anyone suggest me a solution for this?
Good afternoon,
You can generate the CSV file like this:
copy(select * from schema.table) TO '/tmp/file.csv' WITH CSV DELIMITER '|';

Huawei App Signing for an app, where I have to Open CLI and then go to JDK directory

how to access the directory and export to pem format. As there is no help avaliable on the internet.
Please find the detailed explanation below to execute the command.
Open the CLI. ==> Open command line interface (CLI) using the following method
a. In windows:
i. Press windows + R
ii. Type “cmd” and press enter
b. In Linux:
i. Press ctrl + Alt + T
Go to the directory where the JDK is located by typing the below command:
cd
Note: may be different in Linux environment.
Then it will go to the path where JDK is located.
3. run the following command to export the certificate (in PEM format) for the new upload key
keytool -export -rfc -keystore upload-keystore.jks -alias upload -file upload_certificate.pem
Replace the italic and boldfaced content in the command with the actual values
a. upload-keystore.jks ==> replace with “/”
example: “D:\keystore\mykeystore.jks”
b. upload ==> replace with alias of jks file which is given while creating jks file
example: mykeystorealias
c. upload_certificate.pem ==> replace with “/name-of-pem-file” (path and name of the pem file where you want to create pem file)
example: "D:\keystore\my-pem-certificate.pem"
After replacing the required values in the above command. It will look like below:
keytool -export -rfc -keystore "D:\keystore\mykeystore.jks" -alias mykeystorealias -file "D:\keystore\my-pem-certificate.pem"
Note: and may be different in Linux environment
Once the above command is successfully executed, it will prompt for password of jks file (which is given while creating the jks file). Enter the password of the jks file.
After successful creation of pem file, success message is displayed as below:
Certificate stored in file <D:\keystore\my-pem-certificate.pem>
Note: The directory paths shown in screenshots are taken from windows environment. The path will be different for Linux environment.

Sparkle-project setup

I'm trying to implement Sparkle into my macOS project using cocoapod.
But when following the documentation I seem to have a problem creating the public .pem file.
Command used in Terminal;
.ssh $ ssh-keygen -t dsa -b 1024
Generating public/private dsa key pair.
Enter file in which to save the key (/Users/jorgen/.ssh/id_dsa): dsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in dsa.
Your public key has been saved in dsa.pub.
According to the documentation I should have a file called dsa_pub.pem but all I end up with is dsa.pub
If anyone has a couple of minutes to give me simple step-by-step instructions how to set this up, I would be immensely appreciative.
I was going to use a DropBox folder as the https:// address. I archive the app into a .app as far as I can understand, I would zip this and put it in the DB folder? What else goes in there?
Download sparkle: https://sparkle-project.org
go to the bin folder inside the archive
open that folder in Terminal (drag and drop from folder)
call ./generate_keys to generate dsa_priv.pem and dsa_prb.pem in the same folder

Copying large files using Remote Desktop

I have a 4 GB text file, compressed to 1.4 GB zip file. I need to copy it over to a Windows secure server using RDP. I am able to copy small files but not this file. It takes 15 mins and then shows an error. Any tips?
You can try to copy it by using Drive Redirection. Here's a tutorial.
BTW, RDP cannot copy files larger than 2GB by using clipboard as said in Microsoft support
window rdp clipboard has limit of about 2GB if you want to copy paste more than 2 gb file then you can try any of these options.
split file into parts like 1 gb each part with help of winrar or any other software
Use any FTP software
map local pc drive for remote desktop session(for move or copy data)
File size doesn't matter - I copied folders through Remote Desktop connection with 30GB and more. While doing this I received "Unspecified error". The Problem is that you aren't allowed to use the clipboard again while you are copying. Doesn't matter if you use the clipboard for the same machine or from the remote machine. To summarize don't use Ctrl+C.
The madness is the error is delayed so you don't recognize quickly that those things relate.
format usb drive as ntfs
connect drive as local resource in remote desktop
NET USE X: \\TSCLIENT\F
robocopy c:\source x:\
net use X: /delete
If you are administrator, you can copy the files of any size over the network using Administrative Shares assuming that it is not purposefully disabled.
Enter the following url on your File Explorer and you will see all the files and folders on your C drive of that computer with read and write access:
\\computername\c$
right-click zip-file >> Properties >> Advanced >> Encrypt contents
open your one-drive or googledrive (if the secure server allows you) and park the encrypted file on there.
(you might have to one-drive space by signing up to a months 365)
https://support.microsoft.com/en-us/office/manage-your-onedrive-storage-and-limits-989fce19-ade6-4e2f-81fb-941eabefee28
I guess it would might be possible to use google datastore or something cloudy.

Zipped data getting loss during copying from FTP to windows

I am trying to copy some zipped file from FTP to my local system (Windows). The transfer mode is default mode (ASCII). File is getting copied, I am not getting any problem during transfer.
The problem is that the size of file on FTP to the one which is copied on my local system is different.
FTP_file_size -> 12,812,085
Copied_file_size->12,551
Above files should be the same.
Now I am not able to figure it out what is wrong going with transfer.
For script which i am using please refer :
Why am I getting "File not found" errors with this Perl script using Net::FTP?
You have to use the binary (type "I") mode to transfer. Otherwise the FTP client translates line-ending characters to the local convention (on Windows: CR-LF) which would corrupt the ZIP format.