Can't find openssl.cnf file - ssl

I just cloned the git repository for openssl from git clone git://git.openssl.org/openssl.git.
and im trying to find the openssl.cnf file but its nowhere to be found??
Where is this file located?

Related

npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE failed, reason: unable to verify the first certificate

So this issue is happening when I try to run NPM PUBLISH to the NPM-Private Repo in Nexus.
I was able to create a PEM file in the following order to be able to run NPM INSTALL from behind the firewall successfully.
PROXY
Issuing SUBCA1
ROOT CA
There are two possible subca's that issue certs in the environment that this is running in and the cert for the internal private repo is issued by SUBCA2.
I've tried creating a PEM with all of the certs but I'm not sure if that is the correct way to do this or if I have the order incorrect, or even if there is a way to set a separate PEM for NPM to use to publish and install with?
Proxy
Nexus Server
SUBCA2
SUBCA1
ROOT CA
Pretty new to NPM and I'm I don't typically have to create PEM files from multiple certs...most of my experience is using Maven to pull artifacts and publish to our internal repos and working with a cacerts store, so any help/thoughts would be appreciated.
I've tried to set the CAFILE in the npm user and global config to the 2 different PEM files I've created as well as just trying to point it straight to my IBM JDK CACERTS file hoping that would get the job done but I'm just stuck at this point.
NPM Install works without a hitch at this point so I think its just my PEM file that is screwed up.
Thanks in advance for any assistance.

Git Extensions Authentication Error

I just downloaded git extensions. It is configured to use putty that comes with the installation. I used putty to create a private and public key and I have the agent started and I have added the private key.
I am using bitbucket and I have loaded my public key to my bitbucket account.
I get the ssh clone link from bitbucket and go to clone it in git extensions, I load the SSH key and hit clone and I get this error message.
Error Message
I have an SSH key loaded. Why is it saying I need to load a key? I uninstalled gitextensions and generated different keys. I looked at all the settings, i'm not sure what i'm doing wrong.
Git Extensions SSH settings
Windows 10
Putty 0.70
Git extensions 2.51.01
bitbucket.org
I found the answer.
When you copy past the git command from bitbucket, it is the wrong syntax for git Extensions.
You will copy something like this:
git clone git#bitbucket.org:guitardenver/led-pad-pcb.git
But you need to remove the "git clone" part for it to work with git Extensions.
git#bitbucket.org:guitardenver/led-pad-pcb.git

git svn branch results in "Server SSL certificate verification failed"

Using git svn works without issue for all operations except when I try to use git svn branch.
When I try git svn branch newbranch -m "another branch" from a local repo that was previously successfully cloned using git svn clone --stdlayout, I get the following error:
Can't create session: Unable to connect to a repository at URL 'https://mysvnserver.blah/path/to/svn/project/trunk': Server SSL certificate verification failed: issuer is not trusted at C:\Program Files\Git\mingw64/libexec/git-core\git-svn line 1199.
The error doesn't make a lot of sense as git svn works correctly with other commands (eg. rebase, dcommit etc). And dcommit does successfully write changes back to the remote subversion repository.
I am using git version 2.10.2.windows.1
From the git-svn doc,
branch
Create a branch in the SVN repository.
It creates a branch in the svn repository, This will commit to svn repository. This is possible only if you have write access to the repository root which you would have cloned using git. Just provide the write access in svn repository and it should work.

When i build the Telegram App it shows "SSignalKit/SSignalKit.h file not found"?

I cloned Telegram App but compilation fail with "SSignalKit/SSignalKit.h file not found"
What should i do to fix this?
You need to install the git submodules as well, this can be done with:
git submodule update --init --recursive
After successfully doing the that, build should fail because it cannot find the file config.h,
this can be fixed like described here.
Note: the submodules are linked with their ssh link, so if you don't have an authorized ssh for github on your mac, you either need to create one or change the links to the submodules repos from ssh links to https links (which can be found under [PROJECT_ROOT]/.gitmodules and [PROJECT_ROOT]/.git/config

How to import local git repository into svn?

I am working on local git repository and I need to push my local git into existing svn repository. My git repository is pure local git repository, it was not init using git svn clone.
How can I import this local git repo into svn?
Preferably I'ld like to keep the git history being imported into SVN.
Currently the SVN repository is structure as:
https://svnrepohost
/branches
/tags
/trunk
/projectA
/projectB
/newProject
What I need it is to import my git repository into the https://svnrepohost/trunk/newProject above, assuming the newProject folder is empty.
I have finally solved this problem by the following steps:
Setup appropriate project folder in svn to be imported to, for example http://svnrepo/svn/trunk/newProject
Create a new git-svn repository
git svn clone http://svnrepo/svn/trunk/newProject
Add the git repo that we want to import as remote to the new git-svn repo
git remote add origin ../original-git-repo
Pull all the data from original-git-repo
git pull origin master --allow-unrelated-histories
Rebase local repository against svn
git svn rebase
Commit the changes into svn
git svn dcommit
Clean up the remote
git remote delete origin
The easiest way to do this is to just svn import the Git directory. That will lose you your Git commit history, however.
First of all, make sure the .git directory won't be imported by setting the global-ignores in the Subversion config file. Open your ~/.subversion/config file (that'll be in something like C:\Users\username\.subversion\config on Windows), find the section starting [miscellany], and add a line directly underneath reading as below:
global-ignores = .git
(if you already have a line with global-ignores = that doesn't have a # in front of it, then just add .git to the end of that line.)
Next, run the below:
svn import <path-to-local-git-repository> https://svnrepohost/trunk/newProject
That should copy the contents of the local Git repository onto the server exactly where you want it.
You may use SubGit.
$ svnadmin create repo.svn
$ subgit configure repo.svn
...
CONFIGURATION SUCCESSFUL
Adjust '/tmp/repo.svn/conf/subgit.conf' file
and then run
subgit install "repo.svn"
to complete SubGit installation.
$ nano repo.svn/conf/subgit.conf #edit to set git.default.repository=path/to/your/bare/git/repository
$ subgit install repo.svn
I would also recommend you to create a bare clone of your Git repository and to specify path to it (in git.default.repository) instead of your original repository. I.e.
$ git clone --bare path/to/your/original/repository path/to/your/bare/git/repository
After "subgit install" command the repositories (repo.svn and repo.git) will be in continuos synchronization (triggered by pre-receive hook in Git [that starts on pushing to your bare repository] and pre-commit in SVN). To stop synchronization you may run
$ subgit uninstall repo.svn
git svn clone http://svnrepo/svn/trunk/newProject
git remote add origin ../original-git-repo
git fetch origin
git checkout -b lmaster remotes/origin/master
git rebase master
git svn rebase
git svn dcommit