Publish into Artifactory with self signed certificate - artifactory

Trying to publish go dependencies with jfrog rt go-publish go --self=false --deps=ALL and getting x509: certificate signed by unknown authority.
I copied a .pem file into ~/.jfrog/security/, didn't help. Not sure how to diagnose the problem.

I added the .crt file to the .jfrog/security folder and it worked.

Related

Problem committing a project from RStudio to Github

I'm trying to push my files to my GitHub, but I'm getting the following error:
error: cannot run rpostback-askpass: No such file or directory
fatal: could not read Username for 'https://github.com': Device not configured
Details:
I'm using MAC
My git version: git version 2.32.1 (Apple Git-133)
I'm linking my project to GitHub with HTTP protocole
I ran git config --global user.name and user.mail in the terminal in Rstudio
I tried to use the solution of running git push -u origin main and when I type in my credentials, it gives me the error: "authentication failed". I never changed my password to GitHub, I checked it today to enter the website, it works.
I tried using ssh protocol instead but it seems to be giving me even more errors even though I created my ssh key and added it successfully to my GitHub. Specifically when I click on create new project and add the ssh link Rstudio says:
Cloning into 'data-science-hw'...
ssh_askpass: exec(rpostback-askpass): No such file or directory Host key verification failed.
fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
I went through all the possible suggestions I could find on the internet but none of them worked. I also tried linking a token generated by git, but it work either.
I would be very happy if anybody has any idea what else I could try..

symfony server:ca:install fails (Symfony 5 LTS)

When I run that command and try to install the certificates, I always get
Enter Password or Pin for "NSS Certificate DB":
But I haven't setup a password. How can this be fixed?
This command creates and install certificates in user home directory (~) under .symfony5/certs folder. Sample of path in Windows : C:\Users\John Doe\.symfony5\certs.
You can delete the contents of the certs directory and reload symfony server:ca:install to reinstall the certificate from scratch.

Artifactory- can not download RPM packages from RedHat site

I am trying to connect out JFrog Artifactory (Version 7) to Redhat as remote RPM repository, the test connection pass, but it does not manage to download.
I configured the Artifactroy to address the URL-
https://cdn.redhat.com/content/dist/rhel/server/7/7server/x86_64/os/reposdata
In the Tree Browser I can see many files there, but not repomd.xml
When I try to download a file after configuring the Linux machine to work with this Artifactroy I get-
/repodata/repomd.xml: [Errno 14] HTTPS Error 404 – Not Found
What am I missing?
Configure the URL -https://cdn.redhat.com/content/dist/rhel/server/7/7server/x86_64/os/ as upstream URL for remote repository and follow Artifactory repository 'Set Me Up' instructions for client side configuration. According to shared error, seems changing upstream URL should fix the issue on your client side.

How to strong sign an .exe file in .NET?

how to properly sign an .exe with a pfx certificate installed on machine.
I have a pfx certificate by the name "Services installed. I tried signing the exe with this command.
.\sn.exe -Rc "%Directory%\File.exe" "Services" >> "%LogPath%"
It gave no errors. But when I ran this exe file, it started throwing error for the internal project dll(ExtraFile.dll), which is referenced inside File.exe project.
This dll I am already signing before signing the File.exe file. So the signing steps are as follow.
.\sn.exe -Rc "%Directory%\ExtraFile.dll" "Services" >> "%LogPath%"
.\sn.exe -Rc "%Directory%\File.exe" "Services" >> "%LogPath%"
Please note that ExtraFile.dll is referenced under File.exe project.
Creating a cryptographic key pair using the Strong Name tool (Sn.exe) and assigning that key pair to the assembly using either a command-line compiler or the Assembly Linker (Al.exe). The Windows SDK provides both Sn.exe and Al.exe.

Consuming HTTPS Webservice in Flex 4

I'm trying to consume one HTTPS webservice in Adobe Flash Builder.
when I add the URL I get this error:
There was an error during service
introspection. WSDLException:
faultCode=OTHER_ERROR: Unable to
resolve imported document at
'https://172.21.17.235:9443/testehttpsWeb/sca/testeIOExport1/WEB-INF/wsdl/testehttps_testeIOExport1.wsdl'.:
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException:
PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification
path to requested target
How can I configure my client to consume the Webservice?
We will have to buy ice cream to the person that figured this out!
The solution was to import the certificate not to a JKS truststore, but to the cacarets file, in my case:
keytool -import -alias trusted1 -keystore "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\jre\lib\security\cacerts" -file c:\somepath\mycert.cer
In this case there is no need to add the:
-Djavax.net.ssl.trustStore="c:\somepath\truststore.jks"
...line on FlashBuilder.ini
An imported note is that the DNS Server must be able to translate the Web Service path by name instead of by IP, because in the installed certificate the CN mentions the Web Service server name not it's IP
Regards
Flash Builder is built on top of Eclipse. Eclipse is written in Java, and this is probably the cause of your issue. Java itself doesn't trust any SSL (it doesn't support the root CAs out of the box, nor any certificates). You have to setup a truststore to use SSL with Java.
In eclipse, this means setting up a truststore and adding it's location to the eclipse.ini. To setup the truststore, first browse in your browser to the SSL site you are connecting to, and save the certificate (usually right/left click on the lock icon and follow the steps). The you need to use "keytool" from the Java JDK to create the truststore, such as:
keytool -import -alias trusted1 -keystore c:\somepath\truststore.jks -file c:\somepath\mycert.cer
Then find your eclipse.ini (usually in your Flex Builder or eclipse folder). Add this:
-Djavax.net.ssl.trustStore="c:\somepath\truststore.jks"

Resources